[cairo-bugs] [Bug 21985] [cairo] Rendering with PANGO_GRAVITY_EAST leads to different results with image and vectoriel buffer (pdf)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat May 30 20:04:58 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=21985


Behdad Esfahbod <freedesktop at behdad.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #9 from Behdad Esfahbod <freedesktop at behdad.org>  2009-05-30 20:04:56 PST ---
Fixed:

commit 4232719af968ed05636fe34f2ffe2520dc02d737
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sat May 30 23:03:55 2009 -0400

    [ft] Fix vertical advance metrics of bitmap fonts (#21985)

diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 8a6b4a2..6c64284 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -1979,7 +1979,7 @@ _cairo_ft_scaled_glyph_init (void                
*abstract_font,
                if (hint_metrics || glyph->format != FT_GLYPH_FORMAT_OUTLINE)
                    fs_metrics.y_advance = DOUBLE_FROM_26_6
(metrics->vertAdvance) * y_factor;
                else
-                   fs_metrics.y_advance = DOUBLE_FROM_26_6
(glyph->linearVertAdvance) * y_factor;
+                   fs_metrics.y_advance = DOUBLE_FROM_16_16
(glyph->linearVertAdvance) * y_factor;
            }
         }



-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list