The current resolution path doesn't allow for exceptions. If I define the font in the theme to get it across the app, it's not possible to disable it on lower levels (textAppearance, style, view).
<style name="MyTextAppearance" parent="TextAppearance.AppCompat">
... other customizations
<item name="fontPath">fonts/MyFont.ttf</item>
</style>
but this obviously doesn't work, because CalligraphyFactory is using TextUtils.isEmpty to check and fall back to more and more global values.
Would it be possible to include some magic value like fontPath="android:font-family" to break out of font resolution in onViewCreatedInternal and prevent calling applyFontToTextView?
The current resolution path doesn't allow for exceptions. If I define the font in the theme to get it across the app, it's not possible to disable it on lower levels (textAppearance, style, view).
Which is used in the theme (as shown in https://github.com/chrisjenx/Calligraphy/issues/319#issuecomment-293930302).
I want to be able to say:
but this obviously doesn't work, because
CalligraphyFactory
is usingTextUtils.isEmpty
to check and fall back to more and more global values.Would it be possible to include some magic value like
fontPath="android:font-family"
to break out of font resolution inonViewCreatedInternal
and prevent callingapplyFontToTextView
?