Fonts are crucial part of Android Design. It is very easy to implement a third party font in Android. Let’s see how.
Start by creating a new project. Create a folder named assets under the main directory as show below.
Copy the font file (.ttf) that you may have downloaded into this folder. Now you just have to write 3 lines of code in the MainActivity file to make it work.
TextView txt = (TextView) findViewById(R.id.textView);
//Loading Font Face
Typeface tf = Typeface.createfromAsset(getAssets(),"fontname.ttf");
That’s it. You have successfully implemented a third party font in your project. Congrats!
For more fonts, you can check http://www.1001freefonts.com. Read the terms and conditions before using the fonts in your app.