I have a requirement to display kannada text in GCM alerts sent to an android app.
I followed these tutorials Install Read / Write Indian Language Fonts on Android and How to Write & Read in Indian Regional Language Fonts on Android.
Just to brief, I did following:
But I ended up displaying Kannada text like this:
Whereas, I have sent ವಿಕಿಪೀಡಿಯ Thank you! from my back end server. How to display kannada exactly same as it was sent from the back end.
Which Android version is it?
Versions before 4 don't have proper Kannada rendering support even if you supply a font, so it shows the matras separately from the consonants.
Where are you showing this text? It may work if you try to show it in the web browser, because web browsers have their own rendering engines. Try both the stock WebKit browser and Mozilla's Firefox for Android. Depending on your device and Android version, it may or may not work.
If it works in WebKit and you need it in an app, try integrating WebKit in your app instead of using regular text display.
Another thing you can try is to render your text as an image on the server and show the user that image. It won't be perfect, but it will be readable. (That's the technique that the Opera Mini Android browser uses, last time I checked.)
And hey, kudos for trying to make it work in Kannada!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With