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