在应用程序旁遮普语字体问题? [英] Problem in Punjabi font in the application?

查看:103
本文介绍了在应用程序旁遮普语字体问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于在应用程序旁遮普语字体问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆