开发者

CTL (Complex Text Language) support in Android

I开发者_如何学Go am trying to develop Android IME for Asia language (require complicated rendering such as changing glyph forms, reordering character order, etc). In PC, the use of GTK, Pango, Graphite is sufficient. In Android how can I solve rendering of Unicode for Complex Text Language.

Thanks in advance


You should be using the Harfbuzz stack provided within the Android. If you look within Pango in PC, there is a shaper component called Harfbuzz. Same should exist for Android. Passing any asian language through this stack get the job done (changing glyphs, reordering etc. )


If you can use NDK, you can use harfbuzz and freetype together. without any dependencies. Otherwise you can stick to the Android drawText method which is provided by Canvas class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜