gpt4 book ai didi

android - 自定义字体显示 Artifact

转载 作者:行者123 更新时间:2023-11-29 02:05:12 26 4
gpt4 key购买 nike

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

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com