Android上的印地文马拉地语字体 [英] Hindi Marathi font on Android
问题描述
这字体是最适合在马拉/印度印地文语言开发Android应用程序。我试着用曼加勒和droidsansfallback但仍话不出现,他们应该。我没有看到箱子或一些特殊字符使用上面的字体,这是很好后,但仍然不必须的马拉/印地文的话需要付出字母。任何帮助/指导将AP preciated。谢谢....
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....
推荐答案
由于梵文字体不是由Android的支持,你仍然可以给支持您的应用程序。
As Devanagari fonts are not supported by Android, you can still give that support to your Application.
有关马拉字体拷贝字体文件到您的资产文件夹。然后用下面的code。
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 =任何马拉或梵文字体
Marathifont = any marathi or devanagari font
例如
Marathifont =kiran.ttf
Marathifont = "kiran.ttf"
这篇关于Android上的印地文马拉地语字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!