【发布时间】:2013-12-10 16:59:19
【问题描述】:
我想为 textView 设置自定义字体,但字体应该是设备设置独立的。因为我使用了以下代码:
TextView tv=(TextView)findViewById(R.id.custom);
Typeface face=Typeface.createFromAsset(getAssets(), "fonts/HandmadeTypewriter.ttf");
tv.setTypeface(face);
但字体仍然是我的三星 Galaxy s3 上设置的字体。 我想设置一个独立于设备字体设置的自定义字体。
我浏览了以下链接并尝试了这些东西,但没有成功。
请帮忙。
【问题讨论】: