Fix bug #6851: Wrong screen fonts with old style macros such as \bf and \rm.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35136 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-08-14 00:22:04 +00:00
parent 004901eef6
commit 61791114a1
2 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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);
}