summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--pango/glyphstring.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0365efb1..a89d3376 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2006-04-29 Behdad Esfahbod <behdad@gnome.org>
+ 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 <behdad@gnome.org>
+
Bug 307196 – Unhinted fonts are measured incorrectly and drawing
problems occur as a result
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