I am working on a mac and iOS port at the same time. I am noticing, however, that the text on the iOS port looks pretty ragged. Is there a way to get smooth text?
Is there a way to make text smooth?
(6 posts) (3 voices)-
Posted 3 months ago #
-
Well what are you using for the text? There's 3 basic ways to do it in Cocos2D: CCLabelBMFont (bitmapped, pre rendered), CCLabelTTF (rendered live by the system from outlined font), or using pre-rendered images of text. Other things can affect the look like whether you're scaling it. If you're using one of the prerendered options, did you antialias the text? Also try
[[CCDirector sharedDirector] setProjection:kCCDirectorProjection2D];Posted 3 months ago # -
This is CCLabelTTF font on the mac. The text doesn't seem as crisp as on iOS (even in the simulator). I do notice that iOS is using a different way to render the text than the Mac. Not sure if that plays into it. CCLabelTTF is not using the glyphs it is drawing to an image and using that. My though is to use a bitmap font but hesitant since we have to display names from game center. I'd be covered for latin names but not for others.
Posted 3 months ago # -
@venturabumm - are you using 2d or 3d projection on iOS (3d is the default)? If you are using 3d then try setting the vertexZ of the labels to -0.5. Also try adding 0.5 to the x and y coordinates of the text labels.
Posted 3 months ago # -
I was using 2D project on the mac becuase i am getting cracks where i pattern things. . The 3d projection is better but none of the suggestions are helping.
Posted 2 months ago # -
If I move to 3D rendering all my textures are then blurry on the mac.
Posted 2 months ago #
Reply
You must log in to post.