Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当将文本绘制到屏幕上时,文本本身会被截断,某些字符(例如 n 看起来像 r)。总体上很难阅读。我以前画过文字,看起来还不错。想知道是否有人对为什么会发生这种情况有任何煽动。这是一个链接到它的外观的屏幕截图。
你有没有尝试过:Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
您的文字大小似乎是个问题。尝试增加您正在使用的 TextView 的高度,应该没问题。
如果您使用画布绘制文本,那么也许尝试增加文本/字体大小。