chrisjenx/Calligraphy

Override fonts for specific flavor

cloudshooterhuman opened this issue · 0 comments

I had many flavors on my project and for one of them I need to override the font used globaly.

Actually I'm trying to use contants.xml file to override the font for my specific flavor.

Current project state :

main/assets/fonts
bold.otf
semibold.otf

My specific flavor (falvorB) :
flavorB/assets/fonts
flavorBbold.otf
flavorBsemibold.otf

used by styles of (main projetc) like this :

<style ...
<item name="fontPath">@string/semibold</item> // semibold is defined on constants.xml on the main level and overriden on contants.xml  of falvorB
</style>