使用的Roboto稀或稠 [英] Using Roboto thin or condensed

查看:100
本文介绍了使用的Roboto稀或稠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用ICS 的Roboto薄或浓缩的风格无需手动包括.TTF并加载它,我的意思的没有是:

  Typeface.createFromAsset(this.getAssets(),字体/ DroidSerif-Bold.ttf);


解决方案

的Andr​​oid版本低于4.1年长只包括四种基本风格的Roboto:常规,粗体斜体的和 BOLDITALIC 。有没有办法用在ICS薄或浓缩的形式,而不资产。

是Android 4.1(软糖,API16 )和最多包含了更多的Roboto风格的:


  • 常规

  • 斜体

  • 粗体

  • 粗体斜体


  • 轻斜体

  • 简明常规

  • 简明斜体

  • 简明粗体

  • 简明粗体斜体

Is it possible to use Roboto thin or condensed style in ICS without having to include the .ttf and load it manually, I mean without using:

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

解决方案

Versions of Android older than 4.1 include just four basic styles of Roboto: Regular, Bold, Italic and BoldItalic. There is no way to use thin or condensed styles in ICS without assets.

Android 4.1 (JellyBean, API16) and up includes several more Roboto styles:

  • Regular
  • Italic
  • Bold
  • Bold-italic
  • Light
  • Light-italic
  • Condensed regular
  • Condensed italic
  • Condensed bold
  • Condensed bold-italic

这篇关于使用的Roboto稀或稠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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