@SuppressWarnings("deprecation")
@Override
public FontMetrics getFontMetrics(Font font)
{
FontMetrics fm;
for (FontMetrics element : cacheFM)
{
fm = element;
if (fm == null)
{
break;
}
if (fm.getFont().equals(font))
{
return fm;
}
}
fm = new FontMetricsImpl(font);