【发布时间】:2014-10-12 14:39:45
【问题描述】:
我正在尝试为我的 android 2.3 应用程序使用机器人字体包,但它没有添加 fomarto 字母。我已经尝试过使用此代码:
TextView tvTextView = ( TextView ) findViewById ( R . id . textView1 );
Typeface typeface = Typeface . createFromAsset ( getAssets (), "Roboto-Black.ttf" );
tvTextView . setTypeface ( typeface );
它不应用字母格式,我如何旋转来源roboto android 2.3?
【问题讨论】:
-
您是否在资产中包含 Roboto-Black.ttf 文件?
标签: android font-family