Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Localization 在Android中无法正确呈现印地语字符_Localization_Rendering - Fatal编程技术网

Localization 在Android中无法正确呈现印地语字符

Localization 在Android中无法正确呈现印地语字符,localization,rendering,Localization,Rendering,我想用安卓系统测试印度语的本地化。 以下是values文件夹中的文件string.xml नमस्ते परिक्षण 我正在使用AndroidHindi.ttf字体 我想在adnroid中用印地语显示特定的文本,但在运行时,我得到了未渲染的文本 要正确显示它,我应该包括哪个特定的库。您必须下载您的语言字体文件(.ttf)并放入资产文件夹 Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Akshar.ttf");

我想用安卓系统测试印度语的本地化。 以下是values文件夹中的文件string.xml

नमस्ते   
परिक्षण
我正在使用AndroidHindi.ttf字体

我想在adnroid中用印地语显示特定的文本,但在运行时,我得到了未渲染的文本


要正确显示它,我应该包括哪个特定的库。

您必须下载您的语言字体文件(.ttf)并放入资产文件夹

Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Akshar.ttf");               
TextView tv = (TextView) findViewById(R.id.CustomFontText);
tv.setTypeface(tf);
tv.setText("Seasonal messages like welcome (நல்வரவு) is used in Kolam. Volunteering to draw kolam at temple is sometimes done when a devotee's");

Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Akshar.ttf");               
TextView tv = (TextView) findViewById(R.id.CustomFontText);
tv.setTypeface(tf);
tv.setText("Seasonal messages like welcome (நல்வரவு) is used in Kolam. Volunteering to draw kolam at temple is sometimes done when a devotee's");