In this article, we discuss How to use a custom font in Android Studio programmatically. Before we get started, if you want to know about some essential Tips and Tricks for android development, please go through the following article: Tips and Tricks Android App Developers.

 

Download your desire font

First, I download my fonts in .ttf format and I use the dafont.com site to download fonts. Here are the Steps for applying custom fonts on TextView and using this approach you can apply fonts on every TextView or EditText.

  1. Go to the (project folder) Then app>src>main
  2. Create folders named ‘assets/fonts’ into the main folder.
  3. Put your fonts into the fonts folder. Here I Have ‘myfont.ttf’
 
Method with AsseetManager
 
Alternative Method
How to use custom font in Android Studio

Leave a Comment