!7 import java.awt.font.*; p-awt { JFrame f = showFrame(); TextLayout tl = new TextLayout("HELLO", f.getFont(), ((Graphics2D) f.getGraphics()).getFontRenderContext()); print("Bounds: " + tl.getBounds()); Shape outline = tl.getOutline(null); }