I have 9 fonts inside my app because my app supports 3 languages, 3 fonts for every language like this
Arabic -> ar_light_font , ar_medium_font , ar_bold_font
English -> en_light_font , en_medium_font , en_bold_font
Spanish -> es_light_font , es_medium_font , es_bold_font
There are some text views that take a light font and there are some text views that take a medium font and there are some text views that take bold font.
For example, I have these text views
<TextView
android:id="txt1"
android:fontFamily="ar_bold_font" />
<TextView
android:id="txt2"
android:fontFamily="ar_light_font" />
<TextView
android:id="txt3"
android:fontFamily="ar_medium_font" />
If you noticed if the language of the device was Spanish then will still read from Arabic font so are there any ways to change font name from ar toes depending on the device language?