卡纳达语字体在Android ICS [英] Kannada Font on Android ICS

查看:504
本文介绍了卡纳达语字体在Android ICS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我支持泰米尔语和卡纳达语字体在我的应用程序。 我用下面的code设置TextViews的字体,按钮等。

I am supporting Tamil and Kannada fonts in my application. I use the following code to set the typeface of TextViews, Buttons, etc

FONT_TAMIL = Typeface.createFromAsset(getAssets(), "fonts/tamil.ttf");
tvTitle.setTypeface(FONT_TAMIL);

FONT_KANNADA = Typeface.createFromAsset(getAssets(), "fonts/kannada.ttf");
tvTitle.setTypeface(FONT_KANNADA);

我能够甚至姜饼正确显示泰米尔语字符。但我不能够显示卡纳达语字体。任何人都可以请帮我找到我要去的地方错了?

I am able to display Tamil characters properly even on GingerBread. But I am not able to show the Kannada font. Can anyone please help me to find where I am going wrong?

泰米尔语的一个例子截图..

An example screenshot of Tamil..

卡纳达语的一个例子截图..

An example screenshot of Kannada..

谢谢, KARTHIK

Thanks, Karthik

推荐答案

你有没有尝试过的replaceAll函数来代替每个统一code字符的ASCII?您可以使用字符映射工具在Windows中获得相当的ASCII字符为每个卡纳达语/泰米尔语字符。

Did you tried replaceAll function to replace each and every Unicode characters to Ascii? You can use Character Map tool in Windows to get the equivalent ASCII characters for each of your Kannada/Tamil characters.

1)首先你在你的PC上安装两个单向code和卡纳达语字体。

1) First you install both Unicode and Kannada font in your PC.

2),然后打开两个字符映射tool.Select统一code字型窗口第一个窗口和ASCII中的第二个。

2) Then open two windows of character map tool.Select Unicode font in first window and Ascii in second one.

3)在这两个窗口,双击想要的字符(在两个窗口相同的字符)。所以字符将在textbox.Copy从两个窗户,字符显示,并增加他们的replaceAll功能。

3) In both windows, double click the desired characters (same character in both windows).So the character will be displayed in the textbox.Copy that character from both windows and add them to replaceAll function.

它需要长时间的每一个字符和复制combinations.But我不认为有显示UNI code正确低于ICS version.You需要转换it.And ofcourse勤劳通向成功的另一种方法:)最良好的祝愿兄弟......

Its takes long to copy each and every characters and character combinations.But I dont think there is another method to display unicode properly below ICS version.You need to convert it.And ofcourse hardwork leads to success :) Best wishes bro...

这篇关于卡纳达语字体在Android ICS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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