[HarfBuzz] harfbuzz-ng: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Apr 29 00:39:55 PDT 2010


 src/hb-shape.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 4c5fbae011a33b9efef5aedd61c357fc0ded1113
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Apr 29 03:39:39 2010 -0400

    Make sure mirroring is done in original direction
    
    Reported by Jonathan Kew.

diff --git a/src/hb-shape.c b/src/hb-shape.c
index 2754dac..2e4f3f6 100644
--- a/src/hb-shape.c
+++ b/src/hb-shape.c
@@ -229,10 +229,13 @@ hb_shape (hb_font_t    *font,
   hb_bool_t substitute_fallback, position_fallback;
 
   hb_form_clusters (buffer);
-  original_direction = hb_ensure_native_direction (buffer);
 
   hb_substitute_default (font, face, buffer, features, num_features);
 
+  /* We do this after substitute_default because mirroring needs to
+   * see the original direction. */
+  original_direction = hb_ensure_native_direction (buffer);
+
   substitute_fallback = !hb_substitute_complex (font, face, buffer, features, num_features);
 
   if (substitute_fallback)



More information about the HarfBuzz mailing list