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 fonts are applied 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 Corp. (www.ascendercorp.com/), a division of ...

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