设备中的落后阿拉伯语文本

时间:2013-11-22 16:23:17

标签: android flash sqlite flex flash-builder

正在开发移动应用程序,当我运行应用程序时,列表向后显示阿拉伯语文本

它在桌面调试器中工作正常,但是当我在实际设备上运行应用程序时,它会向后读。

桌面调试程序可以正常工作

http://img14.imageshack.us/img14/8/9wf2.jpg

在这张照片中,来自实际设备galaxy s3的文本是向后的,虽然它在桌面调试器上工作正常。

enter image description here

1 个答案:

答案 0 :(得分:0)

首先,您应该按照以下步骤操作:

1-从这里下载ArabicUtilities java class:https://github.com/agawish/Better-Arabic-Reshaper

2-下载资产文件夹的tahoma.ttf文件:http://www.4shared.com/file/AY2EIORg/tahoma.htm

3-测试所有主题:

AssetManager manager=this.getAssets();
try
{
manager.open("tahoma.ttf");
TextView tv=(TextView)this.findViewById(R.id.testMe);
tv.setTypeface(Typeface.createFromAsset(manager, "tahoma.ttf"));
tv.setTextSize(50f);
tv.setText(ArabicUtilities.reshape("الحمد لله"));
}catch(Exception ex){
//TODO
}

祝你好运:)