joypixels / emoji-toolkit

The world's largest independent emoji font.
https://www.joypixels.com
Other
434 stars 47 forks source link

Android OS 6.0 devices Typeface.createFromFile with joypixels 6.6/7.0 version emoji font failed #60

Open Zhoutao822 opened 1 year ago

Zhoutao822 commented 1 year ago

try{ mEmoji = Typeface.createFromFile(ttfPath); }catch (Exception e){ if(BuildConfig.LOG_ENABLE){ Log.e(TAG , e ,"parseConfigFile failed "); } }

When I run this code on Android OS 6.0 devices with the latest version 6.6/7.0 joypixels emoji font, it will throw exceptions "Font not found", but on Android OS version >= 7 devices, it worked well. And if I use joypixels 3.0 version font, it also worked well on Android 6.0.