Here's what I quickly hacked up. Any improvements welcome! Haven't
actually every been able to get any fonts by name.
__font = Font.decode( null );
__FontName = __font.getFontName();
System.out.println( "???? " + getFont() );
__renderContext = new FontRenderContext( null, true, true );
GlyphVector glyph = __font.createGlyphVector( __renderContext,
getText() );
for ( int i = 0; i < glyph.getNumGlyphs(); i++ ) {
GeneralPath path = new GeneralPath( glyph.getOutline() );
... do something with it...
}
> -----Original Message-----
> From: Discussion list for Java 2D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tadashi Ohmura
> Sent: Monday, January 17, 2000 4:07 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA2D] Can I get outline shape of Fonts
>
>
> In Java2D, Can I get the outline shape objects of Fonts ?
>
> ==================================================================
> =========
> 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".
===========================================================================
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".