How to set custom font for a whole application in Android?

All I did was:

1: Added “new resource directory” to the RES folder, Selected RESOURCE TYPE as “font” from the drop-down given, named the new directory “font” and saved.
NEW RESOURCE DIRECTORY

2: Added my “custom_font.ttf” to the FONT folder just created.

3: Added my custom font in the application base theme in STYLES.XML

STYLES.XML

DONE.

Leave a Comment