public FSFontMetrics getFSFontMetrics(FontContext fc, FSFont font, String string ) {
Object fracHint = null;
Graphics2D graphics = ((Java2DFontContext)fc).getGraphics();
fracHint = graphics.getRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS);
graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, fractionalFontMetricsHint);
LineMetricsAdapter adapter = new LineMetricsAdapter(
((AWTFSFont)font).getAWTFont().getLineMetrics(
string, graphics.getFontRenderContext()));
graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, fracHint);
return adapter;
}