Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/194.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
Java 僧伽罗字体在ICS中与果冻豆不同_Java_Android_Fonts - Fatal编程技术网

Java 僧伽罗字体在ICS中与果冻豆不同

Java 僧伽罗字体在ICS中与果冻豆不同,java,android,fonts,Java,Android,Fonts,我正在开发的Android应用程序中使用名为iskpota.ttf的字体来启用僧伽罗文字输入。我很乐意为ICS及以上提供。但是ICS不能正确呈现字体,所以我不得不让这个应用程序只对Jelly Bean和更高版本可用 我使用以下代码将字体设置为文本字段 EditText editT = (EditText)findViewById(R.id.editText1); Typeface font = Typeface.createFromAsset(getAssets(), "iskpota.ttf"

我正在开发的Android应用程序中使用名为iskpota.ttf的字体来启用僧伽罗文字输入。我很乐意为ICS及以上提供。但是ICS不能正确呈现字体,所以我不得不让这个应用程序只对Jelly Bean和更高版本可用

我使用以下代码将字体设置为文本字段

EditText editT = (EditText)findViewById(R.id.editText1);
Typeface font = Typeface.createFromAsset(getAssets(), "iskpota.ttf");
editT.setTypeface(font);
ICS 4.0中呈现的字体(错误)

Jelly Bean 4.2.2中呈现的字体(正确)

注意:以上是模拟器屏幕截图


有人知道ICS的修复方法吗?

什么是jellybeans和ICS版本?你能用版本更新这个问题吗?我在这里发现了类似的问题@lakshman我添加了ICS和jellybean版本