Custom fonts in Cocos2d

The font shortcut does not work, I added a font folder in the resource folder.

pop = CCLabel.makeLabel("Eggs left: ", "fonts/comic.ttf", 14); 
+4
source share
2 answers

This was due to android-cocos2d.jar .. I replaced the new jar and now it gives me changed fonts.

-1
source
 CCLabel labelMainMenu = CCLabel.makeLabel("OPTIONS MENU", "Fonts/JimboStd-Regular.otf", 20); 

I think you forgot to specify the font size in the float. and look at the font folder being created in tests ...

+3
source

All Articles