Hi,

I have two problems on displaying fonts,

1. It is OK to in Java2D, to set style(e.g. bold)  on fonts by using
drawString() and setFont(),
but in Swing JTextEditor, the style setting action sometimes fails. When
I look in the Windows Fonts
folder, I found that if the true type fonts file of the font family have
bold and italic options, it is OK for
setting style in JTextEditor. If  the font family doesn't have the bold
and italic font file, it can not be
set style in JTextEditor, but very strange it can be set style by using
drawString(). Why there is the
difference ? I asked this question since I want to use some other
chinese font in JTextEditor which do
not have the bold and italic font files.

2. I try to add some addition chinese font(true type font)  to the
window font folder without
any modification on the font.properties.zh_tw file, and use the fonts in
JTextEditor.  I find that some ttf files work but some don't.  Why ?
Are there any tricks underlined ??

Thanks

Patrick

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to