From 0e89584a6683c8b9c929ccbac28e43838a3085f5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Sep 2006 02:02:35 +0000 Subject: =?UTF-8?q?Bug=20352535=20=E2=80=93=20Ink=20extents=20of=20empty?= =?UTF-8?q?=20glyph?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-09-10 Behdad Esfahbod 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. --- ChangeLog | 8 ++++++++ pango/pangocairo-fcfont.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2beefb11..03c13dca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-09-10 Behdad Esfahbod + + 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 * 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; -- cgit v1.2.1