Hindi Marathi font on Android

一世执手 提交于 2019-12-24 17:48:01

问题


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....


回答1:


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"




回答2:


Devnagari fonts are not supported in older devices. You can replace the default font after rooting the device. mangal font worked pretty well for me.

Fontoosh can be helpful for installing devnagari font or replacing the font.




回答3:


I think you should use Google Noto Fonts. Just search for Hindi/Marathi and you will get fonts for it.
Noto Sans Devanagari is good.



来源:https://stackoverflow.com/questions/9839336/hindi-marathi-font-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!