On Sat, Jun 17, 2006 at 12:46:17AM +0100, Peter B. West wrote: > This is the fly in the ointment. It seems to me that this limitation is > recognized as being serious in the Java2D "white paper". The exit path > offered is GlyphVectors. They are adjustable, where TextLayouts are > immutable.
Not sure how helpful this is, but you can "extract" the GlyphVectors from a TextLayout by drawing it onto a "proxy" Graphics2D which serves only to capture or modify the GlyphVectors as they come in. I've had to do this in order to customize the TextLayout rendering, for example to support shadowed and embossed text. You have to be a little careful because the implementation of TextLayout may vary platform to platform. For example the Apple impl uses drawString instead of drawGlyphVector. Chris =========================================================================== 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".