开发者

Incorrect characters displayed for Tamil font in android(Latha.ttf)

开发者 https://www.devze.com 2023-01-30 06:02 出处:网络
I need to use tamil on textviews in my app so I create a TypeFace from assets and set it to the textview, but the characters appear out of order(mixed) for combined characters. I load the strings from

I need to use tamil on textviews in my app so I create a TypeFace from assets and set it to the textview, but the characters appear out of order(mixed) for combined characters. I load the strings from the resources.(string.xml in utf-8 encoding) H开发者_开发技巧ow to solve this issue?


Currently android does not have a tamil font Shaping Engine. So have to manually reorder the characters based on the tamil language rules.


use fonts like "Bamini.ttf" else some TSCII fonts. It works fine for me. It should work for you too.

0

精彩评论

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