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

It is possible that the interface avoids rendering the textual information. However, most applications have to display some text on the screen. It is time to consider the FreeType text rendering in all its detail with kerning and glyph caching. This is the longest recipe of this book, but we really wish not to miss the details and subtleties of the FreeType usage.

Getting ready

It is time to make the real use of the recipe on the FreeType compilation from Chapter 2, Porting Common Libraries. We start with an empty application template described in Chapter 1, Establishing a Build Environment. The following code supports multiple fonts, automatic kerning, and glyph caching.

In typography, kerning (less commonly mortising) ...

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