]> git.lyx.org Git - lyx.git/blobdiff - src/dimension.C
hopefully fix tex2lyx linking.
[lyx.git] / src / dimension.C
index efe6ec387b727e8629b9495ebf1ab6009af95702..c7cbdbc9374e21e2cf4646155d1721e972ffab42 100644 (file)
@@ -5,14 +5,16 @@
  *
  *  \author André Pönitz
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
-
 #include <config.h>
 
 #include "dimension.h"
-#include "frontends/font_metrics.h"
+#include "frontends/FontMetrics.h"
+
+
+namespace lyx {
 
 
 void Dimension::operator+=(Dimension const & dim)
@@ -27,7 +29,11 @@ void Dimension::operator+=(Dimension const & dim)
 
 void Dimension::clear(LyXFont const & font)
 {
-       asc = font_metrics::maxAscent(font);
-       des = font_metrics::maxDescent(font);
+       frontend::FontMetrics const & fm = theFontMetrics(font);
+       asc = fm.maxAscent();
+       des = fm.maxDescent();
        wid = 0;
 }
+
+
+} // namespace lyx