Form clusters before setting masks
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 12 Oct 2010 21:00:25 +0000 (17:00 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 12 Oct 2010 21:00:40 +0000 (17:00 -0400)
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 */