Some time we need to add custom font family in our android application. Here is simple and working technique you can use to add font family in your android application.

Step 1. Create assets folder inside F:\location\app\src\main  in your project.

Step 2. Create fonts folder inside assets and paste your font family inside it.

Step 3. Now open your java file inside your class declare static variable in which we define location of font family

static String font = "fonts/Philosopher-Bold.ttf";

Step 4. Find your TextView where you want to set font family and set font as shown below code.

TextView textView = (TextView) findViewById(R.id.nameBrand);
Typeface tf = Typeface.createFromAsset(getAssets(), font);
textView.setTypeface(tf);

All done now run your app and check.