/* Save the original direction, we use it later. */
c->original_direction = c->buffer->props.direction;
- hb_ot_shape_setup_masks (c);
-
hb_form_clusters (c);
+ hb_ot_shape_setup_masks (c);
+
/* SUBSTITUTE */
{
/* Mirroring needs to see the original direction */