*
The moose likes Swing / AWT / SWT and the fly likes problem with japanese font Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem with japanese font" Watch "problem with japanese font" New topic
Author

problem with japanese font

S Dan
Greenhorn

Joined: Apr 05, 2005
Posts: 25
I'm trying to set text to a JLabel. Suppose I have a string variable called
"description". "description" contains japanese characters.
when I use jLabel.setText(description), it works fine and shows the japanese
fonts properly. Now if I try to wrap the description with html tags..e.g

jLabel.setText("<html><body><font FACE=\"sans-serif, Arial, Helvetica, Geneva\">"+description+"</font></body></html>");

then it just messes the japanse fonts. Why is that so? How can I wrap that in html?
Thanks in advance.
-Dan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with japanese font
 
Similar Threads
how to manipulate fonts?
TextArea in IE and NS -the no. of characters accepted per line differs
Japanese font problem (can anyone help asap)
Japanse font (Urgent! Please help)
J2EE and Servlets