Android的印地语支持 - 文本显示为框

Dom*_*nic 5 fonts android internationalization android-emulator hindi

eclipse模拟器中的android是否支持hindi字体?我在模拟器和符合Unicode或UTF8标准的印地语网站上看到像☐这样的方框,而不是字符अआइईउ..解决问题的任何设置?

Avi*_*nku 11

这可能对你有帮助

通过将.ttf文件复制到项目的"assets"文件夹中,使用自定义TrueType字体.

然后在您的应用程序中,您可以使用这样的字体;

final Typeface customF = Typeface.createFromAsset(this.getAssets(), "custom.ttf");
final TextView textV = (TextView) findViewById(...);
textV.setTypeface(customF);
Run Code Online (Sandbox Code Playgroud)