Custom Fonts and Custom Textview on Android
The constructor of TextView calls setTypeface(Typeface tf, int style) with the style parameter retrieved from the XML attribute android:textStyle. So, if you want to intercept this call to force your own typeface you can override this method as follow: public void setTypeface(Typeface tf, int style) { Typeface normalTypeface = Typeface.createFromAsset(getContext().getAssets(), “font/your_normal_font.ttf”); Typeface boldTypeface = Typeface.createFromAsset(getContext().getAssets(), … Read more