How to use many styles of TTF font in firemonkey android apps


Here is a description, how to use TTF fonts in the Firemonkey Android application:

Everything is nice, but how to do it if the TTF font has several styles in several files, such as the Roboto font ?

The problem is partially solved.
If in the object’s properties ( TextSettings – FontFamily)
we will enter the name of the font file, eg Roboto-Bold, everything is OK.

However, when trying to dynamically / programmatically assign the font file name to the FontFamily property – then it does not work. I don’t know why.

Comments are closed.