在我的应用程序上使用Android自定义字体时如何启用抗锯齿? [英] How to enable antialiasing when using Android Custom fonts on my App?

查看:70
本文介绍了在我的应用程序上使用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.

这篇关于在我的应用程序上使用Android自定义字体时如何启用抗锯齿?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆