X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathChar.h;h=bc357bcadba16356afc1bf5a6e909109be785592;hb=a746aa52146257c0e7a2d60123f63dccad5b2751;hp=8ee4e9c5cc0c84809776637be2511bea210b6ef4;hpb=e24bf64c68102691fc76081de9fb57926b482726;p=lyx.git diff --git a/src/mathed/InsetMathChar.h b/src/mathed/InsetMathChar.h index 8ee4e9c5cc..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,7 +32,7 @@ public: /// void drawT(TextPainter &, int x, int y) const; /// - int width() const { return width_; } + int kerning() const { return kerning_; } /// void write(WriteStream & os) const; @@ -49,11 +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