Is it possible to use a custom font in android which is stored in the SD card? What I've seen so far indicates the font file must be in the assets folder. Please tell me I'm wrong.
From Settings, search for and select Font size and style. Then, tap Font size and style again. Tap Font style, and then tap + Download fonts. The Galaxy Store will automatically launch; tap the Install icon next to your desired font.
Verify that the ttf fonts files are in the /product/fonts folder on the device.
Typeface.createFromFile()
takes a String
path or File
.
Typeface typeface = Typeface.createFromFile(
new File(Environment.getExternalStorageDirectory(), "font.ttf"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With