Glyph* GraphicMaster::clone () const { Graphic31* pg = new GraphicMaster((Graphic31*)this); GlyphIndex count = _body->count(); for (GlyphIndex i = 0; i < count; i++) { Glyph* gr = _body->component(i); pg->append(gr->clone()); } return pg; }
Glyph* PolyGraphic::clone () const { Graphic* pg = new PolyGraphic((Graphic*)this); GlyphIndex count = _body->count(); for (GlyphIndex i = 0; i < count; i++) { Glyph* gr = _body->component(i); pg->append(gr->clone()); } return pg; }