Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

font in chinese operating system

 
jack nick
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello there,
the font for labels seem to be going haywire it i run an applet in a chinese operating system. any specific reason as to why this could be happening.
cheers
jack
 
jack nick
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,
maybe i will rephrase my problem.
am using a canvas and displaying a message on this canvas. have set the font for the canvas to verdana. problem is this works fine running it on my system. the moment i run this on a chinese operating system or on a system whose locale is set to china the applet on which the canvas is set the font displayed is some sort of system font.
the block of code in which the font is set
// setting text font
if (top.msgFontSize > 0)
font = new Font(top.msgFont,top.msgFontStyle, top.msgFontSize);
else font = new Font
("dialog", Font.PLAIN, 10);
fontM = getFontMetrics(font);
setFont(font);
debugging top.msgFontSize is greater than 0
would be great is someone could shed some light on this problem
cheers
jack
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic