【问题标题】:Using Roboto thin or condensed使用 Roboto 薄或浓缩
【发布时间】:2012-05-16 04:28:28
【问题描述】:

是否可以在 ICS 中使用 Roboto thin or condensed style 而无需包含 .ttf 并手动加载它,我的意思是 无需 使用:

Typeface.createFromAsset(this.getAssets(),"fonts/DroidSerif-Bold.ttf");

【问题讨论】:

    标签: android android-fonts


    【解决方案1】:

    早于 4.1 的 Android 版本仅包含四种基本的 Roboto 样式:Regular、BoldItalicBoldItalic强>。在没有资产的情况下,无法在 ICS 中使用精简或压缩样式。

    Android 4.1 (JellyBean, API16) 及更高版本includes several more Roboto styles

    • 常规
    • 斜体
    • 粗体
    • 粗斜体
    • 浅斜体
    • 精简常规
    • 简体斜体
    • 浓缩粗体
    • 浓缩粗斜体

    【讨论】:

    • 你知道为什么会这样吗?可能有更多详细信息的链接?无论如何感谢您的回答。
    • 我刚刚更正了答案,因为可以在 Android 4.1 及更高版本中使用它们。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-26
    • 1970-01-01
    • 2015-10-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多