Chapter 42. Fonts

The question you'll inevitably get when developing any type of application is, "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. Android is no different. It comes with some fonts, plus a means for adding new fonts. However, as with any new environment, there are a few idiosyncrasies to deal with, as described in this chapter.

Love the One You're With

Android natively knows three fonts, by the shorthand names sans, serif, and monospace. These fonts are actually the Droid series of fonts, created for the Open Handset Alliance by Ascender (www.ascendercorp.com). To use these three fonts, you ...

Get Beginning Android 3 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.