在Android中使用OpenType字体功能 [英] Use OpenType font features in Android
本文介绍了在Android中使用OpenType字体功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有什么办法可以在Android中使用OpenType字体功能(小盘股,老式的人物,等等)?就像一个定制的TextView将是理想的。
Is there any way to use OpenType font features (small caps, old style figures, etc.) in Android? Something like a custom TextView would be ideal.
推荐答案
由于API级别21,<一的href="http://developer.android.com/reference/android/graphics/Paint.html#setFontFeatureSettings(java.lang.String)"相对=nofollow>油漆现在支持OpenType字体功能。
As of api level 21, Paint now supports OpenType font features.
这篇关于在Android中使用OpenType字体功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文