Published on September 12, 2017 by Android Developers

Android O and Support Library 26 introduce new ways of working with fonts. You can now bundle fonts as resources by adding the font file in the res/font folder and use it like any other asset in XML layouts, styles or programmatically via the Typeface.

Instead of bundling your font files in the APK, you can now let the APK download them. Your app’s size is decreased and overall system health is improved, since multiple APKs can use the same font.

For more info, check out:
Working with Fonts guide: goo.gl/BH43G7
Downloadable Fonts guide: goo.gl/1qot1v
Downloadable Fonts sample: goo.gl/xJ5O3C
Google I/O 2017 talk on “What’s new in Support Library”: goo.gl/Ukf4Mz

Leave a Reply

58 Comments on "Using Fonts in Android"

Notify of
avatar

Terry
Guest
Terry
6 months 1 day ago

Thank you,, Just these 3 minutes answered a ton of questions that i had …

OttmarAHS
Guest
OttmarAHS
7 months 5 days ago

how to see this folder?

Edgard Ochoa
Guest
Edgard Ochoa
8 months 7 days ago

Yikes!!!!

Edgard Ochoa
Guest
Edgard Ochoa
8 months 7 days ago

Yikes!!!!

Alok Maurya
Guest
Alok Maurya
8 months 27 days ago

Will you marry me? <3

Alok Maurya
Guest
Alok Maurya
8 months 27 days ago

Will you marry me? <3

j2emanue
Guest
j2emanue
9 months 12 days ago

how would i apply a font to the entire app. i want the app to have a default font

j2emanue
Guest
j2emanue
9 months 12 days ago

how would i apply a font to the entire app. i want the app to have a default font

Дмитрий Пупкинг
Guest
Дмитрий Пупкинг
9 months 24 days ago

Apparently it does not work in the Android Studio 2.3. Google note it in the documentation.

Дмитрий Пупкинг
Guest
Дмитрий Пупкинг
9 months 24 days ago

Apparently it does not work in the Android Studio 2.3. Google note it in the documentation.

1 2 3 5
wpDiscuz