summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-09-11 02:02:35 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-09-11 02:02:35 +0000
commit0e89584a6683c8b9c929ccbac28e43838a3085f5 (patch)
treec6696e6961ab361f22169fbfead1c533d95ffc0d
parent8b3c6a034f4e07f9f61eb4a5f513c796af76cd96 (diff)
downloadpango-0e89584a6683c8b9c929ccbac28e43838a3085f5.tar.gz
Bug 352535 – Ink extents of empty glyph
2006-09-10 Behdad Esfahbod <behdad@gnome.org> Bug 352535 – Ink extents of empty glyph * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_glyph_extents): Return zero ink_rect for PANGO_GLYPH_EMPTY.
-rw-r--r--ChangeLog8
-rw-r--r--pango/pangocairo-fcfont.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2beefb11..03c13dca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-09-10 Behdad Esfahbod <behdad@gnome.org>
+
+ Bug 352535 – Ink extents of empty glyph
+
+ * pango/pangocairo-fcfont.c
+ (pango_cairo_fc_font_get_glyph_extents): Return zero ink_rect for
+ PANGO_GLYPH_EMPTY.
+
2006-09-08 Behdad Esfahbod <behdad@gnome.org>
* examples/cairotwisted.c: A simple text-on-path example using
diff --git a/pango/pangocairo-fcfont.c b/pango/pangocairo-fcfont.c
index cb5d9598..727b6dbe 100644
--- a/pango/pangocairo-fcfont.c
+++ b/pango/pangocairo-fcfont.c
@@ -384,7 +384,7 @@ pango_cairo_fc_font_get_glyph_extents (PangoFont *font,
if (glyph == PANGO_GLYPH_EMPTY)
{
if (ink_rect)
- *ink_rect = cffont->font_extents;
+ ink_rect->x = ink_rect->y = ink_rect->width = ink_rect->height = 0;
if (logical_rect)
*logical_rect = cffont->font_extents;
return;