chrisjenx / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
8.59k stars 1.09k forks source link

Textview Style Not Working #438

Closed deshario closed 5 years ago

deshario commented 6 years ago

After I use this library in MainApp ... My default textview style is not working anymore such as bold,italic and underline... How to fix it?

c0dehunter commented 6 years ago

I am interested too.

busylee999 commented 6 years ago

The same behaviour, I used this in Base activity like this

    override fun attachBaseContext(newBase: Context?) {
        super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase))
    }

and now text style for TextView does not work anymore.

Is there any solution or fix?

chrisjenx commented 5 years ago

When you set a typeface it overrides any "fontstyle" you set, you need to apply the bold/italic versions where applicable.