Search code examples
androidunicodehindi

Correcting Hindi (Unicode) rendering in Android


I successfully added a custom typeface (DroidSansFallBack.ttf) to show Hindi characters instead of Blocks on Pre ICS . All is working well on 4.1+ in any case.

But the rendering order is wrong on Froyo and Gingerbread. I understand it is not resolved http://code.google.com/p/android/issues/detail?id=4153

What are the possible workarounds to correct the rendering? (I don't want to use images )

EDIT: Example,

दिन string from values-hi renders as दनि

नक्षत्र renders as नक् ष त र

(On 4.1+ everything renders correctly)


Solution

  • I could not find a simple work around for fixing the rendering everywhere. So finally I had to limit the Hindi language feature to devices having android version 4.0 or later.