From 7368da67244ea53195cd9b95a5c57485df695732 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 25 Aug 2015 20:28:39 +0100 Subject: [PATCH] [test] Add test for cursive-positioning with mixed directions Fails now. Fix coming. See thread "Issue with cursive attachment" started by Khaled. Test fonts were made by modifying test font from Khaled to add more anchors. --- test/shaping/Makefile.am | 1 + .../sha1sum/298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf | Bin 0 -> 2520 bytes test/shaping/fonts/sha1sum/MANIFEST | 2 ++ .../sha1sum/c4e48b0886ef460f532fb49f00047ec92c432ec0.ttf | Bin 0 -> 2512 bytes test/shaping/tests/MANIFEST | 1 + test/shaping/tests/cursive-positioning.tests | 2 ++ 6 files changed, 6 insertions(+) create mode 100644 test/shaping/fonts/sha1sum/298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf create mode 100644 test/shaping/fonts/sha1sum/c4e48b0886ef460f532fb49f00047ec92c432ec0.ttf create mode 100644 test/shaping/tests/cursive-positioning.tests diff --git a/test/shaping/Makefile.am b/test/shaping/Makefile.am index bab3b47..69779b1 100644 --- a/test/shaping/Makefile.am +++ b/test/shaping/Makefile.am @@ -40,6 +40,7 @@ TESTS = \ tests/arabic-feature-order.tests \ tests/cluster.tests \ tests/context-matching.tests \ + tests/cursive-positioning.tests \ tests/default-ignorables.tests \ tests/hangul-jamo.tests \ tests/indic-joiner-candrabindu.tests \ diff --git a/test/shaping/fonts/sha1sum/298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf b/test/shaping/fonts/sha1sum/298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf new file mode 100644 index 0000000000000000000000000000000000000000..0d677a873c8b144e6fd1f8dada357e7d2d6b21a1 GIT binary patch literal 2520 zcmd5;Yiv|S6h1TewU55o?e6xqW!r7LeL~yq-lcA_4@yhB#gewrf(Tu=PuM{sJV(gy>?M!bAwd57l6c}{6}r`;;NVn+!p{;hq?zE zn`amIetP{p09TFnCBeSHp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2x(o|YadsMGR{3c;1_q`j1RCb#4>`jt_5bd7gJ17ND o{vqguE^t5-jG+Gj{v1$+V+U$Fp&PX!l!kDY+7uW2zPY>o4b2Ozh5!Hn literal 0 HcmV?d00001 diff --git a/test/shaping/fonts/sha1sum/MANIFEST b/test/shaping/fonts/sha1sum/MANIFEST index 072911f..1e78f0a 100644 --- a/test/shaping/fonts/sha1sum/MANIFEST +++ b/test/shaping/fonts/sha1sum/MANIFEST @@ -2,6 +2,7 @@ 191826b9643e3f124d865d617ae609db6a2ce203.ttf 226bc2deab3846f1a682085f70c67d0421014144.ttf 270b89df543a7e48e206a2d830c0e10e5265c630.ttf +298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf 37033cc5cf37bb223d7355153016b6ccece93b28.ttf 4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf 5028afb650b1bb718ed2131e872fbcce57828fff.ttf @@ -15,6 +16,7 @@ a919b33197965846f21074b24e30250d67277bce.ttf bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf bb9473d2403488714043bcfb946c9f78b86ad627.ttf +c4e48b0886ef460f532fb49f00047ec92c432ec0.ttf d629e7fedc0b350222d7987345fe61613fa3929a.ttf df768b9c257e0c9c35786c47cae15c46571d56be.ttf e207635780b42f898d58654b65098763e340f5c7.ttf diff --git a/test/shaping/fonts/sha1sum/c4e48b0886ef460f532fb49f00047ec92c432ec0.ttf b/test/shaping/fonts/sha1sum/c4e48b0886ef460f532fb49f00047ec92c432ec0.ttf new file mode 100644 index 0000000000000000000000000000000000000000..99cda1697f5295071964d0340a972f983abda27b GIT binary patch literal 2512 zcmd5;X>3$g6h8O9ZQe{bW;!$7rc66+rwhfl(|Kc^(Ut<;rdZMf1w`yPU8Ng^Dkvs3 zXf#9uvWW^8Y3ziH8S%&=RN8M{`bz@``%gZIp;g) zy!#$707!!=5TK`d(c&h^gKXq{i?gtKX-8Mvy^VOwGI066xodf2+DF1$0GxQ&baY)+ zGxYj}4*`S-GFHS#V&n3dJdX4pq$2~d4dc3wmO(g&v}Is;bHD4Ai7$|z0T9m(_QiUY z-s(?K^f=13L1frIV%g z1!?bSY@|=jv;B(nAkr=4V;eT=<**OwQzQq%nu3!Cr?@~wo`gREWUv}?(y^lMb--d1 zv75nyIyexA0UCIGa$*Cdjl?F_K^6+g3cDl|P}d5j&|jglv(%74Pkc$=o9%B^$_8BcG&W zR)UaIeoU-XSH=N|_$z5kRk99;(hcnBX zqN!<;WRsT(_BGviE6VoWyY8CGbU6=I&q*H5?wxW8l9gs+sk z2P3S|U)`Sk;PBFD>*8%8XJxeg{QeyGNWN{s4Zp0c(}FqO?!2w7&0%{_%evImwej(H z*tDFT$}jwW@oSr{b4hpmh8Kz*j-uV6aCgt6x3Wo(H0qx>y5o(NEF~p7`=BkjZeX~e zAlg$03gi(1B%tM0WcPp7jY_qj;{8_1g1RUZ=_SbOERz%l7xhmQezI_fm zZB+$9RJuY?qaPf1y)h%vK3?HrcdctQiGG1b>4klP__TaA8vXXpH zgU^;L&C>{W20WnUq7IkthL$n09`beWyxs@#-Jtg2vBt0TFRAaM8U z8k;4@0+%yh%z6%lnFFL=xezjGk^vIHE52S%xpJ4*^oRoGsOo_ z# z%M{C!$(50|YlB+0WR;l3Y35QGkxs!JfB?3VnZrx@Q+zy2y#sUBemqBPd@T9gu>wKZ z&+7LXNlMK%Q&e7zVc_wGv-F7GdsBMkXRsLuDZHJyCzlSscX)iWt|sOhRl^Sm;{+uE z?vYO?*TN^#VU%AlMa+mubZOY=MTgR)c)y+yCUjl&l0;Y83CuzQ=cul853-&oK92S9 zF3V<7wuwE$W_Uhd#0L$lHvAT$ll#hpLq476BE3oIZExOld$v**o(2xDr36p3) dhCeSf;@XRxJ{UmmFj5n^%NV+!zH2TYe*iQQtA_vp literal 0 HcmV?d00001 diff --git a/test/shaping/tests/MANIFEST b/test/shaping/tests/MANIFEST index 0d97806..b4ee18e 100644 --- a/test/shaping/tests/MANIFEST +++ b/test/shaping/tests/MANIFEST @@ -2,6 +2,7 @@ arabic-fallback-shaping.tests arabic-feature-order.tests cluster.tests context-matching.tests +cursive-positioning.tests default-ignorables.tests hangul-jamo.tests indic-joiner-candrabindu.tests diff --git a/test/shaping/tests/cursive-positioning.tests b/test/shaping/tests/cursive-positioning.tests new file mode 100644 index 0000000..b61d0c1 --- /dev/null +++ b/test/shaping/tests/cursive-positioning.tests @@ -0,0 +1,2 @@ +fonts/sha1sum/c4e48b0886ef460f532fb49f00047ec92c432ec0.ttf::U+0643,U+0645,U+0645,U+062B,U+0644:[gid8=4+738|gid5=3@441,1197+0|gid6=3@0,432+405|gid9=2@0,477+452|gid9=1@0,977+452|gid10=0@20,1577+207] +fonts/sha1sum/298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf::U+0643,U+0645,U+0645,U+062B,U+0644:[gid8=4+738|gid5=3@441,1197+0|gid6=3@0,432+405|gid9=2@0,477+500|gid9=1@0,577+452|gid10=0@20,1177+207] -- 2.7.4