- max = lyxfont::ascent(ic, font);
- if (plusasc)
- max += (lyxfont::maxAscent(font) + 3) / 3;
- } else
- max = lyxfont::maxAscent(font) + 4;
- return max;
-}
-
-
-int InsetLatexAccent::descent(Painter &, LyXFont const & font) const
-{
- int max;
- if (candisp) {
- if (ic == ' ')
- max = lyxfont::descent('a', font);
- else
- max = lyxfont::descent(ic, font);
- if (plusdesc)
- max += 3;
- } else
- max = lyxfont::maxDescent(font) + 4;
- return max;
-}
-
-
-int InsetLatexAccent::width(Painter &, LyXFont const & font) const
-{
- if (candisp)
- return lyxfont::width(ic, font);
- else
- return lyxfont::width(contents, font) + 4;
-}
-
-
-int InsetLatexAccent::Lbearing(LyXFont const & font) const
-{
- return lyxfont::lbearing(ic, font);
-}