This commit is contained in:
Behdad Esfahbod 2015-11-04 22:28:44 -08:00
parent 497a6c2071
commit 0f407325f6
1 changed files with 3 additions and 1 deletions

View File

@ -580,7 +580,6 @@ hb_ot_substitute_complex (hb_ot_shape_context_t *c)
{ {
hb_buffer_t *buffer = c->buffer; hb_buffer_t *buffer = c->buffer;
_hb_buffer_allocate_gsubgpos_vars (buffer);
hb_ot_layout_substitute_start (c->font, buffer); hb_ot_layout_substitute_start (c->font, buffer);
if (!hb_ot_layout_has_glyph_classes (c->face)) if (!hb_ot_layout_has_glyph_classes (c->face))
@ -597,6 +596,9 @@ static inline void
hb_ot_substitute (hb_ot_shape_context_t *c) hb_ot_substitute (hb_ot_shape_context_t *c)
{ {
hb_ot_substitute_default (c); hb_ot_substitute_default (c);
_hb_buffer_allocate_gsubgpos_vars (c->buffer);
hb_ot_substitute_complex (c); hb_ot_substitute_complex (c);
} }