summaryrefslogtreecommitdiff
path: root/pango/pangocairo-win32font.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangocairo-win32font.c')
-rw-r--r--pango/pangocairo-win32font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangocairo-win32font.c b/pango/pangocairo-win32font.c
index d6a563be..80661c3c 100644
--- a/pango/pangocairo-win32font.c
+++ b/pango/pangocairo-win32font.c
@@ -138,7 +138,7 @@ pango_cairo_win32_font_get_scaled_font (PangoCairoFont *font)
* Method implementations *
********************************/
-static void
+static gboolean
pango_cairo_win32_font_install (PangoCairoFont *font,
cairo_t *cr)
{
@@ -210,7 +210,7 @@ compute_glyph_extents (PangoFont *font,
logical_rect->width = 0;
logical_rect->height = (font_extents.ascent + font_extents.descent) * PANGO_SCALE;
- if (glyph)
+ if (glyph != PANGO_GLYPH_EMPTY)
{
cairo_glyph.index = glyph;
cairo_glyph.x = 0;