Fix fallback shaping

Broke it a few commits ago.
This commit is contained in:
Behdad Esfahbod 2011-08-02 14:06:51 -04:00
parent 199abbd0f1
commit 2118fdb9f5
1 changed files with 5 additions and 3 deletions

View File

@ -235,12 +235,13 @@ hb_substitute_default (hb_ot_shape_context_t *c)
static void static void
hb_ot_substitute_complex (hb_ot_shape_context_t *c) hb_ot_substitute_complex (hb_ot_shape_context_t *c)
{ {
if (hb_ot_layout_has_substitution (c->face)) if (hb_ot_layout_has_substitution (c->face)) {
c->plan->map.substitute (c->face, c->buffer); c->plan->map.substitute (c->face, c->buffer);
c->applied_substitute_complex = TRUE;
}
hb_ot_layout_substitute_finish (c->buffer); hb_ot_layout_substitute_finish (c->buffer);
c->applied_substitute_complex = TRUE;
return; return;
} }
@ -295,11 +296,12 @@ hb_ot_position_complex (hb_ot_shape_context_t *c)
&c->buffer->pos[i].x_offset, &c->buffer->pos[i].x_offset,
&c->buffer->pos[i].y_offset); &c->buffer->pos[i].y_offset);
} }
c->applied_position_complex = TRUE;
} }
hb_ot_layout_position_finish (c->buffer); hb_ot_layout_position_finish (c->buffer);
c->applied_position_complex = TRUE;
return; return;
} }