tags:

views:

24

answers:

2

In Java I would do something like:

java.awt.GraphicsEnvironment.GraphicsEnvironment ge = java.awt.GraphicsEnvironment.GraphicsEnvironment.getLocalGraphicsEnvironment(); Font[] fonts = ge.getAllFonts();

is there an android equivalent?

A: 

There are only 3 fonts available as part of android; normal (Droid Sans), serif (Droid Serif), and monospace (Droid Sans Mono).

Apps can include their own truetype fonts but can't install them for use by other apps.

couple of links about the fonts:

Colin Pickard
A: 

Taken from Mark Murphy's answer on the Android Developers mailing list:

http://developer.android.com/reference/android/graphics/Typeface.html

There are only three fonts: normal (Droid Sans), serif (Droid Serif), and monospace (Droid Sans Mono).

While there may be additional fonts buried in WebKit somewhere, they appear to be inaccessible to developers outside of WebKit. :-(

The only other fonts are any TrueType ones you bundle with your application.

matto1990