From 74e82adaea08ced18493e3341823dbd5b6cd493e Mon Sep 17 00:00:00 2001 From: David Corbett Date: Mon, 6 Nov 2017 14:41:55 -0500 Subject: [PATCH] Mark glyphs involved in 'stch' as unsafe to break --- src/hb-ot-shape-complex-arabic.cc | 1 + test/shaping/Makefile.am | 1 + .../d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf | Bin 0 -> 1420 bytes test/shaping/tests/arabic-stch.tests | 1 + 4 files changed, 3 insertions(+) create mode 100644 test/shaping/fonts/sha1sum/d9b8bc10985f24796826c29f7ccba3d0ae11ec02.ttf create mode 100644 test/shaping/tests/arabic-stch.tests diff --git a/src/hb-ot-shape-complex-arabic.cc b/src/hb-ot-shape-complex-arabic.cc index 283f325b4..eda20ca1e 100644 --- a/src/hb-ot-shape-complex-arabic.cc +++ b/src/hb-ot-shape-complex-arabic.cc @@ -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--) { diff --git a/test/shaping/Makefile.am b/test/shaping/Makefile.am index 377c08d0e..ca7c1c30b 100644 --- a/test/shaping/Makefile.am +++ b/test/shaping/Makefile.am @@ -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 index 0000000000000000000000000000000000000000..112146eb44eac72f0f7427e01236740cbe64fd4a GIT binary patch literal 1420 zcmZuxUuauZ82_D{o8;Qgn`u`TMoF*Qjdrg8f;K~Zuxr*TtxH*3g@JBqk|mMmCfwY% zsV%r7YO%_6x(S_jvt!t&`Z912!i1@a(+N&Q_9S~48$RlmTRIkh=cYjs&*eMc_xt|* z&UfxP_r^v?W7vXY@Zg!g{(htM`PQufegVYXKy-gUw!;UgztPt;FdQ3+P7O^G|3z#J zjEwC&{O&B{-fhIC*hpvig|?$d0Of1qBZ*wR;1BPV`CY^dnN&Ra;MCd286PI@$EP{6O)U@my-#l}#Fb zd22jn+qK2nP5|O9kK|W(%q%Q_<_zk0FMQEhT%KN8Sw3^_TrIWB zRdX$LesSgW$rbII@5J1x*OuPU?%lZL-0&~Gf9j(XOZ1+!S7y&IYHO>jYis6errBDw z=jJE1Uf=wu_L8;uAE;$aGt;a)&zJRbveBq}a-s2&I{oT;lPcG$k;tTw{>geoeewDw zzy4k0@dhYDG_?P8`I{@>|9oKJ+2@7^2V*~84b^XWZ+DipvUdAs*<1Fu-`vnPwD#@| zZ>XNTl?Q-tKe%<_aNy}XO1E8PdJYmfvp(ZCeguGF!XvHg)h`5Uu z-bf%O13Yai98$L5Z>U5R&0RryYQqOr%!>Cwe&ucDOS<2wYVkX|g+ed9E`?hl`;+6C zoQ99?PvR?d_=6s!vKNOo(`q?@!G{b`(Ze=``T*^Hl&USD6IE@6_VA{yV+t>$4|x_MUu9xu`rGlvu%vQq~9hgaz03%#v~?~Z@GLn z`HOf8oqQ7Xr5LeUF-0purW~I+lEs!AgamO{;Rv`P2F1U+1`m zG2jVzt{!&>Z7JmS2dW~u{K2YlrOl(_--6%&{|wntl~=L|-VQknw^GLH(1Z{~w0~%n zeabz-?NJ)lc$9D4>&A_=6*ti%KY#4D