X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathChar.h;h=bc357bcadba16356afc1bf5a6e909109be785592;hb=a746aa52146257c0e7a2d60123f63dccad5b2751;hp=91bd1599394d4b3290b1fe870c22b37f6cc14961;hpb=5b2d7ec76d5c418519177a81053cb9d1241ece03;p=lyx.git diff --git a/src/mathed/InsetMathChar.h b/src/mathed/InsetMathChar.h index 91bd159939..bc357bcadb 100644 --- a/src/mathed/InsetMathChar.h +++ b/src/mathed/InsetMathChar.h @@ -14,6 +14,7 @@ #include "InsetMath.h" +#include "Font.h" namespace lyx { @@ -31,8 +32,6 @@ public: /// void drawT(TextPainter &, int x, int y) const; /// - int width() const { return width_; } - /// int kerning() const { return kerning_; } /// @@ -51,13 +50,13 @@ public: bool isRelOp() const; private: - virtual std::auto_ptr doClone() const; + virtual std::auto_ptr doClone() const; /// the character char_type char_; - /// cached width - mutable int width_; /// cached kerning for superscript mutable int kerning_; + /// + mutable Font font_cache_; }; } // namespace lyx