File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Marcus Green's Mock Question Confusion
Chinese Locale
Regarding Font Very Urgent !! Please help
Window problem!
Java internationalization question: Chinese file name display is grabbed in browser