}
public Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y) {
Object prevHint = null;
Graphics2D graphics = ((Java2DOutputDevice)outputDevice).getGraphics();
Font awtFont = ((AWTFSFont)font).getAWTFont();
if (awtFont.getSize() > threshold && level > NONE ) {
prevHint = graphics.getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING);
graphics.setRenderingHint( RenderingHints.KEY_TEXT_ANTIALIASING, antiAliasRenderingHint );
}
GlyphVector vector = ((AWTFSGlyphVector)fsGlyphVector).getGlyphVector();
Rectangle result = vector.getGlyphPixelBounds(index, graphics.getFontRenderContext(), x, y);
if (awtFont.getSize() > threshold && level > NONE ) {
graphics.setRenderingHint( RenderingHints.KEY_TEXT_ANTIALIASING, prevHint );
}
return result;
}