Hindi Marathi font on Android

user12345 picture user12345 · Mar 23, 2012 · Viewed 7.9k times · Source

which font is most suitable for Android application developed in Marathi/ Hindi indian language. I tried with mangal and droidsansfallback but still the words dont appear as they should. I don't see the boxes or some special characters after using above font which is good, but still the marathi/hindi words doesnt have exacts alphabets. Any help/guidance will be appreciated. Thanks....

Answer

user671253 picture user671253 · Mar 30, 2012

As Devanagari fonts are not supported by Android, you can still give that support to your Application.

For Marathi font copy font file to your asset folder. then use the following code.

 TextView text_view = new TextView(this);
 Typeface font = Typeface.createFromAsset(getAssets(), MarathiFont);
 text_view.setTypeface(font);
 text_view.setText("मराठी");

the same way u can give support for hindi....

Marathifont = any marathi or devanagari font

e.g

Marathifont = "kiran.ttf"