From 265b699fbd3c74c1c4324d5f7044e7236d3b0b89 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Dec 2022 13:31:48 -0700 Subject: [PATCH] [util] Improve --glyphs --- util/shape-consumer.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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