X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_symbolinset.C;h=bdcfdb8a1dc57c37fb41f35efd926a5193f619d9;hb=c649284611c4198c9d70be8a16d153cdf1ec0700;hp=7ff59dc436441fd08946c1a462e2b781a18d26dc;hpb=fe87869cb763c613c4dc36294efbd8edff175d54;p=lyx.git diff --git a/src/mathed/math_symbolinset.C b/src/mathed/math_symbolinset.C index 7ff59dc436..bdcfdb8a1d 100644 --- a/src/mathed/math_symbolinset.C +++ b/src/mathed/math_symbolinset.C @@ -48,6 +48,7 @@ void MathSymbolInset::metrics(MathMetricsInfo & mi) const // << "'\n"; MathFontSetChanger dummy(mi.base, sym_->inset.c_str()); mathed_string_dim(mi.base.font, sym_->draw, ascent_, descent_, width_); + // correct height for broken cmex font if (sym_->inset == "cmex") { h_ = 4 * descent_ / 5; ascent_ += h_; @@ -55,7 +56,11 @@ void MathSymbolInset::metrics(MathMetricsInfo & mi) const } if (isRelOp()) width_ += 6; - scriptable_ = (mi.base.style == LM_ST_DISPLAY && sym_->inset == "cmex"); + + scriptable_ = false; + if (mi.base.style == LM_ST_DISPLAY) + if (sym_->inset == "cmex" || sym_->extra == "funclim") + scriptable_ = true; } @@ -86,7 +91,10 @@ bool MathSymbolInset::isScriptable() const bool MathSymbolInset::takesLimits() const { - return sym_->inset == "cmex" || sym_->inset == "lyxboldsymb"; + return + sym_->inset == "cmex" || + sym_->inset == "lyxboldsymb" || + sym_->extra == "funclim"; } @@ -107,6 +115,8 @@ void MathSymbolInset::maplize(MapleStream & os) const { if (name() == "cdot") os << '*'; + else if (name() == "infty") + os << "infinity"; else os << name(); }