O'Reilly logo

Beginning Android 2 by Mark L. Murphy

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

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 ...

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