How to retrieve a list of available/installed fonts in android?

前端 未结 4 918
野的像风
野的像风 2020-11-27 17:11

In Java I would do something like:

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


        
4条回答
  •  一向
    一向 (楼主)
    2020-11-27 18:16

    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.

    • http://www.mail-archive.com/android-developers@googlegroups.com/msg44221.html

    couple of links about the fonts:

    • http://www.forbes.com/2008/09/25/font-android-g1-tech-wire-cx_ew_0926font.html
    • http://www.droidfonts.com/droidfonts/about/

提交回复
热议问题