From: ishmal Date: Wed, 2 Aug 2006 03:07:04 +0000 (+0000) Subject: fix "not found" build problem with older pangoes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d1b2a913fcb7f8b430556f3a984540d5bdc67ad7;p=inkscape.git fix "not found" build problem with older pangoes --- diff --git a/src/extension/internal/pdf-cairo.cpp b/src/extension/internal/pdf-cairo.cpp index b8f4eddf1..a79bb2a01 100644 --- a/src/extension/internal/pdf-cairo.cpp +++ b/src/extension/internal/pdf-cairo.cpp @@ -767,10 +767,12 @@ PrintCairoPDF::draw_glyphs(cairo_t *cr, NR::Point p, PangoFont *font, PangoGlyph for (gint i = 0; i < glyph_string->num_glyphs; i++) { info = &glyph_string->glyphs[i]; // skip empty or unknown glyphs +#if defined(PANGO_GLYPH_EMPTY) && defined(PANGO_GLYPH_UNKNOWN_FLAG) if (info->glyph == PANGO_GLYPH_EMPTY || info->glyph & PANGO_GLYPH_UNKNOWN_FLAG) { num_invalid_glyphs++; continue; } +#endif glyphs[i - num_invalid_glyphs].index = info->glyph; glyphs[i - num_invalid_glyphs].x = p[NR::X] + (x_offset + info->geometry.x_offset)/PANGO_SCALE; glyphs[i - num_invalid_glyphs].y = p[NR::Y] + (y_offset + info->geometry.y_offset)/PANGO_SCALE;