]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathSupport.cpp
Fix #10863 compiler warnings.
[lyx.git] / src / mathed / MathSupport.cpp
index bb6a21c74d74ce9e302b18c5982a51f1cadfc63b..57eca6ee31ff8bea6a466b7b5a48f262c20e1545 100644 (file)
@@ -513,6 +513,12 @@ int mathed_font_em(FontInfo const & font)
        return theFontMetrics(font).em();
 }
 
+
+int mathed_font_x_height(FontInfo const & font)
+{
+       return theFontMetrics(font).ascent('x');
+}
+
 /* The math units. Quoting TeX by Topic, p.205:
  *
  * Spacing around mathematical objects is measured in mu units. A mu