public double getHeight(Graphics pen)
    {
        Graphics2D p = (Graphics2D) pen;
        FontRenderContext frc = p.getFontRenderContext();
        TextLayout layout = new TextLayout("b", FONT, frc);  // use the same letter to determine the height
        return layout.getBounds().getHeight();
    }