Dave's Brain

Browse - Programming Tips - How can I get a list of all the fonts installed on my Android box?

Date: 2015apr13
Platform: Android


Q.  How can I get a list of all the fonts installed on my Android box?

A.  Unfortunately there isn't an API function for this.

There is some nice code here
http://www.ulduzsoft.com/2012/01/enumerating-the-fonts-on-android-platform/
that does it.

The license is:

/* * Copyright (C) 2011 George Yunaev @ Ulduzsoft * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. */
It looks at all the files in these folders:
"/system/fonts", "/system/font", "/data/fonts"
Not all will exist on your system.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.