什么字体文件类型不支持Android? [英] What font file types does Android support?

查看:159
本文介绍了什么字体文件类型不支持Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么字体文件类型不支持Android(与Typeface.createFromAsset使用,例如)?

What font file types does Android support (for use with Typeface.createFromAsset, for instance)?

我似乎无法找到一个列表中的文档。我可以看到TTF被提到了一些教程,有人在这里暗示,OTF也支持,但现在有一个COM prehensive列表显示了字体文件类型由不同的API级别支持?

I can't seem to find a list in the documentation. I can see TTF gets mentioned in some tutorials and someone on here hinted that OTF is also supported now but is there a comprehensive list that shows what font file types are supported by the different API levels?

非常感谢。

编辑:要具体:?可有人告诉我它提到字体的兼容性和支持的字体类型的文档 - 如果有什么事情有

to be specific: can someone show me where it mentions font compatibility and supported font types in the docs - if there is anything there?

推荐答案

Android的文档不指定它supports.When安卓不喜欢自定义字体,而不是引发异常的字体,它似乎代替德罗伊德桑( SANS)。

Android docs doesn't specify the fonts that it supports.When Android dislikes a custom font, rather than raising an Exception, it seems to substitute Droid Sans ("sans").

这篇关于什么字体文件类型不支持Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆