static TextLayout newTextLayout(S text, Font font, Graphics g) { ret new TextLayout(text, font, ((Graphics2D) g).getFontRenderContext()); }