Custom Font Not Working in Lollipop

Glad to see it’s not just me. Hope someone from Corona responds soon. Thanks.

We will need a bug report filed.  That said:

Android L is really new.  There are considerable bugs that early adopters are seeing.  They have made significant changes to the OS and it may take time for us to work through all of this.

So please file a bug report and post the bug report number that you get in email (case #) back here as a reference.

Thanks

Rob

Thanks, Rob.

I have entered a bug for this with case #: 37389.

I filed it under Android 4.x because there’s no Android 5.x category.

Thanks!

have a look here:

https://code.google.com/p/android-developer-preview/issues/detail?id=608&thanks=608&ts=1404735239

Can you look at response #16 and see if that work around will solve this for you?  If not you may be waiting until a Lollipop update before this works.  It doesn’t sound like its something we can fix.

Rob

Ah, excellent. Thank you simonevalenti73, that fixed it!

:wink:

UPDATE: I tried printing the list of all font names using native.getFontNames() but the font does not appear in the list. In fact, none of the custom fonts appear in the list. But the “Anke” font is the only one that’s not displaying correctly on screen.

Please help.

11-26 23:45:12.593  23228-23271/? I/Corona﹕ Printing all font names

11-26 23:45:12.597  23228-23271/? I/Corona﹕ AndroidClock

11-26 23:45:12.597  23228-23271/? I/Corona﹕ AndroidClock_Highlight

11-26 23:45:12.597  23228-23271/? I/Corona﹕ AndroidClock_Solid

11-26 23:45:12.597  23228-23271/? I/Corona﹕ ComingSoon

11-26 23:45:12.597  23228-23271/? I/Corona﹕ Clockopia

11-26 23:45:12.597  23228-23271/? I/Corona﹕ CarroisGothicSC-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ CutiveMono

11-26 23:45:12.597  23228-23271/? I/Corona﹕ DroidSans-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ DroidSans

11-26 23:45:12.597  23228-23271/? I/Corona﹕ DancingScript-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ DancingScript-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoNaskh-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoNaskh-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoNaskhUI-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoNaskhUI-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ DroidSansMono

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansArmenian-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansArmenian-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansCanadianAboriginal-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ MTLmr3m

11-26 23:45:12.597  23228-23271/? I/Corona﹕ Roboto-Black

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoColorEmoji

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansBengali-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansBengali-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansBengaliUI-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansBengaliUI-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansDevanagari-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansDevanagari-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansDevanagariUI-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansDevanagariUI-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansKannada-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansKannada-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansKannadaUI-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansKannadaUI-Regular

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansKhmer-Bold

11-26 23:45:12.597  23228-23271/? I/Corona﹕ NotoSansKhmer-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansKhmerUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansKhmerUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansLao-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansLao-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansLaoUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansLaoUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMalayalam-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMalayalam-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMalayalamUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMalayalamUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansCherokee-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTamil-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTamil-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTamilUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTamilUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTelugu-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTelugu-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTeluguUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansTeluguUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansThai-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansThai-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansThaiUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansThaiUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansEthiopic-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-BoldItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-Italic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-Light

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-LightItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-Thin

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-ThinItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ RobotoCondensed-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ RobotoCondensed-BoldItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ RobotoCondensed-Italic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ RobotoCondensed-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansEthiopic-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGeorgian-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGeorgian-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGujarati-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGujarati-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGujaratiUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGujaratiUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGurmukhi-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGurmukhi-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGurmukhiUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansGurmukhiUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansHebrew-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansHebrew-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMyanmar-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMyanmar-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMyanmarUI-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansMyanmarUI-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansSinhala-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansSinhala-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansSymbols-Regular-Subsetted

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSansYi-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSerif-Bold

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSerif-BoldItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSerif-Italic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ NotoSerif-Regular

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-BlackItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-Medium

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Roboto-MediumItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ RobotoCondensed-Light

11-26 23:45:12.598  23228-23271/? I/Corona﹕ RobotoCondensed-LightItalic

11-26 23:45:12.598  23228-23271/? I/Corona﹕ Done.

Confirmed, same here, with other fonts.

I use a few custom fonts. None of them are listed by native.getFontNames(). Some of them are actually displayed correctly though. The .otf fonts are working, the .ttf one aren’t. Hope it helps.

Glad to see it’s not just me. Hope someone from Corona responds soon. Thanks.

We will need a bug report filed.  That said:

Android L is really new.  There are considerable bugs that early adopters are seeing.  They have made significant changes to the OS and it may take time for us to work through all of this.

So please file a bug report and post the bug report number that you get in email (case #) back here as a reference.

Thanks

Rob

Thanks, Rob.

I have entered a bug for this with case #: 37389.

I filed it under Android 4.x because there’s no Android 5.x category.

Thanks!

@George 
Were you able to use the OpenType Sanitizer tool successfully? 

I keep getting errors when I try to make the library (http://stackoverflow.com/questions/28365352/undefined-reference-to-pthread-craete-error-in-ots-library)

Never mind! Got it working.  :slight_smile:

have a look here:

https://code.google.com/p/android-developer-preview/issues/detail?id=608&thanks=608&ts=1404735239

Can you look at response #16 and see if that work around will solve this for you?  If not you may be waiting until a Lollipop update before this works.  It doesn’t sound like its something we can fix.

Rob

Ah, excellent. Thank you simonevalenti73, that fixed it!

:wink:

@George 
Were you able to use the OpenType Sanitizer tool successfully? 

I keep getting errors when I try to make the library (http://stackoverflow.com/questions/28365352/undefined-reference-to-pthread-craete-error-in-ots-library)

Never mind! Got it working.  :slight_smile: