Browse Source

Added clone() method to DataFile class

Thomas Sterren 2 years ago
parent
commit
639da0e268
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tools/mcufontencoder/src/datafile.hh

+ 2 - 0
tools/mcufontencoder/src/datafile.hh

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