CTL (Complex Text Language) support in Android

你。 提交于 2019-12-10 13:14:52

问题


I 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


回答1:


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. )




回答2:


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.



来源:https://stackoverflow.com/questions/5269240/ctl-complex-text-language-support-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!