Chapter 12

Fonts

When you're developing any types of applications, inevitably, you'll get the question, “Hey, can we change this font?” The answer depends on which fonts come with the platform, whether you can add other fonts, and how to apply them to the widget or whatever needs the font change.

Fonts in Android applications are no different. Android comes with some fonts, plus a means for adding new fonts. But, as with any new environment, there are a few idiosyncrasies to deal with, as you'll learn in this chapter.

Love the One You're With

Android natively knows three fonts, by the shorthand names of “sans”, “serif”, and “monospace”. These fonts are actually the Droid series of fonts, created for the Open Handset Alliance by Ascender (http://www.ascendercorp.com/oha.html ...

Get Beginning Android 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.