显示在TextView中所有的Uni code字符有的、字符、TextView、code

2023-09-12 03:16:58 作者:彽頭淺笑

有没有什么办法来显示我的TextView所有统一code字符,在我的手机?

我已经试过特殊字符,如'\ u0279',我得到这样的复选框(默认字符)。 这是基于本地化和国际化设置?

解决方案

 电视=(TextView中)findViewById(R.id.textView1);
字体的字体= Typeface.createFromAsset(getAssets(),TAU_BHON.TTF);
tv.setTypeface(字体);
 

地方,将支持你的语言,在资产folder.In这种情况下,我已经使用TAU_BHON.TTF的字体

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

插入unicode控制字符里面的那些英文都是什么意思

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); 

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