From eee8654d87924f6e7da2fa9ed78e55a117d0d0f7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 29 Apr 2006 08:11:44 +0000 Subject: =?UTF-8?q?Bug=20337594=20=E2=80=93=20pango=5Fglyph=5Fstring=5Fext?= =?UTF-8?q?ents=5Frange=20possible=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-04-29 Behdad Esfahbod Bug 337594 – pango_glyph_string_extents_range possible bug * pango/glyphstring.c (pango_glyph_string_extents_range): Add offset for first glyph too. --- ChangeLog | 7 +++++++ pango/glyphstring.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0365efb1..a89d3376 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-04-29 Behdad Esfahbod + + Bug 337594 – pango_glyph_string_extents_range possible bug + + * pango/glyphstring.c (pango_glyph_string_extents_range): Add offset + for first glyph too. + 2006-04-29 Behdad Esfahbod Bug 307196 – Unhinted fonts are measured incorrectly and drawing diff --git a/pango/glyphstring.c b/pango/glyphstring.c index e28abbd0..1d2c261b 100644 --- a/pango/glyphstring.c +++ b/pango/glyphstring.c @@ -197,9 +197,9 @@ pango_glyph_string_extents_range (PangoGlyphString *glyphs, { if (ink_rect->width == 0 || ink_rect->height == 0) { - ink_rect->x = x_pos + glyph_ink.x; + ink_rect->x = x_pos + glyph_ink.x + geometry->x_offset; ink_rect->width = glyph_ink.width; - ink_rect->y = glyph_ink.y; + ink_rect->y = glyph_ink.y + geometry->y_offset; ink_rect->height = glyph_ink.height; } else -- cgit v1.2.1