Last Update November 6, 2020: We improved the overall article.

Fonts make the app look great with other UI elements but an obvious thing is that android provide not more fonts for your project so you need to add external fonts to your projects.
In this example i will show how to add fonts to your android studio project.

How to include fonts in android application 1

Start New Project or Existing Project :

Select [Assets] Folder In your project
Create a folder call [fonts] in the [Assets] Directory copy the external fonts in this newly create fonts folder see look image blow:

How to include fonts in android application 2

Create or Open your existing main.xml
Create TextView Inside LinerLayout Section Looks Like :

How to include fonts in android application 3

Now Finally open your MainActivity.class file and try following code. In the following code i am importing font from assets folder and using TypeFace class i am applying custom font on textview label.

import android.os.Bundle;
import android.widget.TextView;

public void onCreate(Bundle savedInstanceState) {

// Font path
String fontPath = “fonts/Externalfont.ttf”;

// text view label
TextView txtGhost = (TextView) findViewById(;

// Loading Font Face
Typeface tf = Typeface.createFromAsset(getAssets(), fontPath);

// Applying font


In this article to including front this an example to how insert front in my way . if you think there is another way to include the front than you should share you idea here to help me & others.

As an Amazon Associate I earn from qualifying purchases.