I am using Calligraphy Library for using custom font in my application. I set a custom font to my whole application by default font using CalligraphyConfig
, in my <
Looks like it's because of AppCompat creating a different version of buttons/textviews at runtime.
In your Calligraphy startup in your Application, add the line:
.addCustomStyle(AppCompatTextView.class, android.R.attr.textViewStyle)
to end up with something like:
@Override
public void onCreate() {
super.onCreate();
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/some-other-custom-font.ttf")
.addCustomStyle(AppCompatTextView.class, android.R.attr.textViewStyle)
.setFontAttrId(R.attr.fontPath)
.build()
);
//....
}
And that should take care of your textviews.
Edit:
This should now be fixed with https://github.com/chrisjenx/Calligraphy/pull/191, currently as a snapshot.