summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 754f856)
raw | patch | inline | side by side (parent: 754f856)
author | ishmal <ishmal@users.sourceforge.net> | |
Wed, 2 Aug 2006 03:07:04 +0000 (03:07 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Wed, 2 Aug 2006 03:07:04 +0000 (03:07 +0000) |
src/extension/internal/pdf-cairo.cpp | patch | blob | history |
index b8f4eddf1645c25a95c47193cb026d17ffdb8a78..a79bb2a01e74c7840818da5738baccfc4cb3def7 100644 (file)
@@ -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;