The Source for Java Technology Collaboration

Home » java.net Forums » Phone ME » phoneME Feature software

Thread: How can display chinese?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Apr 1, 2008 8:29 PM by: marcelchang Threads: [ Previous | Next ]
jch_zxc

Posts: 3
How can display chinese?
Posted: Mar 17, 2008 2:22 AM
 
  Click to reply to this thread Reply

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?

max_mu

Posts: 28
Re: How can display chinese?
Posted: Mar 17, 2008 8:03 AM   in response to: jch_zxc
Correct
  Click to reply to this thread Reply

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

Posts: 3
How can display chinese in midp with qte??
Posted: Mar 18, 2008 2:45 AM   in response to: max_mu
 
  Click to reply to this thread Reply

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

Posts: 1
Re: How can display chinese in midp with qte??
Posted: Apr 1, 2008 8:29 PM   in response to: jch_zxc
 
  Click to reply to this thread Reply

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.




 XML java.net RSS