umi icon indicating copy to clipboard operation
umi copied to clipboard

Some ".ttf" fonts are not woking in iOS.

Open ManikandanDennis opened this issue 4 years ago • 3 comments
trafficstars

PoppinsSemiBold.ttf.zip

Attached font is not working on MobileInputField in iOS. It gets replaced with iOS default font.

ManikandanDennis avatar Jun 03 '21 07:06 ManikandanDennis

#59

mopsicus avatar Jun 03 '21 09:06 mopsicus

In android all fonts are working fine. but when it came to iOS getting this error when try to load "not working" font. CFErrorRef Error Domain=NSPOSIXErrorDomain Code=22 'Invalid argument'

When loading your demo scene font "Chilanka.ttf", CFErrorRef is null.

ManikandanDennis avatar Jun 07 '21 05:06 ManikandanDennis

I am also having trouble with some custom fonts in MobileInputField on iOS.

Poppins-Regular is working fine for me, but I have been unable to get any other custom fonts to work so far.

When a font fails to load, TimesNewRoman is used instead, and I get the following output in the debug log:

CoreText note: Client requested name ".Helvetica NeueUI", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].

2021-06-25 23:24:39.181771+0100 FirstContact[497:60183] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.

Plugins receive data: {"name":"mobileinput","data":"{\"msg\":\"READY\",\"id\":2}"}
Mopsicus.Plugins.Plugins:OnDataReceive(String)

Any ideas on how to fix this would be much appreciated!

Thank you :)

JustFinRadio avatar Jun 26 '21 00:06 JustFinRadio