路易(LWUIT):显示阿拉伯语的问题吗? [英] LWUIT : issue in showing arabic words ?

查看:89
本文介绍了路易(LWUIT):显示阿拉伯语的问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有在LWUIT中显示阿拉伯语单词的问题,阿拉伯语单词的字符被分离和颠倒了,但是在nokia上它是正确的,我该如何解决这个问题? 谢谢

Hi i have problam in showing arabic words in LWUIT , the arabic words characters are separated and reversed , but it`s work true on nokia , how can i slove this problem ? thanks

推荐答案

在位图字体中,由于阿拉伯字符的字形整形不起作用,因此该语言不起作用. 您需要使用系统字体(在LWUIT的某些主题中不是默认字体),在系统字体中,对阿拉伯语的支持取决于设备/模拟器,而并非所有字体都正确地支持bidi/shaping.

In bitmap fonts Arabic glyph shaping doesn't work because of the unique properties of the language. You need to use system fonts (which aren't the default in some of LWUIT's themes), in system fonts support for Arabic is up to the device/simulator not all of which support bidi/shaping properly.

请注意,某些较旧的Sony Erricson设备以及某些其他设备(例如本地化程度不高的Android设备(例如Nexus One))都没有适当的比迪烟技术支持.这意味着它们的本机窗口小部件实现了bidi而非其drawString实现.不幸的是,无法在运行时中检测到此错误,因此LWUIT无法无缝解决该问题!

Notice some older Sony Erricson devices as well as some other devices such as badly localized Android devices (e.g. Nexus One) don't have proper bidi support. This means their native widgets implement bidi instead of their drawString implementation. Unfortunately there is no way to detect this bug in runtime, so LWUIT can't seamlessly workaround it!

唯一的解决方案是为此类设备专门创建一个版本,该版本手动对drawString代码执行bidi算法,这意味着将这些设备的实现替换为仅重写drawString方法并在渲染后执行bidi算法的实现.字符串. LWUIT的bidi算法在Display类中公开.

The only solution is to create a version specifically to such devices which manually performs the bidi algorithm on the drawString code, this means replacing the implementation for those devices with an implementation that just overrides the drawString method and performs the bidi algorithm on rendered strings. LWUIT's bidi algorithm is exposed in the Display class.

这篇关于路易(LWUIT):显示阿拉伯语的问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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