src/hb-ot-shape-complex.hh |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 654365dc894326f04abaaba415f48ca5ba2d1286
Author: Behdad Esfahbod <beh...@behdad.org>
Date:   Thu Oct 11 17:51:21 2018 -0400

    Pass indic3 tags to USE shaper
    
    Fixes https://github.com/harfbuzz/harfbuzz/issues/539

diff --git a/src/hb-ot-shape-complex.hh b/src/hb-ot-shape-complex.hh
index e3b7dee6..f5ef1102 100644
--- a/src/hb-ot-shape-complex.hh
+++ b/src/hb-ot-shape-complex.hh
@@ -254,11 +254,13 @@ hb_ot_shape_complex_categorize (const 
hb_ot_shape_planner_t *planner)
       /* If the designer designed the font for the 'DFLT' script,
        * (or we ended up arbitrarily pick 'latn'), use the default shaper.
        * Otherwise, use the specific shaper.
-       * Note that for some simple scripts, there may not be *any*
-       * GSUB/GPOS needed, so there may be no scripts found! */
+       *
+       * If it's indy3 tag, send to USE. */
       if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T') ||
          planner->map.chosen_script[0] == HB_TAG ('l','a','t','n'))
        return &_hb_ot_complex_shaper_default;
+      else if ((planner->map.chosen_script[0] & 0x000000FF) == '3')
+       return &_hb_ot_complex_shaper_use;
       else
        return &_hb_ot_complex_shaper_indic;
 
_______________________________________________
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to