O'Reilly logo

Cocos2d-x Cookbook by Akihiro Matsuura

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Glyph Designer

In games, you have to use text frequently. In which case, if you used the system font to display the text, you will have some problems. That's why there are different fonts for each device. The bitmap fonts are faster to render than the TTF fonts. So, Cocos2d-x uses the bitmap font to display the fps information in the bottom-left corner. Therefore, you should add the bitmap font into your game to display the text. In this recipe, you will learn how to use Glyph Designer which is the tool to make the original bitmap font and how to use the bitmap font in Cocos2d-x.

Getting ready

Glyph Designer is a paid application. But you can use a free trial version. If you don't have it, you can download it by visiting the following URL: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required