Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What font file types does Android support?

Tags:

android

fonts

What font file types does Android support (for use with Typeface.createFromAsset, for instance)?

I can't seem to find a list in the documentation. I can see TTF gets mentioned in some tutorials and someone on here hinted that OTF is also supported now but is there a comprehensive list that shows what font file types are supported by the different API levels?

Many thanks.

EDIT: to be specific: can someone show me where it mentions font compatibility and supported font types in the docs - if there is anything there?

like image 606
ac_ Avatar asked Jan 06 '12 16:01

ac_


People also ask

What is TTF file in Android?

ttf files from your computer to your rooted smartphone and use them as the default system font. That app is Font Installer. Once installed, you can then copy your . ttf files (from your computer) into a directory on your device and use that font as the default.

How do I add TTF fonts to Android?

Tap the green plus button and select the Add file option. Navigate to your Fonts folder and select the TTF file. The font should appear in the Local section of zFont. Tap the font and then tap the Apply button.

Where is the font file in Android?

You can add the font file in the res/font/ folder to bundle fonts as resources. These fonts are compiled in your R file and are automatically available in Android Studio. You can access the font resources with the help of a new resource type, font . For example, to access a font resource, use @font/myfont , or R.

How do I edit TTF files on Android?

To change font styles in GO Launcher, copy the TTF or OTF font files on your phone. Long press on the home screen and select GO Settings > Font > Select Font.


1 Answers

http://www.androidguys.com/2008/08/18/fun-with-fonts/

Use external fonts in android

TTF is always been supported. OTF was later added at least in 1.6 and later, but partially. Some TTF fonts Android doesn't like.

like image 93
chubbsondubs Avatar answered Sep 20 '22 21:09

chubbsondubs