泰米尔UNI code字体的文本加扰/ android中破 [英] tamil unicode font text scrambles/broken in android

查看:211
本文介绍了泰米尔UNI code字体的文本加扰/ android中破的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用UNI code字型android系统,而不是 bamini 。我不希望使用脚本转换为&放大器;从 bamini 来UNI code。

i need to use unicode font in android instead of bamini. I don't want to use script to convert to & from bamini to unicode.

Typeface fontface2 = Typeface.createFromAsset(this.getAssets(), "fonts/Lohit-Tamil-Classical.ttf");
playBtn.setTypeface(fontface2);
//playBtn.setText(UnicodeUtil.unicode2tsc(getContext().getString(R.string.QUIZ)));
playBtn.setText(Html.fromHtml(getContext().getString(R.string.QUIZ)));

这使得泰米尔但字符混乱。请帮助解决。

it render tamil but the characters are scrambled. Please help to fix.

感谢

的Mahir

推荐答案

如果手机不支持单向code泰米尔语(ICS之前又名4.0),那么你不能显示的Uni code脚本。基本上utill果冻豆,Android不具有正确的泰米尔渲染支持(尽管它首先在4.0可用)。所以基本上不管你用什么样的Uni code字型,Android操作系统不知道如何塑造它,并显示它。

If the phone doesn't support Unicode Tamil (before ICS aka 4.0) then you can't display Unicode scripts. Basically utill Jelly Bean, Android doesn't have proper Tamil rendering support (even though first it made available in 4.0). So basically no matter what Unicode font you use, Android OS doesn't know how to shape it up and show it.

这就是为什么人们使用字体和非UNI code字型,如Bamini和Mylai(TSCII字体)。

That's why people use TypeFace and non unicode fonts such as Bamini and Mylai (TSCII font).

阅读我的<一个href=\"http://stackoverflow.com/questions/15267292/tamil-font-in-android/15496145#15496145\">elaborative答案在这里解决方案

这篇关于泰米尔UNI code字体的文本加扰/ android中破的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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