![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e654. Getting the Shape from the Outline of TextShape getTextShape(Graphics2D g2d, String str, Font font) { FontRenderContext frc = g2d.getFontRenderContext(); TextLayout tl = new TextLayout(str, font, frc); return tl.getOutline(null); }
e652. Getting the Font Faces for a Font Family e653. Drawing a Paragraph of Text e655. Drawing Text with Mixed Styles © 2002 Addison-Wesley. |