]> git.lyx.org Git - lyx.git/commitdiff
make text in super/subscripts smaller than ordinary text
authorAndré Pönitz <poenitz@gmx.net>
Tue, 24 Jul 2001 16:55:47 +0000 (16:55 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 24 Jul 2001 16:55:47 +0000 (16:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2326 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_updowninset.C
src/mathed/support.C

index 86aeb2b31773115195f7416388a0932cee37b488..7c55479afacf8cd94655f9b4a1559b9cb517796b 100644 (file)
@@ -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
index 47f4736fcae19f4d3f20df71ee24080c0bc544a7..360ccf62113f6c7f6726cc098907d651f64e8889 100644 (file)
@@ -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;