aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes font in chinese operating system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "font in chinese operating system" Watch "font in chinese operating system" New topic
Author

font in chinese operating system

jack nick
Ranch Hand

Joined: Jan 11, 2001
Posts: 96
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

Joined: Jan 11, 2001
Posts: 96
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: font in chinese operating system