]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/modified-font-metric.cc
*** empty log message ***
[lilypond.git] / lily / modified-font-metric.cc
index 8e215863a6109a600344a11ae9c181491b2f5a39..52eee67268a60e6253b0e95db5e2b36a4bc0bcd1 100644 (file)
@@ -180,15 +180,18 @@ Box
 Modified_font_metric::text_dimension (string text) const
 {
   SCM stext = scm_makfrom0str (text.c_str ());
-  Box b = lookup_tex_text_dimension (orig_, stext);
-  if (!b[Y_AXIS].is_empty ())
-    {
-      b.scale (magnification_);
-      return b;
-    }
-
+  
+  Box b;
   if (output_backend_global == "tex")
     {
+      b = lookup_tex_text_dimension (orig_, stext);
+
+      if (!b[Y_AXIS].is_empty ())
+       {
+         b.scale (magnification_);
+         return b;
+       }
+
       b = tex_kludge (text);
       return b;
     }