ajaylouis
ajaylouis

Reputation: 247

How to display malayalam in phonegap application?

I am trying to develop a phone gap application with malayalam language but it is not showing in web-kit browser. anyone have answer for this?

Upvotes: 0

Views: 621

Answers (3)

rashidnk
rashidnk

Reputation: 4292

unicode fonts will render properly in cordova webview

just add this in html header <meta charset="utf-8" />

Upvotes: 0

Nithin CV
Nithin CV

Reputation: 1136

Not all android phone does not support Malayalam Unicode font, and you need to convert Unicode font to ascii font to display Malayalam in all devices.

this may help in your condition.

  1. First you need to convert Unicode font characters to Ascii font using java code(Use any Unicode font like ML_TTKARTHIKA.ttf).

  2. use @fontface font attribute in html to display ascii font to Malayalam characters

For more help: Refer this question

Upvotes: 1

Vlad Stirbu
Vlad Stirbu

Reputation: 1792

You need to have a unicode font that has the malayalam characters (one of these, for example) and generate the webfont support for it.

Add the font and the webfont style to the css folder in your project. Load them in the index.html and add the font to the css body declaration.

Upvotes: 0

Related Questions