]> git.donarmstrong.com Git - lilypond.git/commitdiff
(pango_item_string_stencil): use ink_rect,
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 8 Jan 2005 14:26:33 +0000 (14:26 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 8 Jan 2005 14:26:33 +0000 (14:26 +0000)
which provides a tighter bbox.

ChangeLog
lily/pango-font.cc

index e696e0d1c4777b1b22a3053cff6b39eeedb96243..98deccd202c23745b4d7a401734e63b8cf8ea770 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,16 +1,19 @@
 2005-01-08  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * lily/pango-font.cc (pango_item_string_stencil): use ink_rect,
+       which provides a tighter bbox.
+
        * scm/define-grobs.scm (all-grob-descriptions): remove all
        extra-offsets from definitions.
 
 2005-01-08  Erlend Aasland  <erlenda@gmail.com>
 
        * scm/output-lib.scm: Rename guitar-tunings to guitar-tuning and
-       add tuning for 4-string bass and some common 4/5-string banjo tunings.
-       New function (four-string-banjo) turns a 5-string tuning into a 4-string
-       tuning.
-       New function (fret-number-tablature-format-banjo) computes correct fret
-       numbers on 5-string banjos.
+       add tuning for 4-string bass and some common 4/5-string banjo
+       tunings.  New function (four-string-banjo) turns a 5-string tuning
+       into a 4-string tuning.  New function
+       (fret-number-tablature-format-banjo) computes correct fret numbers
+       on 5-string banjos.
 
        * ly/engraver-init.ly: Default stringTunings = #guitar-tuning
        Add beam correction to TabVoice.
index d53c6fb913e8be5580fb17fe1612fe00380ab573..ac76c10c705db9d0d54875ef64a0c3313682e3d9 100644 (file)
@@ -91,10 +91,10 @@ Pango_font::pango_item_string_stencil (PangoItem *item, String str, Real dx) con
                                                   PangoFcFont);
       
   FT_Face ftface = pango_fc_font_lock_face (fcfont);
-  Box b (Interval (PANGO_LBEARING(logical_rect),
-                  PANGO_RBEARING(logical_rect)),
-        Interval (-PANGO_DESCENT(logical_rect),
-                  PANGO_ASCENT(logical_rect)));
+  Box b (Interval (PANGO_LBEARING(ink_rect),
+                  PANGO_RBEARING(ink_rect)),
+        Interval (-PANGO_DESCENT(ink_rect),
+                  PANGO_ASCENT(ink_rect)));
             
   b.scale (scale_);
 
@@ -178,6 +178,7 @@ Pango_font::text_stencil (String str) const
     }
   
 #if 0
+  // check extents.
   if (!dest.extent_box ()[X_AXIS].is_empty ())
     {
       Stencil frame = Lookup::frame (dest.extent_box(), 0.1, 0.1);