]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathSupport.cpp
Improve support for on screen length calculation
[features.git] / src / mathed / MathSupport.cpp
index 7d15c42672f2357c0a053af1b642ec9b6b8a49a1..1f90873fec10dae82647e76511081f2d3ce9951a 100644 (file)
@@ -501,6 +501,12 @@ deco_struct const * search_deco(docstring const & name)
 } // namespace anon
 
 
+int mathed_font_em(FontInfo const & font)
+{
+       return theFontMetrics(font).em();
+}
+
+
 int mathed_char_width(FontInfo const & font, char_type c)
 {
        return theFontMetrics(font).width(c);