[转]Drawstring in Canvas with Chinese (Siemens 55/57 series)[1]

[入库:2005年8月19日] [更新:2007年3月25日]

本文简介:选择自 clapton 的 blog

q:
i use graphics.drawstring() draw a string in chinese.

it displays incorrectly on hadset(s57,m55).

what's the right way to do this?

my code is very simple

paint(graphics g)

{

g.drawstring("??",x,y,anchor);//here means "start"

}

 

it displays incorrectly but can display correctly with screen command.

such as command = new command("??",command.screen,1);

 

a:

there is a known problem related to chinese characters. this known problem consists in showing different results (missing characters) when using big font size. i'm not sure if that relates to exactly your problem but it's quite possible. if so it's a problem of the font resources and not a specific java problem.

 

it would help a lot if we could get the phone sw version that you are using.

 

maybe you could try the same code with normal font size only.

 

regards

siemens developer portal team

 

 

本文关键:[转]Drawstring in Canvas with Chinese (Siemens 55/57 series)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top