From 0174af21196c197a5b3672c87bc6f7a614fddd7d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 10 Dec 2019 03:01:52 +0000 Subject: CTAN sync 201912100301 --- dviware/dvisvgm/src/TFM.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'dviware/dvisvgm/src/TFM.hpp') diff --git a/dviware/dvisvgm/src/TFM.hpp b/dviware/dvisvgm/src/TFM.hpp index 668ff39083..f2fd3027eb 100644 --- a/dviware/dvisvgm/src/TFM.hpp +++ b/dviware/dvisvgm/src/TFM.hpp @@ -30,8 +30,7 @@ class StreamReader; -class TFM : public FontMetrics -{ +class TFM : public FontMetrics { public: explicit TFM (std::istream &is); double getCharWidth (int c) const override; @@ -51,7 +50,7 @@ class TFM : public FontMetrics uint16_t lastChar () const override {return _lastChar;} protected: - TFM () : _checksum(0), _firstChar(0), _lastChar(0), _designSize(0), _params(7) {} + TFM () : _params(7) {} void readHeader (StreamReader &reader); void readTables (StreamReader &reader, int nw, int nh, int nd, int ni); void readParameters (StreamReader &reader, int np); @@ -59,9 +58,9 @@ class TFM : public FontMetrics void setCharRange (int firstchar, int lastchar) {_firstChar=firstchar; _lastChar=lastchar;} private: - uint32_t _checksum; - uint16_t _firstChar, _lastChar; - double _designSize; ///< design size of the font in PS points (72bp = 1in) + uint32_t _checksum=0; + uint16_t _firstChar=0, _lastChar=0; + double _designSize=0; ///< design size of the font in PS points (72bp = 1in) std::vector _charInfoTable; std::vector _widthTable; ///< character widths in design size units std::vector _heightTable; ///< character height in design size units -- cgit v1.2.3