chrisjenx / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
8.59k stars 1.1k forks source link

Fonts not appliying on "release dexguard" #476

Open NikhilBhadouria opened 4 years ago

NikhilBhadouria commented 4 years ago

I am developing kotlin android app, with dexguard

calligraphy library works fine with dexguard-debug.pro

but i get following error with dexguard-release.pro and the fonts dont apply showing default fonts

: Can't create asset from fonts/Gotham/Gotham-Bold.otf. Make sure you have passed in the correct path and file name. java.lang.RuntimeException: Font asset not found fonts/Gotham/Gotham-Bold.otf at android.graphics.Typeface.createFromAsset(Typeface.java:310) at uk.co.chrisjenx.calligraphy.TypefaceUtils.load(:35) at uk.co.chrisjenx.calligraphy.CalligraphyUtils.applyFontToTextView(:114) at uk.co.chrisjenx.calligraphy.CalligraphyUtils.applyFontToTextView(:143) at uk.co.chrisjenx.calligraphy.CalligraphyFactory.onViewCreatedInternal(:142) at uk.co.chrisjenx.calligraphy.CalligraphyFactory.onViewCreated(:110)