How to get Hindi fonts in Android..?

Diwakar picture Diwakar · Mar 25, 2013 · Viewed 21.7k times · Source

I'm new to Android field . I have followed the procedure of getting Hindi fonts on emulator but still Hindi characters are appearing in square boxes. Please help me how to proceed. I m using android 2.2 ,juno version. Any help regarding above problem will be highly appreciated.

Answer

Naveen Tamrakar picture Naveen Tamrakar · Aug 12, 2013

Set The Hindi Font on TextView in Android

 TextView t = new TextView(this);
 Typeface Hindi = Typeface.createFromAsset(getAssets(), "fonts/mangle.ttf");
 t.setTypeface(Hindi);
 t.setText("Naveen Tamrakar");