From 10f9dcb2ca947e60351955894c5159bad32984b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Tue, 24 Jul 2001 16:55:47 +0000 Subject: [PATCH] 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 --- src/mathed/math_updowninset.C | 7 +++++-- src/mathed/support.C | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mathed/math_updowninset.C b/src/mathed/math_updowninset.C index 86aeb2b317..7c55479afa 100644 --- a/src/mathed/math_updowninset.C +++ b/src/mathed/math_updowninset.C @@ -149,10 +149,13 @@ void MathUpDownInset::Write(std::ostream & os, bool fragile) const void MathUpDownInset::Metrics(MathStyles st, int asc, int des) { + size_ = st; + MathStyles tt = smallerStyleScript(st); + if (up()) - xcell(0).Metrics(st); + xcell(0).Metrics(tt); if (down()) - xcell(1).Metrics(st); + xcell(1).Metrics(tt); // we assume that asc, des, wid are the metrics of the item in front // of this MathScriptInset diff --git a/src/mathed/support.C b/src/mathed/support.C index 47f4736fca..360ccf6211 100644 --- a/src/mathed/support.C +++ b/src/mathed/support.C @@ -218,10 +218,12 @@ LyXFont WhichFont(MathTextCodes type, MathStyles size) break; case LM_ST_SCRIPT: + f.decSize(); f.decSize(); break; case LM_ST_SCRIPTSCRIPT: + f.decSize(); f.decSize(); f.decSize(); break; -- 2.39.2