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

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


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply