FontMetrics metrics = view.getContainer().getFontMetrics(font);
FontMetrics metrics = Toolkit.getDefaultToolkit().getFontMetrics(font);
    public float getHeight(GlyphView view)    {      Font font = view.getFont();      FontMetrics metrics = view.getContainer().getFontMetrics(font);      float height = metrics.getHeight();      return height;    }