src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java
@Override
    public FontMetrics getFontMetrics(Font f) {
        if (this.fmImage == null) {
            this.fmImage = new BufferedImage(10, 10, 
                    BufferedImage.TYPE_INT_RGB);
            this.fmImageG2D = this.fmImage.createGraphics();
            this.fmImageG2D.setRenderingHint(
                    RenderingHints.KEY_FRACTIONALMETRICS, 
                    RenderingHints.VALUE_FRACTIONALMETRICS_ON);
        }
        return this.fmImageG2D.getFontMetrics(f);
    }
@Override
    public FontMetrics getFontMetrics(Font f) {
        if (this.fmImage == null) {
            this.fmImage = new BufferedImage(10, 10, 
                    BufferedImage.TYPE_INT_RGB);
            this.fmImageG2D = this.fmImage.createGraphics();
            this.fmImageG2D.setRenderingHint(
                    RenderingHints.KEY_FRACTIONALMETRICS, 
                    RenderingHints.VALUE_FRACTIONALMETRICS_ON);
        }
        return this.fmImageG2D.getFontMetrics(f);
    }
@ Override public FontMetrics getFontMetrics ( Font f ) { if ( this . fmImage == null ) { this . fmImage = new BufferedImage ( 10 , 10 , BufferedImage . TYPE_INT_RGB ) ; this . fmImageG2D = this . fmImage . createGraphics ( ) ; this . fmImageG2D . setRenderingHint ( RenderingHints . KEY_FRACTIONALMETRICS , RenderingHints . VALUE_FRACTIONALMETRICS_ON ) ; } return this . fmImageG2D . getFontMetrics ( f ) ; }
Returns the font metrics for the specified font.

@param f  the font.

@return The font metrics.
Returns the font metrics for the specified font .