igrek
igrek

Reputation: 1425

Why is my small font too blurry on an iPhone?

I am porting a game from the iPad to iPhone (using XCode cocos+box). I use a custom font (*.ttf) which is nice when drawn with a big font size, but if I use a small font size, the text gets too blurry.

If I do not scale font size itself but scale the font's parent, the text becomes too sharp-cut and memory consuming. Since I'm porting a game, I need font to be a bit blurry, but not too much so that it is still readable.

There is also another problem with the blurriness: not all text looks nice. I create a "Start game" label and it looks just fine but when I create a "Settings" label just the same way it looks more blurry.

Is it because of the *.ttf file or is it me doing something wrong? If it is the font, how can I fix it?

Upvotes: 1

Views: 1268

Answers (1)

Sepehr Mahmoudian
Sepehr Mahmoudian

Reputation: 771

Text and images look blurry if they are drawn at half pixel boundaries, can you provide us with the source code that is responsible for drawing the text into the screen?

Upvotes: 3

Related Questions