wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "font in chinese operating system" Watch "font in chinese operating system" New topic

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.
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);
debugging top.msgFontSize is greater than 0
would be great is someone could shed some light on this problem
I agree. Here's the link: http://aspose.com/file-tools
subject: font in chinese operating system
Similar Threads
Window problem!
Marcus Green's Mock Question Confusion
Java internationalization question: Chinese file name display is grabbed in browser
Regarding Font Very Urgent !! Please help
Chinese Locale