- Jun 6, 2020
- 11,593
- 4,507
In my previously mentioned quest to bring better emoji to my app's users, I'm using the JoyPixels font. There is a specific Android version of the font, called joypixels-android.ttf, which is in the files folder of my project. It's a large file - 22MB.
As part of the app startup, it's initialised along with other fonts, originally in a code module. SInce this error first appeared, I've tried moving it to Application_Resume as well, so the code I have there now says
B4X:
The font file loads perfectly on my main test device with Android 8, and I thought everything was fine, until I tried the latest build on my backup phone, which is Android 6.
Whether I try loading the font in the Main module, or the code module, I get a runtime exception:
B4X:
As part of the app startup, it's initialised along with other fonts, originally in a code module. SInce this error first appeared, I've tried moving it to Application_Resume as well, so the code I have there now says
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
Whether I try loading the font in the Main module, or the code module, I get a runtime exception:
B4X:
java.lang.RuntimeException: Font not found...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید