Fonts on Android

Dan Friedman dan at clearvisiontech.com
Tue Aug 27 17:10:45 EDT 2019


Greetings!

I am able to get a custom font installed and running on a Android device.  But, how do you handle the font family?   Included in my app is "myfont-Regular.ttf" and "myfont-bold.ttf".   When the app launches, I call:

set the textFont of stack "main" to "myfont" 

It's only using the bold version (probably because it's first alphabetically).  Is there a way to map a font to a style so that text is " myfont-Regular" and bold text is "myfont-bold"?

Thanks in advance,
-Dan

 



More information about the use-livecode mailing list