flashup
October 14, 2015, 7:20pm
#21
Names of my fonts: ObelixPro and EuropaNuovaRegular.
I made this fix in my samples copy. I got same results:
legacy build - app works fine
20344-20405/org.openfl.samples.textmetrics I/trace﹕ Lib.hx:548: font name = assets/LiberationSerif-Regular.ttf
next build - app is crashes
19767-19797/org.openfl.samples.textmetrics I/trace﹕ Lib.hx:144: font name = ����������������������������
App runs on 2 different android devices.
Does this work if you try on a platform other than Android?
flashup
October 15, 2015, 9:55am
#23
-DNext
//HTML Lib.hx:144: font name = Liberation Serif
//Flash Lib.hx:144: font name = Liberation Serif
//Neko Lib.hx:144: font name = Liberation Serif
-Dlegacy Neko
//Neko Lib.hx:548: font name = assets/LiberationSerif-Regular.ttf
Other platforms can’t compile. And for html build i converted ttf file to eot, woff and svg fotmats. But “Wqx” text didn’t appear on canvas.
Alright, so maybe there’s a wide character (unicode) issue on Android that needs to be resolved here. The new OpenFL is supposed to (like Flash) use the real font name for the font name, rather than an asset path
1 Like