Android: upload custom font to SD card

Can I use a special font in Android that is stored on an SD card? What I have seen so far indicates that the font file should be in the resource folder. Please tell me that I am wrong.

+4
source share
2 answers

I have not tried it myself, but the recipe states that you can do this using

Typeface.createFromFile(String path) 

http://androidcookbook.com/Recipe.seam;jsessionid=A2DD7A11C804B7C7646DCA883AA452FC?recipeId=1141

+3
source

Typeface.createFromFile() accepts a String or File path.

 Typeface typeface = Typeface.createFromFile( new File(Environment.getExternalStorageDirectory(), "font.ttf")); 
+8
source

All Articles