make text in super/subscripts smaller than ordinary text

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-07-24 16:55:47 +00:00
parent c1364850c0
commit 10f9dcb2ca
2 changed files with 7 additions and 2 deletions

View File

@ -149,10 +149,13 @@ void MathUpDownInset::Write(std::ostream & os, bool fragile) const
void MathUpDownInset::Metrics(MathStyles st, int asc, int des) void MathUpDownInset::Metrics(MathStyles st, int asc, int des)
{ {
size_ = st;
MathStyles tt = smallerStyleScript(st);
if (up()) if (up())
xcell(0).Metrics(st); xcell(0).Metrics(tt);
if (down()) if (down())
xcell(1).Metrics(st); xcell(1).Metrics(tt);
// we assume that asc, des, wid are the metrics of the item in front // we assume that asc, des, wid are the metrics of the item in front
// of this MathScriptInset // of this MathScriptInset

View File

@ -218,10 +218,12 @@ LyXFont WhichFont(MathTextCodes type, MathStyles size)
break; break;
case LM_ST_SCRIPT: case LM_ST_SCRIPT:
f.decSize();
f.decSize(); f.decSize();
break; break;
case LM_ST_SCRIPTSCRIPT: case LM_ST_SCRIPTSCRIPT:
f.decSize();
f.decSize(); f.decSize();
f.decSize(); f.decSize();
break; break;