Book Image

Building Android Games with Cocos2d-x

By : Raydelto Hernandez
Book Image

Building Android Games with Cocos2d-x

By: Raydelto Hernandez

Overview of this book

Table of Contents (16 chapters)
Building Android Games with Cocos2d-x
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating bitmap font labels


So far we have seen how easy it is to create labels by using TrueType and system fonts, now we will perform some extra steps in order to achieve a more professional style for our labels. As mentioned before, bitmap fonts are the most common kinds of labels used in professional games.

As its name suggests, bitmap fonts are generated by the images that represent each character, which will allow us to draw any font that we want, but it will have all the disadvantages of bitmap, such as the risk of our label getting pixelated, the lack of flexibility when handling the different sizes, and extra space on the disk and RAM for handling these kinds of fonts.

There are several applications that you can use for creating bitmap fonts. The most common one is Glyph Designer, which you can acquire from the URL https://71squared.com. This application was originally released for the Mac OS, but in early 2015 Glyph Designer X was released for Windows as well. You can also create...