在应用程序旁遮普语字体问题?旁遮普、应用程序、字体、问题

2023-09-03 20:46:33 作者:徒生罪孽

我开发的,我想在我的应用程序旁遮普语文字的应用程序。

I am developing an application in which i want Punjabi language text in my application.

因此​​我保存(AnmolUni.ttf)字体的资产文件夹在我的应用程序文件。但我仍然没有得到正确的观点。仿真器显示我的箱子的地方。

Therefore i save (AnmolUni.ttf)font file in the assets folder in my application. But still i didn't get the proper view. The emulator shows me boxes somewhere.

这是我的code

Typeface myfont;
        myfont=Typeface.createFromAsset(getAssets(),"AnmolUniHeavy.ttf");
        TextView textview = (TextView)findViewById(R.id.TextView01);
        //textview.setText("ਸਤਿਗੁਰ ਪ੍ਰਸਾਦਿ  ॥ਤਤਕਰ ");
        textview.setTypeface(myfont);
    }

所以你能不能给我任何的解决方案吧。

so can you give me any solution for it.

推荐答案

很多语言(尤其是印度的)没有在Android上支持尚未。该问题的产生是因为这一点。你可能只是需要等待,做支持的释放。目前在网络,让你安装的字体,一旦你已经植根您的手机上一些线程,但是你可能不能够做到这一点与您的应用程序。检查此链接的出添加更多资源到Android手机。

A lot of languages (especially Indian ones) are not supported as yet on Android. The problem arises because of that. You might just have to wait for the release that does support. There are some threads on the web that allow you install fonts once you have rooted your phone, but you may not be able to do that with your application. Check this link out for adding more resources to the android phone.