开发者

CTL (Complex Text Language) support in Android

开发者 https://www.devze.com 2023-02-16 17:04 出处:网络
I开发者_如何学Go am trying to develop Android IME for Asia language (require complicated renderingsuch as changing glyph forms, reordering character order, etc). In PC, the use of GTK, Pango, Graphite

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

精彩评论

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