Pages

Custom fonts with Cocos2D

Custom fonts are easy in Cocos2d.

Drag you font into your project and reference it list this:


CCLabelTTF *hsLabel = [CCLabelTTF labelWithString:@"Label Goes Here" fontName:@"fontname.ttf" fontSize:52];

No need to do anything with you .plist.

Remember, fonts are case sensitive, and won't work on your device if the case doesn't match.

No comments:

Post a Comment