diff options
Diffstat (limited to 'dviware/dvisvgm/src/CMap.hpp')
-rw-r--r-- | dviware/dvisvgm/src/CMap.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dviware/dvisvgm/src/CMap.hpp b/dviware/dvisvgm/src/CMap.hpp index 63761ff2ff..37a54ba0f8 100644 --- a/dviware/dvisvgm/src/CMap.hpp +++ b/dviware/dvisvgm/src/CMap.hpp @@ -74,6 +74,7 @@ struct UnicodeCMap : public CMap { uint32_t cid (uint32_t c) const override {return c;} uint32_t bfcode (uint32_t cid) const override {return cid;} std::string getROString () const override {return "";} + bool mapsToUnicode () const override {return true;} }; @@ -85,19 +86,21 @@ class SegmentedCMap : public CMap { const char* name () const override {return _filename.c_str();} uint32_t cid (uint32_t c) const override; uint32_t bfcode (uint32_t cid) const override; - void addCIDRange (uint32_t first, uint32_t last, uint32_t cid) {_cidranges.addRange(first, last, cid);} - void addBFRange (uint32_t first, uint32_t last, uint32_t chrcode) {_bfranges.addRange(first, last, chrcode);} + void addCIDRange (uint32_t first, uint32_t last, uint32_t cid); + void addBFRange (uint32_t first, uint32_t last, uint32_t chrcode); void write (std::ostream &os) const; bool vertical () const override {return _vertical;} bool mapsToCID () const override {return _mapsToCID;} size_t numCIDRanges () const {return _cidranges.numRanges();} size_t numBFRanges () const {return _bfranges.numRanges();} std::string getROString () const override; + bool mapsToUnicode () const override; private: std::string _filename; std::string _registry; std::string _ordering; + std::string _cmaptype; CMap *_basemap = nullptr; bool _vertical = false; bool _mapsToCID = true; // true: chrcode->CID, false: CID->charcode |