Added clone() method to DataFile class

release/v2.9
Thomas Sterren 2018-03-02 15:50:16 +01:00
parent 3cb7afbdec
commit bbc4b8e551
1 changed files with 2 additions and 0 deletions

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;