summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/JFM.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/JFM.hpp')
-rw-r--r--dviware/dvisvgm/src/JFM.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/dviware/dvisvgm/src/JFM.hpp b/dviware/dvisvgm/src/JFM.hpp
index 110f0f3e1a..c24798073c 100644
--- a/dviware/dvisvgm/src/JFM.hpp
+++ b/dviware/dvisvgm/src/JFM.hpp
@@ -27,7 +27,8 @@
class JFM : public TFM {
public:
- explicit JFM (std::istream &is);
+ JFM () =default;
+ void read (std::istream &is) override;
bool verticalLayout () const override {return _vertical;}
bool isJFM () const override {return true;}
uint32_t minChar () const {return _minchar;}
@@ -35,11 +36,11 @@ class JFM : public TFM {
protected:
void readTables (StreamReader &reader, int nt, int nw, int nh, int nd, int ni);
- int charIndex (int c) const override;
+ size_t charIndex (int c) const override;
private:
- uint32_t _minchar; ///< character code of first entry in character type table
- bool _vertical; ///< true if metrics refer to vertical text layout
+ uint32_t _minchar=0; ///< character code of first entry in character type table
+ bool _vertical=false; ///< true if metrics refer to vertical text layout
std::vector<uint8_t> _charTypeTable;
};