是否可以使用Roboto 薄型或浓缩型 https://dl-ssl.google.com/android/design/Roboto_Specimen_Book_20111129.pdf在 ICS 中,无需包含 .ttf 并手动加载它,我的意思是without using:
Typeface.createFromAsset(this.getAssets(),"fonts/DroidSerif-Bold.ttf");
4.1 之前的 Android 版本仅包含 Roboto 的四种基本样式:常规、Bold, Italic and 加粗斜体。如果没有资产,就无法在 ICS 中使用精简或精简样式。
安卓4.1(果冻豆,API 16 https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) 及以上包括更多 Roboto 风格 http://developer.android.com/about/versions/android-4.1.html#Fonts:
- Regular
- Italic
- Bold
- 加粗斜体
- Light
- 浅斜体
- 浓缩常规
- 压缩斜体
- 浓缩粗体
- 压缩粗斜体
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)