I have a bilingual program (Persian, English). I want the font of the program to change when the Persian language is selected And when the English language is selected, the default font (Them) will be applied
In simple words, I want to change the font of the entire program from the activity
val typeface = Typeface.createFromAsset(activity.assets, "fonts/my_font.ttf")
activity.findViewById<View>(android.R.id.content).setTypeface(typeface)
I tested but it didn't work