{
int index = getCharIndex(referenceChar);
index = cmapFmt.mapCharCode(index);
Glyph glyph = getGlyph(index);
Shape s = getShapeFromGlyph(glyph);
GlyphEntry ge = new GlyphEntry();
ge.advance = (int)(getAdvance(referenceChar) * emScale * (useTwips ? SwfConstants.TWIPS_PER_PIXEL : 1));
ge.character = c;
ge.shape = s;