O'Reilly logo

Android NDK Game Development Cookbook by Viktor Latypov, Sergey Kosarevsky

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 the FreeType library for text rendering

FreeType has become a de facto standard for high-quality text rendering. The library itself is quite easy to use, and the compilation of a static version relies on the makefile similar to other libraries from this chapter.

Getting ready

Download the most recent source code from the library home page: http://www.freetype.org.

The main FreeType concepts are: a font face, a glyph, and a bitmap. Font faces are collections of all the characters in a font for a given encoding. This is exactly what is stored in the .ttf files (besides copyrights and similar meta information). Each character is called a glyph and is represented using geometrical primitives, such as spline curves. These glyphs are not something ...

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