Added clone() method to DataFile class

This commit is contained in:
Thomas Sterren 2018-03-02 15:50:16 +01:00
parent 3cb7afbdec
commit bbc4b8e551

View File

@ -51,6 +51,8 @@ public:
DataFile(const std::vector<dictentry_t> &dictionary,
const std::vector<glyphentry_t> &glyphs,
const fontinfo_t &fontinfo);
inline DataFile * clone() const { return new DataFile(GetDictionary(), GetGlyphTable(), GetFontInfo()); }
// Save to a file (custom format)
void Save(std::ostream &file) const;