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 XE7 Firemonkey Custom Font Deployment Android 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
AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

AndroidC++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS

Sign up for our Newsletter and
stay informed

Leave a Reply