-int MathScriptInset::nwid(MathInset const * nuc) const
-{
- return nuc ? nuc->width() : mathed_char_width(font_, '.');
-}
-
-
-int MathScriptInset::nasc(MathInset const * nuc) const
-{
- return nuc ? nuc->ascent() : mathed_char_ascent(font_, 'I');
-}
-
-
-int MathScriptInset::ndes(MathInset const * nuc) const
-{
- return nuc ? nuc->descent() : mathed_char_descent(font_, 'I');
-}
-
-
-void MathScriptInset::metrics(MathMetricsInfo const & mi) const
-{
- metrics(0, mi);
-}
-
-
-void MathScriptInset::metrics(MathInset const * nuc,
- MathMetricsInfo const & mi) const
-{
- MathMetricsInfo m = mi;
- smallerStyleScript(m);
- MathNestInset::metrics(m);
- whichFont(font_, LM_TC_VAR, m);
- if (nuc)
- nuc->metrics(mi);
- ascent_ = ascent2(nuc);
- descent_ = descent2(nuc);
- width_ = width2(nuc);
-}
-
-
-void MathScriptInset::draw(Painter & pain, int x, int y) const
-{
- //lyxerr << "unexpected call to MathScriptInset::draw()\n";
- draw(0, pain, x, y);
-}
-
-
-void MathScriptInset::metricsT(TextMetricsInfo const & mi) const
-{
- metricsT(0, mi);
-}
-
-
-void MathScriptInset::metricsT(MathInset const * nuc,
- TextMetricsInfo const & mi) const