Form clusters before setting masks
[profile/ivi/org.tizen.video-player.git] / src / hb-ot-shape.cc
index 36155df..a729c3f 100644 (file)
@@ -277,10 +277,10 @@ hb_ot_shape_execute_internal (hb_ot_shape_context_t *c)
   /* 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 */