chrisjenx / Calligraphy

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

textStyle="bold" no longer applies after setting a default font? #423

Closed liuzhen2008 closed 5 years ago

liuzhen2008 commented 6 years ago

It occurs to me that after I use a font as the theme default.

        initDefault(new CalligraphyConfig.Builder()
                .setDefaultFontPath(getString(R.string.font_helvetica_neue))
                .setFontAttrId(R.attr.fontPath)
                .build());

For some reason textStyle="bold" no longer gets applied in my app. I had to change font to a bold version to apply bold style.

Is there some way i could automatically use a bold version of the font for textStyle="bold"?

deshario commented 6 years ago

Hey @liuzhen2008 Did u find the solution ?

c0dehunter commented 6 years ago

Is there any solution to this? I want to be able to use bold style too.

harryd-23 commented 6 years ago

@chrisjenx Do you have any solution?

chrisjenx commented 5 years ago

Same response as #438