def _copyGlyph(glyph, glyfTable): glyph = TTGlyph(glyph.compile(glyfTable)) glyph.expand(glyfTable) return glyph