Skip to main content

How can display chinese?

3 replies [Last post]
jch_zxc
Offline
Joined: 2008-02-18
Points: 0

I build phoneME_feature for i386 with fb.It can run some games in WTK2.2/apps/Games.I write a simple HelloWorld midlet to display chinese text,in WTK emulator,display chinese OK,but in phoneME_feature,it can not display chinese.How can I do to make phoneME_feature support chinese text?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
max_mu
Offline
Joined: 2006-11-15
Points: 0

Hi jch_zxc,
For LinuxFB implementation, javacall_font_* functions are not implemented in pMEF. In this case, pMEF uses its default font to render text, but only ASCII chars font is supported. To display Chinese (and any other languages chars) on LinuxFB, you can implement javacall_font_* functions to make it.

M@x

jch_zxc
Offline
Joined: 2008-02-18
Points: 0

Hi max_mu:
Thank you every much.In i386,phoneME_feature don't display chinese beacause midp is build on FB.
Now,in my arm embedded board,I have build midp with qte.When write "QString::fromUtf8("XXX")",that "XXX" is some chinese text,and the source file is encoded with utf8,then cross build,this QTE application can show chinese text with "-font unifont".
So,I think QTE is support chinese text.In arm,midp is based on QTE.but my midlet don't show chinese text,and each chinese char is a empty box。
what can I do?

marcelchang
Offline
Joined: 2008-04-01
Points: 0

Hi jch_zxc,
I have met the same problem before, wanna display chinese in midp on ARM platform. However, as Hi jch_zxc,
I have met the same problem before, wanna display chinese in midp on ARM platform. However, as what max_mu said, pMEF uses its default font to render text and only support ASCII. If you really want to display chinese, you have to port some functions in gxj_text.c to let pMEF know how to draw chinese chars. So far, I can display chinese in midlets.