Yash,
There are two things that would help you address the problem you describe:
Firstly you need to call GraphicsEnvironment.getAllFonts() to make sure you have
the "Symbol" font - before you call new Font(..);
Secondly Symbol is a strangely encoded font - make sure you use the proper
Unicode characters in the string from the Symbol range.
Actually the Symbol ranges are covered in the logical fonts like the font
"Dialog", "Serif" etc. - if you use any of the logical fonts you need not call
getAllFonts().
>X-Sender: [EMAIL PROTECTED]
>Date: Mon, 6 Sep 1999 14:01:21 +0530
>From: "YASH M. DESAI" <[EMAIL PROTECTED]>
>Subject: [JAVA2D] Symbol & Wingdings fonts cannot be displayed
>To: [EMAIL PROTECTED]
>
>Hi Mr./Ms. Java,
>I have a problem of displaying the Symbol Fonts through my Java
>application running under Windows'95. JDK 1.2.2
>Though the font seems to be installed, whenever I try to
>set the font to Symbol. through
>Font font = new Font("Symbol",0,12);
>g.setFont(font);
>g.drawString("abc\267def",50,50);
>I just get blank boxes in place of the actual characters.
>I even tried to display the characters using the GlyphVector's draw(shape
>s) but in vain as it would not display anything but the usual square
>boxes.
>Is this a known bug. Or if somebody has figured out a workaround do mail
>it to me ASAP, as it is very critical for my application.
>Thanking in advance,
>Cheers,
>Yash
>
>Personal mails\replys are welcome at [EMAIL PROTECTED]
>
>===========================================================================
>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".
Parry Kejriwal
Fonts & Text JAVA 2D
===========================================================================
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".