diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c index a77e8a5a9a..45b500dc42 100644 --- a/gsk/gskrendernodeparser.c +++ b/gsk/gskrendernodeparser.c @@ -688,10 +688,16 @@ create_ascii_glyphs (PangoFont *font) glyph_string = pango_glyph_string_new (); for (i = MIN_ASCII_GLYPH; i < MAX_ASCII_GLYPH; i++) { - pango_shape ((char[2]) { i, 0 }, - 1, - ¬_a_hack, - glyph_string); + const char text[2] = { i, 0 }; + + pango_shape_with_flags (text, + 1, + text, + 1, + ¬_a_hack, + glyph_string, + PANGO_SHAPE_ROUND_POSITIONS); + if (glyph_string->num_glyphs != 1) { pango_glyph_string_free (glyph_string);