简体   繁体   English

Android支持哪些字体文件类型?

[英]What font file types does Android support?

What font file types does Android support (for use with Typeface.createFromAsset, for instance)? Android支持哪些字体文件类型(例如,与Typeface.createFromAsset一起使用)?

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? 我可以看到TTF在一些教程中被提及,而且这里有人暗示现在也支持OTF,但有一个全面的列表,显示不同API级别支持哪些字体文件类型?

Many thanks. 非常感谢。

EDIT: to be specific: can someone show me where it mentions font compatibility and supported font types in the docs - if there is anything there? 编辑:具体:有人可以告诉我它在文档中提到字体兼容性和支持的字体类型 - 如果有什么?

http://www.androidguys.com/2008/08/18/fun-with-fonts/ http://www.androidguys.com/2008/08/18/fun-with-fonts/

Use external fonts in android 在android中使用外部字体

TTF is always been supported. 始终支持TTF。 OTF was later added at least in 1.6 and later, but partially. OTF后来至少在1.6及以后加入,但部分加入。 Some TTF fonts Android doesn't like. 一些TTF字体Android不喜欢。

Android文档没有指定它支持的字体。当Android不喜欢自定义字体而不是提出异常时,它似乎取代了Droid Sans(“sans”)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM