mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
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:
parent
004901eef6
commit
61791114a1
11
lib/symbols
11
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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user