android - 自定义字体显示 Artifact

标签 android view fonts artifact

我为我的应用程序使用自定义字体。代码集成起来非常简单:

Typeface tf = Typeface.createFromAsset(getApplicationContext().getAssets(),
            "fonts/PermanentMarker.ttf");
    textview.setTypeface(tf);

但是我的一些 TextView 有瑕疵:http://desmond.imageshack.us/Himg11/scaled.php?server=11&filename=screenshot2012050621514.png&res=landing

我真的不知道它是从哪里来的。你有什么想法吗?

最佳答案

错误来自硬件加速。当强制 TextView 使用软件渲染时,一切都变得很好。

关于android - 自定义字体显示 Artifact ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10473794/

相关文章:

java - 分配二维数组分配额外内存的问题

自定义 View 中的 Android findViewById()

android - 可以在 Android Layout XML 中传递一个 Class<> 对象吗?

css - 如何合并@font-face 和@media 声明?

java - Android fragment 在 Activity 重新启动时未重新创建

java - Android 无法设置 TextView 的颜色

ruby-on-rails - 为 has_many :through relationship in Rails 3 创建 Controller 和 View

java - 在Java中确定特定字体是否可以呈现特定字符

C# - 读取和预览字体

java - Android VideoView 从资源中加载音频/视频文件