*** 277,286 **** --- 277,287 ---- * Returns font metrics for a font. * * @param f the font * @return the metrics */ + @SuppressWarnings("deprecation") public FontMetrics getFontMetrics(Font f) { // The Toolkit implementations cache, so we just forward // to the default toolkit. return Toolkit.getDefaultToolkit().getFontMetrics(f); }