CONTENTS | PREV | NEXT Java 2D API


4.4 Accessing Text Paths

You can use the Font.getGlyphOutline method to access the Shape of any glyph in a font. The StyledString class also provides a getStringOutline method that simplifies the conversion of an entire block of text to an outline. This method returns a Shape object that is that union of all of the glyph outlines that comprise the StyledString. This object reflects any transformations applied to the Font object associated with the string, but not the transform associated with any Graphics2D object.



CONTENTS | PREV | NEXT
Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.