Thursday, 26 December 2013

Android how to create the custom Type face.

Hi all,

By this post we are going to learn about how to create/set the custom type face to use particular language or .ttf files in our application.

Just write this line in your application file or needed activity. Its depends upon the project requirement.

 Typeface tamilfont = Typeface.createFromAsset(getAssets(),
"fonts/Bamini.ttf");


Then set the type face to the textview as like the below line. 


textViewTopbar.setTypeface(AthichudiApplication.tamilfont);


No comments: