Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetComponentDelphiFiremonkeyIOSOSXWindows

Use And Deploy Custom True Type Fonts In Delphi XE7 Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE7 Firemonkey Custom Font Deployment Android IOS | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper Douglas Rudd has a couple blog posts up explaining how to use and deploy True Type fonts in your Delphi XE7 Firemonkey apps on Android and IOS platforms. We covered True Type fonts before for XE5 but this is specifically for XE7. For the Android side basically you customize the FMX.FontGlyphs.Android.pas file with some JNI code to look for the name of the font. You then change the TextSettings Font Family property in each component where you want the font to appear to reflect the filename of the True Type font (without the extension). The font itself gets deployed to the \assets\internal\ directory. On the IOS side basically you will need to create a custom info.plist file with a UIAppFont key record in it with your True Type font name in it. The font itself needs to be added to your app deployment and you can leave the default location setting. You can then change the TextSettings Font Family property to reflect the name of the font itself (and not the filename). These same instructions should also work in Appmethod.

Head over and read the full blog post about deploying a custom font for Delphi XE7 apps on IOS.

Head over and read the full blog post about deploying a custom font for Delphi XE7 apps on Android.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply