advance = (int)Math.rint(metrics.getAdvance()); //Do not scale here, DefineText needs values unscaled
java.awt.Shape scaledShape = scaleTransform.createTransformedShape(glyphOutline);
swfShape = createGlyphShape(scaledShape);
GlyphEntry ge = new GlyphEntry();
ge = new GlyphEntry(); //Note: we will set the index on building DefineFont2 tag
ge.advance = (int)(advance * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
ge.shape = swfShape;
//Glyph bounds are not used by the Flash Player so no need to calculate
//Rectangle2D bs = scaledShape.getBounds2D();
//bounds = new Rect((int)StrictMath.rint(bs.getMinX() * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1)),