Paul Clapham wrote:Have you found that other applications render the Khmer subscripts correctly, using that font?
And have you tested to see if Java renders them correctly in (say) a Swing text component, using that font?
I ask those questions because the problem might be with the font, or with Java's handling of the font, or with the code you produced to convert the string to a jpg. They would eliminate the first two possibilities.
Hi Paul,
Thanks for the mail.
1) I didnt find other applications that render Khmer subscripts correctly using this font. I tried some days back with php GD still the same output as Java. This font is a standard Khmer font. Also I tried with all available Khmer fonts. These fonts are used by different applications. But no success.
2) I tried it with swing text component, but still same issue is there. I tried an online
applet (
http://www.easybabel.com/html/kh-khm-kbd.html) which basically is an online Khmer keyboard. There it is possible to open an UTF-8 document and also paste the khmer text. I tried it and there also i am getting the same issue. I read that from Java v 1.6 khmer is supported and I run v 1.6.
Also if you see in this conversion site (
http://rishida.net/tools/conversion/) for decimal NCR ថៃ្ងសម្រាក we get the corresponding text as ថៃ្ងសម្រាក If I copy this text and paste to the online applet described above, I still get the issue where the subscript is removed from the parent.
Does this have to with my font settings in the java lib directory? or is this incompatibility of the font?
Thanks again for the help.
Regards,
Subin