Jan,

the outline computed from the TextLayout.getOutline() does not respect the
correct metrics, spacing of the TextLayout. There's a big visual difference
between:

TextLayout.draw(g2d,x,y);

and

Graphics2D.draw(TextLayout.getOutline(..));

Try it by yourself and see what happens (use antialiasing and fractional
metrics).

Cheers,

Mik
--



----- Original Message -----
From: ""Jan Bösenberg (INCORS GmbH)"" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Michele Puccini" <[EMAIL PROTECTED]>
Sent: Friday, November 10, 2006 3:25 PM
Subject: Re: [JAVA2D] AttributedString and Outline


Hi Michele,

can't you simply use getOutline(AffineTransform transform) in TextLayout?


Cheers

Jan


Michele Puccini schrieb:
Hello,

I'm using TextLayouts made by AttributedStrings and I need to outline
(Stroke) the characters. Sadly I didn't find any Outline TextAttribute,
so I
would like to know how to implement it.

More generally it would be nice to implement virtually any kind of
TextAttribute i.e. Emboss, Shadow, etc.

Suggestions ?

Mik
--

===========================================================================
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