]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/modified-font-metric.cc
* lily/modified-font-metric.cc (text_dimension): try
[lilypond.git] / lily / modified-font-metric.cc
index 2d618993fafb8f39a943421785b015688a463d4f..f1a81ae5f9d4292d3ceef8dd3db0876f78082cdc 100644 (file)
@@ -258,7 +258,16 @@ Modified_font_metric::text_stencil (String text) const
 Box
 Modified_font_metric::text_dimension (String text) const
 {
-  Box b; 
+  SCM stext = scm_makfrom0str (text.to_str0 ());
+  Box b = lookup_tex_text_dimension (orig_, stext);
+  if (!b[Y_AXIS].is_empty ())
+    {
+      b.scale (magnification_); 
+      return b;
+    }
+
+
+  
   if (input_encoding_ == "TeX")
     b = tex_kludge (text);
   else if (input_encoding_ == "ASCII"