diff --git a/util/shape-consumer.hh b/util/shape-consumer.hh index a25598749..15c193fe3 100644 --- a/util/shape-consumer.hh +++ b/util/shape-consumer.hh @@ -77,7 +77,10 @@ struct shape_consumer_t : shape_options_t } } - output.consume_glyphs (buffer, text, text_len, utf8_clusters); + if (glyphs) + output.consume_glyphs (buffer, nullptr, 0, false); + else + output.consume_glyphs (buffer, text, text_len, utf8_clusters); return true; } template