public FontRenderContext getFontRenderContext() {
        boolean antialias = RenderingHints.VALUE_TEXT_ANTIALIAS_ON.equals(getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING));
        boolean fractions = RenderingHints.VALUE_FRACTIONALMETRICS_ON.equals(getRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS));
        return new FontRenderContext(new AffineTransform(), antialias, fractions);
    }
public FontRenderContext getFontRenderContext ( ) { boolean antialias = RenderingHints . VALUE_TEXT_ANTIALIAS_ON . equals ( getRenderingHint ( RenderingHints . KEY_TEXT_ANTIALIASING ) ) ; boolean fractions = RenderingHints . VALUE_FRACTIONALMETRICS_ON . equals ( getRenderingHint ( RenderingHints . KEY_FRACTIONALMETRICS ) ) ; return new FontRenderContext ( new AffineTransform ( ) , antialias , fractions ) ; }
@see Graphics2D#getFontRenderContext()