diff --git a/lib/symbols b/lib/symbols index cee45b9314..07830c6b35 100644 --- a/lib/symbols +++ b/lib/symbols @@ -111,11 +111,12 @@ ce font forcetext cf font forcetext # old-style font commands -bf oldfont none -cal oldfont none -it oldfont none -rm oldfont none -tt oldfont none +# name "oldfont" alias +bf oldfont textbf +cal oldfont mathcal +it oldfont textit +rm oldfont textrm +tt oldfont texttt # matrix environments Bmatrix matrix none diff --git a/src/mathed/InsetMathFontOld.cpp b/src/mathed/InsetMathFontOld.cpp index f4b87ba4c6..88a3cdfca9 100644 --- a/src/mathed/InsetMathFontOld.cpp +++ b/src/mathed/InsetMathFontOld.cpp @@ -37,7 +37,7 @@ Inset * InsetMathFontOld::clone() const void InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const { - FontSetChanger dummy(mi.base, key_->name.c_str()); + FontSetChanger dummy(mi.base, key_->extra); cell(0).metrics(mi, dim); metricsMarkers(dim); } @@ -45,7 +45,7 @@ void InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const void InsetMathFontOld::draw(PainterInfo & pi, int x, int y) const { - FontSetChanger dummy(pi.base, key_->name.c_str()); + FontSetChanger dummy(pi.base, key_->extra); cell(0).draw(pi, x + 1, y); drawMarkers(pi, x, y); }