]> git.lyx.org Git - features.git/commit
Correct computation of math font size
authorGuillaume Munch <gm@lyx.org>
Sat, 19 Nov 2016 20:25:34 +0000 (21:25 +0100)
committerGuillaume Munch <gm@lyx.org>
Sun, 20 Nov 2016 23:02:35 +0000 (00:02 +0100)
commita9eb87a89d2ba1a492f2a01fc92e360e056bf2d6
tree756500252450c1c716a315ed89502dab3144f0ba
parentcb6c40a07b275f62cb641f02f377c54a821837fb
Correct computation of math font size

Move math style to FontInfo and compute the font sizes for scriptstyle and
scriptscriptstyle according to standard proportions: 0.73 and 0.55.

This is simpler and more accurate. It also fixes the font size of
${\scriptscriptstyle {\textstyle A}}A$ which exposed the limitations of the
previous approach.
22 files changed:
lib/symbols
src/FontEnums.h
src/FontInfo.cpp
src/FontInfo.h
src/MetricsInfo.cpp
src/MetricsInfo.h
src/frontends/qt4/GuiFontLoader.cpp
src/mathed/InsetMathAMSArray.cpp
src/mathed/InsetMathArray.cpp
src/mathed/InsetMathChar.cpp
src/mathed/InsetMathDiagram.cpp
src/mathed/InsetMathDiagram.h
src/mathed/InsetMathFrac.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathSize.cpp
src/mathed/InsetMathSize.h
src/mathed/InsetMathSubstack.cpp
src/mathed/InsetMathSymbol.cpp
src/mathed/InsetMathXYMatrix.cpp
src/mathed/InsetMathXYMatrix.h
src/mathed/MathClass.cpp
src/mathed/MathMacroTemplate.cpp