[util] Fix vertical positioning with --glyphs

This commit is contained in:
Behdad Esfahbod 2022-12-23 13:37:38 -07:00
parent 265b699fbd
commit 0066e824f0
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ struct shape_options_t
if (glyphs) if (glyphs)
{ {
/* Call the setup_buffer first while the buffer is empty,
* as guess_segment_properties doesn't like glyphs in the buffer. */
setup_buffer (buffer);
hb_buffer_deserialize_glyphs (buffer, hb_buffer_deserialize_glyphs (buffer,
text, text_len, text, text_len,
nullptr, nullptr,