Hindi language support for Android - text shows up as boxes

前端 未结 2 2021
粉色の甜心
粉色の甜心 2020-12-06 07:59

Does android in eclipse emulator support hindi fonts? I see Square boxes like ☐ instead of characters अ आ इ ई उ ऊ on Emulator and on Unicode or UTF8 compliant Hindi websites

2条回答
  •  遥遥无期
    2020-12-06 08:42

    This might help you

    use custom TrueType fonts by copying the .ttf file into your projects's 'assets' folder.

    Then in your application you can use the font like this;

    final Typeface customF = Typeface.createFromAsset(this.getAssets(), "custom.ttf");
    final TextView textV = (TextView) findViewById(...);
    textV.setTypeface(customF);
    

提交回复
热议问题