-
-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font registration fails / not working #498
Comments
If the font is not registered / not auto detected you can register it manually and actually skip the usual init. |
But why could the auto registration fail? It should work in general, shouldn't it? Manual registration solves the problem of course |
if the font was not used programmatically in a different place. the xml parser may not have access to the resources so it won't be able to search for them. But I could have another look this weekend. |
I thought something similar - my tested solution was to add the font in my main app module as well (I use a multi module setup and only add the fonts via |
No what I meant is if you use a but your comment may also mean that obfuscation removes something which breaks the reflection detection :/ |
I don't think this is true - I can't find anything in code that would do this. And simply creating a |
@MFlisar could it be that that you use a different package name, or that proguard results in your packages be different than expected? Adding a method to provide the R fields manually for such cases in v5.0.2 |
Do the init like this:
|
Special setup What I do is following:
Whereas my packages are located under v5.0.2 I tried the new init method without success (I used my main apps R file) |
About this issue
Iconics.Font
is of size 0I do following in my app:
Iconics.init(this)
IconicsViews
IconicsMenuInflaterUtil.inflate
functionI don't see icons in my menus because the font is not found at this location:
Android-Iconics/library-core/src/main/java/com/mikepenz/iconics/utils/IconicsDrawableExtensions.kt
Line 42 in 756e319
Is there anything I'm missing here?
Details
androidx = [
supportv4 : "1.0.0",
fragment : "1.2.1",
appcompat : "1.1.0",
material : "1.2.0-alpha05"
]
com.mikepenz:google-material-typeface:3.0.1.4.original-kotlin@aar
The text was updated successfully, but these errors were encountered: