Android 文本看起来非常模糊且绘制不正确
将文本绘制到屏幕上时,文本本身会被截断,并且某些字符(例如 n)看起来像 r。总体来说很难读。我之前画过文字,看起来不错。想知道是否有人有任何煽动为什么会发生这种情况。这是一个屏幕截图的链接。
When drawing the text to the screen the text itself is getting chopped off and certain characters for example the n looks like an r. and overall very hard to read. I have drawn text before and it looked fine. Was wondering if any one had any incites to why this may be happening. Here is a link to a screen shot of what it looks like.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过:
Paint Paint = new Paint(Paint.ANTI_ALIAS_FLAG);
Have you tried:
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
你的文字大小似乎是一个问题。尝试增加您正在使用的 TextView 的高度,应该没问题。
如果您使用画布来绘制文本,那么也许可以尝试增加文本/字体大小。
Your text size seem to be a problem. Try increasing the height of the TextView your are using, and it should be ok.
If you are using the canvas to draw text, then perhaps try increasing the text/font size.