X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FFontMetrics.h;h=c02606c4384f3536c0759b13503bbc4413e30022;hb=b7f6b979d0f889f08e735f35378bb20ba3788b4b;hp=e8493d1316e897ada98ffc4638cbcbfaa920deec;hpb=cf6128caf664378f15d9c93b6d35621e19f4eecb;p=lyx.git diff --git a/src/frontends/FontMetrics.h b/src/frontends/FontMetrics.h index e8493d1316..c02606c438 100644 --- a/src/frontends/FontMetrics.h +++ b/src/frontends/FontMetrics.h @@ -125,9 +125,10 @@ public: int & descent) const = 0; /** * fill in width,ascent,descent with the values for the - * given string in the font for a button. + * given string in the font for a button with given offset. */ virtual void buttonText(docstring const & str, + const int offset, int & width, int & ascent, int & descent) const = 0; @@ -142,6 +143,10 @@ public: inline int center(char_type c) const { return (rbearing(c) - lbearing(c)) / 2; } + + /// return the number of expanding characters taken into account for + /// increased inter-word spacing during justification + virtual int countExpanders(docstring const & str) const = 0; };