Merging non-english text in an image

Dear Sir,
I need to merge MALAYALAM text in an image. I have a problem in conversion. To merge English text there is no problem, but to merge malayalam text, we need to convert from unicode to FML code. I dont know how to do it in php.

Its working fine with English characters.

Take a look at the “mb_convert_encoding” - I never head of FML Code.

http://php.net/manual/en/function.mb-convert-encoding.php

But this is how you convert Unicode to other characters sets in php

The ISO code for Malayalam text is MAL (Well, for ISO 639-2 Code)
For plain ISO 639, it is ML…

You can find it here: https://www.loc.gov/standards/iso639-2/php/code_list.php

To use that you would need to load that standard. First, you need to use UTF-8 and also need to load your
fonts. You can load the “family” for Malayalam fonts in CSS with something like:
font-face {
font-family: ‘Malayalam’;
src: url(’…/fonts/meera.eot’);
src: url(’…/fonts/meera.eot?#iefix’) format(‘embedded-opentype’),
url(’…/fonts/meera.woff’) format(‘woff’),
url(’…/fonts/meera.ttf’) format(‘truetype’),
url(’…/fonts/meera.svg#Malayalam’) format(‘svg’);
font-weight: normal;
font-style: normal;
}
That uses the meera downloadable font… So, you see you need a font setup if you want to view it on a
site that you might want English on also. (To give multiple text otptions)

Here is a site that talks about being able to view the language on your computer.
http://orumamelmuri.blogspot.com/2012/04/malayalam-font.html
You can download the font on that page using the link found on it. Here it is:
http://www.mathrubhumi.com/new09/Meera_04-2.ttf
Since that font is a “TrueTypeFont”, it will work on your website as-is. Just set the font for the area you are
displaying using either the HTML tag or set the style for that area.

Hope that helps…

Sponsor our Newsletter | Privacy Policy | Terms of Service