在我的应用程序上使用Android自定义字体时如何启用抗锯齿?

问题描述:

我删除了chrisjenx/Calligraphy库,以在Android应用程序

I removed chrisjenx/Calligraphy library to use a native Font XML on Android app android official documentation.

替换活动很简单,但是现在te字体呈现为没有抗锯齿效果,在浅色字体中,差异是显而易见的. 我使用了相同的ttf字体(lato-light.ttf).

The replace activity was simple but now te font is rendered without antialiasing, in the light fonts the difference is evident. I have used the same ttf font (lato-light.ttf).

有什么帮助或想法吗?

Any help or ideas?

顶部是本地渲染的, 底部用书法绘制.

the top is rendered natively, the bottom is rendered with calligraphy.

字体为 Lato-Light

我发现的唯一解决方案是返回chrisjenx/Calligraphy库.

The only solution I have found is return back on chrisjenx/Calligraphy library.