How do I get the Shape from the outline of a text string?

John Zukowski

The getOutline() method of TextLayout provides this information:

TextLayout layout = new TextLayout(aString, aFont, g2d.getFontRenderContenxt());
// Argument is AffineTransform
Shape shape = layout.getOutline(null);
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.