[util] Improve --glyphs

This commit is contained in:
Behdad Esfahbod 2022-12-23 13:31:48 -07:00
parent d45f7265e9
commit 265b699fbd
1 changed files with 4 additions and 1 deletions

View File

@ -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 <typename app_t>