How to draw text clearly in OpenGL ES (Android)

1.2k views Asked by At

First I have read this article about how to draw text in OpenGL ES(Android): https://stackoverflow.com/a/4336679/2757195

I use the same way to draw text in OpenGL ES(Android), except that I use Android JNI API.

My Problem is the text which been drawed in my demo is very fuzzy. And if I increase the size of the same font(such as times 2.0f), it will become more clearer than before. It doesn't make sense!

An example:

font size:12, the rectangle of one character in this font is: RectA(using measureText to get advance).

If the width and height of dest drawing rectangle region is same with RectA, then the character is very fuzzy.

But if I increase the size of font to 60, and the dest drawing rectangle is still RectA, then the character is very clearly.

Why?

0

There are 0 answers