Mark glyphs involved in 'stch' as unsafe to break
authorDavid Corbett <corbett.dav@husky.neu.edu>
Mon, 6 Nov 2017 19:41:55 +0000 (14:41 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 6 Nov 2017 20:06:23 +0000 (15:06 -0500)
src/hb-ot-shape-complex-arabic.cc
test/shaping/Makefile.am
test/shaping/fonts/sha1sum/d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf [new file with mode: 0644]
test/shaping/tests/arabic-stch.tests [new file with mode: 0644]

index 283f325b4826374a5d5233e782a8342ccfa77470..eda20ca1ecd323f1f88b898431c2d101fff2770c 100644 (file)
@@ -560,6 +560,7 @@ apply_stch (const hb_ot_shape_plan_t *plan,
       }
       else
       {
+       buffer->unsafe_to_break (context, end + 1);
        hb_position_t x_offset = 0;
        for (unsigned int k = end; k > start; k--)
        {
index 377c08d0eab478595a63eb2a6805e14678665843..ca7c1c30ba4d0c0234491387d01b581ae0a0335f 100644 (file)
@@ -45,6 +45,7 @@ TESTS = \
        tests/arabic-feature-order.tests \
        tests/arabic-like-joining.tests \
        tests/arabic-mark-order.tests \
+       tests/arabic-stch.tests \
        tests/automatic-fractions.tests \
        tests/cluster.tests \
        tests/color-fonts.tests \
diff --git a/test/shaping/fonts/sha1sum/d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf b/test/shaping/fonts/sha1sum/d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf
new file mode 100644 (file)
index 0000000..112146e
Binary files /dev/null and b/test/shaping/fonts/sha1sum/d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf differ
diff --git a/test/shaping/tests/arabic-stch.tests b/test/shaping/tests/arabic-stch.tests
new file mode 100644 (file)
index 0000000..a268d8a
--- /dev/null
@@ -0,0 +1 @@
+fonts/sha1sum/d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf:--no-glyph-names --show-flags:U+0718,U+070F,U+0718,U+0718,U+002E:[1=4+168|3=3+502#1|3=2+502#1|4=1@-1004,0+0#1|5=1@-876,0+0#1|5=1@-799,0+0#1|5=1@-722,0+0#1|5=1@-645,0+0#1|4=1@-566,0+0#1|5=1@-438,0+0#1|5=1@-361,0+0#1|5=1@-284,0+0#1|5=1@-207,0+0#1|4=1@-128,0+0#1|3=0+502]