version 2.8
importtools.hh
1 // Utility functions for processing imported font files.
2 
3 #pragma once
4 #include "datafile.hh"
5 
6 namespace mcufont {
7 
8 // Find and eliminate any duplicate glyphs by appending their char vectors.
9 void eliminate_duplicates(std::vector<DataFile::glyphentry_t> &glyphtable);
10 
11 // Calculate the maximum bounding box of the glyphs and crop them to that.
12 // Adjust fontinfo accordingly.
13 void crop_glyphs(std::vector<DataFile::glyphentry_t> &glyphtable,
14  DataFile::fontinfo_t &fontinfo);
15 
16 // Fill in the flags (BW, monospace) automatically.
17 void detect_flags(const std::vector<DataFile::glyphentry_t> &glyphtable,
18  DataFile::fontinfo_t &fontinfo);
19 
20 }