summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5950daa)
raw | patch | inline | side by side (parent: 5950daa)
author | miklosh <miklosh@users.sourceforge.net> | |
Sun, 6 Aug 2006 21:36:46 +0000 (21:36 +0000) | ||
committer | miklosh <miklosh@users.sourceforge.net> | |
Sun, 6 Aug 2006 21:36:46 +0000 (21:36 +0000) |
src/extension/internal/pdf-cairo.cpp | patch | blob | history |
index 0b3148d85228b4d6ecdca341e648aa0b103010d2..d70b94148175d67ab803366d79e074b837d583d2 100644 (file)
@@ -771,13 +771,13 @@ PrintCairoPDF::draw_glyphs(cairo_t *cr, NR::Point p, PangoFont *font, PangoGlyph
int num_invalid_glyphs = 0;
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) {
+ // skip glyphs which are PANGO_GLYPH_EMPTY (0x0FFFFFFF) or have
+ // the PANGO_GLYPH_UNKNOWN_FLAG (0x10000000) set
+ if (info->glyph == 0x0FFFFFFF || info->glyph & 0x10000000) {
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;