]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathBig.C
This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for...
[features.git] / src / mathed / InsetMathBig.C
index b06654ae9e9581cf20af453c8bf8129b71da1ccd..3b8b87abe38c38275da66b2d406f4d7bd24e5696 100644 (file)
 #include "MathMLStream.h"
 #include "MathStream.h"
 
+#include "frontends/Application.h"
+#include "frontends/FontLoader.h"
+#include "frontends/FontMetrics.h"
+
 #include "support/lstrings.h"
 
 
@@ -61,7 +65,8 @@ double InsetMathBig::increase() const
 
 void InsetMathBig::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       double const h = mathed_char_ascent(mi.base.font, 'I');
+       double const h 
+               = theApp->fontLoader().metrics(mi.base.font).ascent('I');
        double const f = increase();
        dim_.wid = 6;
        dim_.asc = int(h + f * h);