aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Sterren <thomas.sterren@simulton.com>2018-03-02 15:50:16 +0100
committerThomas Sterren <thomas.sterren@simulton.com>2018-03-06 09:55:30 +0100
commitbbc4b8e5516a934014edf754bc5b6b877eabfcf7 (patch)
treeaf96c89fd4d39ea932a41e3a323670d501bb7e51 /tools
parent3cb7afbdec9ab707d637d0a4a78da33fbab3c8a3 (diff)
downloaduGFX-bbc4b8e5516a934014edf754bc5b6b877eabfcf7.tar.gz
uGFX-bbc4b8e5516a934014edf754bc5b6b877eabfcf7.tar.bz2
uGFX-bbc4b8e5516a934014edf754bc5b6b877eabfcf7.zip
Added clone() method to DataFile class
Diffstat (limited to 'tools')
-rw-r--r--tools/mcufontencoder/src/datafile.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mcufontencoder/src/datafile.hh b/tools/mcufontencoder/src/datafile.hh
index 460e6039..b5e1d538 100644
--- a/tools/mcufontencoder/src/datafile.hh
+++ b/tools/mcufontencoder/src/datafile.hh
@@ -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;