在 TextView 中显示所有 Unicode 字符 [英] Display all Unicode chars in TextView

查看:36
本文介绍了在 TextView 中显示所有 Unicode 字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在我的手机上的 TextView 中显示所有 Unicode 字符?

Is there any way to show all Unicode chars in my TextView, on my phone?

我尝试过像 'u0279' 这样的特殊字符,我得到了类似 box(默认字符)的东西.这是基于 l10n 和 i18n 设置吗?

I have tried special characters like 'u0279' and I get something like box (default char). Is this based on l10n and i18n settings?

推荐答案

tv=(TextView)findViewById(R.id.textView1);
Typeface font= Typeface.createFromAsset(getAssets(), "TAU_BHON.TTF");
tv.setTypeface(font); 

将支持您的语言的字体放在assets文件夹中.在这种情况下,我使用了TAU_BHON.TTF

Place the font that will support your language in the assets folder.In this case i have used TAU_BHON.TTF

这篇关于在 TextView 中显示所有 Unicode 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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