From a3566030615adf92bd0ddbfb0d537adad47106a5 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 7 Mar 2025 14:07:13 +0200 Subject: [PATCH] [directwrite/test] Add test that actually works Apparently DirectWrite does not allow disabling calt in Arabic, so test liga in Latin and ss01 in Arabic. --- .../7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf | Bin 0 -> 6404 bytes test/shape/data/in-house/tests/directwrite.tests | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 test/shape/data/in-house/fonts/7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf diff --git a/test/shape/data/in-house/fonts/7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf b/test/shape/data/in-house/fonts/7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf new file mode 100644 index 0000000000000000000000000000000000000000..09e931c7264613ecdca761e2227b1e15dccbb460 GIT binary patch literal 6404 zcma)A3v8R$bw2mr|Hc33OBDH<fY@B~sSYqA1FiU$G;}H_x95Q`%>Nyc zTEP6}&3hi$uy5~*{Y2L95y?NjZ_jY~iPk-z!*~|>j~+Q$J8fJyGFbmZ%=aFv%`=}U z+BG!m*z9A|D}V4L#?D@%(D~z2wWEJ?sQ4D>R{&o<4#4o^;?tPNG4DQpa^c*ntzH)V ze}ehfX6KI7R{#6N9OjIF@MP`WY5I)uEXMDkb)Kr7oGOOzEfZa( zqXTQ6Awk0PD1x4-PsXTKJ5Bxm41ne*&s5-W^u{NN2EJL}_WGuQSJl-;bhGdCR|(qC zHTLQM{77W=FG)3MUa?0mFwNsVfAUm)+y6d3@T!@_)F9bh$$L+r1<`C+y+~P#gBy=Z z)C;;WsD(@erjZb#X0L!zKAoUeDqvKkWq3j{G=&!T@!V^459UF#fYWH2W{h5AOZ_@@ zCx2FI%)FPp@4o-@_rE7xpAV2rJ{I_7Xd9iNKcK%BEn+Mu?ped>ssQy*8KQqQZes&A_AsK3;@wdLA5?RWLE{;Kh+@g{g{;uY~6=@9v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o4Y>(^ zIZTgYao$MyuJ~|Ae5jM)qfy^Q*g09{{c$5|9zK3I z*PXu`Vugy?x$f1Q^Mh;c_+(Ewsp&~45!Aw;l?pYlCs!JZpVv+K$UR#(IgxPv?GHAh z2;ChM(AtgOUF(V|r>#Gr+0l41st5LIh7d|myX9R2kuE!r3s@t%--Q)%wgpN67jx7D z==dQ4!J+@*@qU{rmz85mJF4q1UMh;Q!D^iWTlEPw~~)(mX^($Q-;!IvQ5L$%?xL< zeOXNjqb(_L#D)GnADQ-%Lz!%U1DR?dE6UM&^`5m`^4*o3p4r@!7>*~isd&gW47V$t z?TbtOq`P7);{U^=B=$+SH}>hs4revZ=tv7))}Qa}clDR}ih(l_OfP%*`$k6)cVy#V zQvGq=){}TOL56d5izlV@;KrR@=7%HgtPvX9w=Un73l#f;PB7CFZ*y#?GhO+OfigH7 wDvIz!ko?tcTcof-tXBpHw}Hygl4Gr!B~?(Www%kAwV6#(KRAn;jhssKe;v;ys{jB1 literal 0 HcmV?d00001 diff --git a/test/shape/data/in-house/tests/directwrite.tests b/test/shape/data/in-house/tests/directwrite.tests index 88a1ee9b9..48b5bbb33 100644 --- a/test/shape/data/in-house/tests/directwrite.tests +++ b/test/shape/data/in-house/tests/directwrite.tests @@ -1,2 +1,5 @@ ../fonts/872d2955d326bd6676a06f66b8238ebbaabc212f.ttf;--shaper=directwrite;U+0628,U+0628,U+0628;[uni0628.fina=2+883|uni0628.medi_High=1+244|uni0628.init_High=0+233] -../fonts/872d2955d326bd6676a06f66b8238ebbaabc212f.ttf;--shaper=directwrite --features=-calt;U+0628,U+0628,U+0628;[uni0628.fina=2+883|uni0628.medi=1+244|uni0628.init=0+190] +../fonts/7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf;--shaper=directwrite;U+0066,U+0066,U+0069;[f_f_i=0+795] +../fonts/7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf;--shaper=directwrite --features=-liga;U+0066,U+0066,U+0069;[f=0+300|f=1+300|i=2+263] +../fonts/7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf;--shaper=directwrite;U+0648,U+0628,U+0627;[alef-ar.fina=2+229|beh-ar.init=1+190|waw-ar=0+483] +../fonts/7bbd3175734d5d291e1c15271ec0cbb97b626ebf.ttf;--shaper=directwrite --features=ss01;U+0648,U+0628,U+0627;[alef-ar.fina=2+229|beh-ar.init.LD=1+190|waw-ar=0+400] \ No newline at end of file