4
Typeface tf = Typeface.createFromAsset(this.getAssets(), "Tikkana.ttf");
System.out.println("8888 "+tf.getStyle());
System.out.println(tf);
yourName.setTypeface(tf);

I am using above code but it is not working. The text is displaying like some rectangular boxes.

Dipak Keshariya
  • 22,193
  • 18
  • 76
  • 128
KSP
  • 83
  • 1
  • 8
  • this might help you: http://stackoverflow.com/questions/6612316/how-set-spannable-object-font-with-custom-font#answer-10741161 – Archie.bpgc Aug 21 '12 at 06:27

1 Answers1

0

Try working with this. http://codinglookseasy.blogspot.in/2012/08/localization-using-ttf-files.html

G_S
  • 7,068
  • 2
  • 21
  • 51