Hi,
Another aha moment for me hopefully.
Android-izing your app has a great code sample to provide font choices by platform to your app at runtime. This sample assigns fonts on Android with the following call :
if ( device.isAndroid ) then font.normal = “Droid Sans” end
Another excellent document from CL, Custom Fonts FAQ at http://www.coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/
say : In Android the font name is the file name (minus the file extension).
CustFont = display.newText( “PTSerif-Regular”, 40, 20, “PTF55F”, 24 )
PTF55F being the font name that should be used if one wants to see “PTSerif-Regular” font used.
So the second document seems to contradict the first document and the sample provided there.
Can someone kindly set this right? Will the following work?
CustFont = display.newText( “my little text shown in Droid Sans”, 40, 20, “Droid Sans”, 24 )
And if it will not, due to the reason outlined in the second document (FAQ) then how do I go about finding the font file names on an Android device?
The native.getFontNames() call seems to be returning the long name and not the file name.
Thank you very much for your help. Regards,
Kerem