Search code examples
blackberryjava-mefontsmidpcjk

How to draw Thai/Chinese strings in J2ME?


I'm trying to draw Thai/Chinese strings on a J2ME Canvas using graphics.drawString(string, i, i, aAnchor); but the device hangs when I do so. When I use SOP on string, it displays ?????????. I've tried hard-coding the string too as - String string = "บริการโทรกลับ"; I've read here that the device also needs Chinese/Thai fonts installed on device, so I tested a Thai website on my device and found that it was able to display Thai characters in clickable links (text). I'm sure I'm missing something but just can't figure out what it is! Somebody, please point me in the right direction...

Blackberry related solutions are also welcome.

EDIT I've made a custom font as described here but was still unable to display it. Also, I could use some Thai/Chinese font files (preferably .fnt extension).


Solution

  • Have you tried with custom fonts with Java ME application? Also look on some useful search for using custom fonts.