Linked Questions

Popular Questions

Typeface not applied on Huawei EMUI

Asked by At

I'm applying a typeface like so:

findViewById<TextView>(R.id.text).apply {
    typeface = Typeface.createFromAsset(assets, "fonts/blackjack.otf")
}

It works in the emulator and on most Android devices, but it has no effect on Huawei devices with a system font selected.

One such device has the following specs:

EMUI 4.1
Model number EVA-L09
Android Version 6.0

How can I set the font on a device like this? and more importantly, how can I set the font with Spans? that also doesn't work on this device with an alternate system font selected.

Related Questions