Form clusters before ensuring native direciton
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 21 Jul 2011 05:11:09 +0000 (01:11 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 21 Jul 2011 05:11:09 +0000 (01:11 -0400)
This is essential as ensure_native_direction uses cluster info that
is set by form_clusters().

src/hb-ot-shape.cc

index 33123d4..b9754ce 100644 (file)
@@ -361,10 +361,10 @@ hb_ot_shape_execute_internal (hb_ot_shape_context_t *c)
 
   hb_set_unicode_props (c); /* BUFFER: Set general_category and combining_class in var1 */
 
-  hb_ensure_native_direction (c);
-
   hb_form_clusters (c);
 
+  hb_ensure_native_direction (c);
+
   _hb_normalize (c);
 
   hb_ot_shape_setup_masks (c); /* BUFFER: Clobbers var2 */