summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pango/shape.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/shape.c b/pango/shape.c
index 401c9ec1..0b757b1a 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -370,5 +370,17 @@ pango_shape_with_flags (const gchar *item_text,
}
}
}
+ else
+ {
+ for (i = 0; i < glyphs->num_glyphs; i++)
+ {
+ glyphs->glyphs[i].geometry.width =
+ PANGO_UNITS_ROUND (glyphs->glyphs[i].geometry.width);
+ glyphs->glyphs[i].geometry.x_offset =
+ PANGO_UNITS_ROUND (glyphs->glyphs[i].geometry.x_offset);
+ glyphs->glyphs[i].geometry.y_offset =
+ PANGO_UNITS_ROUND (glyphs->glyphs[i].geometry.y_offset);
+ }
+ }
}
}