Can I embed a custom font in an Android application?

前端 未结 3 866
予麋鹿
予麋鹿 2020-11-28 19:58

I would like to have an app include a custom font for rendering text, load it, and then use it with standard elements like StaticText. Is this possible?

3条回答
  •  执笔经年
    2020-11-28 20:39

    As of Android 8.0 (API level 26), you can use fonts in XML. See the documentation here.

提交回复
热议问题