[HarfBuzz] Building with MSVC; test results

Elmar Braun Elmar.Braun at sh-p.de
Wed Aug 26 07:19:09 PDT 2015


Hello,

I'm trying to explore the icu-le-hb route for a software that currently depends on ICU's layout component. Step one, I suppose, is to get HarfBuzz to build. Am I right to assume that there is no official way to build with MSVC (2013 in this case)?

Anyway, it was easy enough to put together a MSVC project that builds hb as a static library with HAVE_ICU and HAVE_OT. Now, before I continue, it'd be nice to verify that what I build actually works. So far I was unable to get hb-view to run, but had success with hb-shape. This allowed me to run test/shaping/run_tests.sh, with a not very encouraging result of 19 tests failed.

So my questions are: What else could I do to try to test hb? And what explains those 19 failed tests (log attached below)?

Best regards,
Elmar

Running tests in tests/arabic-fallback-shaping.tests
Testing fonts/sha1sum/df768b9c257e0c9c35786c47cae15c46571d56be.ttf:U+0633,U+064F,U+0644,U+064E,U+0651,U+0627,U+0651,U+0650,U+0645,U+062A,U+06CC
Actual:   [gid22=10+1655|gid20=9+868|gid8=8+1098|gid16=2+0|gid17=2+0|gid14=2+0|gid17=2+0|gid11=2+1470|gid15=0+0|gid4=0+1585]
Expected: [uni06CC.fina=10+1655|uni062A.medi=9+868|uni0645.init=8+1098|uni0650=2 at 221,0+0|uni0651=2 at 260,736+0|uni064E=2 at 935,1259+0|uni0651=2 at 974,736+0|uni06440627.fina=2+1470|uni064F=0 at 558,-10+0|uni0633.init=0+1585]
Running tests in tests/arabic-feature-order.tests
Testing fonts/sha1sum/813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf:U+1820,U+180B
Actual:   [gid4=0+1550]
Expected: [uni2048.E81A=0+1550]
Testing fonts/sha1sum/8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf:U+1820,U+180B
Actual:   [gid4=0+1550]
Expected: [uni2048.E81A=0+1550]
Testing fonts/sha1sum/a919b33197965846f21074b24e30250d67277bce.ttf:U+0644,U+0644,U+0647
Actual:   [gid26=0+1503]
Expected: [Lellah=0+1503]
Running tests in tests/cluster.tests
Testing fonts/sha1sum/6466d38c62e73a39202435a4f73bf5d6acbb73c0.ttf:U+0078,U+030A,U+0058,U+030A
Actual:   [gid2=0+1083|gid4=1+0|gid1=2+1200|gid4=3+0]
Expected: [gid2=0+1083|gid4=1 at -555,-8+0|gid1=2+1200|gid4=3 at -614,349+0]
Running tests in tests/context-matching.tests
Testing fonts/sha1sum/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf:U+1A48,U+1A58,U+1A25,U+1A48,U+1A58,U+1A25,U+1A6E,U+1A63
Actual:   [gid2=0+1212|gid1=0+1912|gid3=0+0|gid2=3+1212|gid5=3+1212|gid1=3+1912|gid3=3+0|gid4=3+1212]
Expected: [uni1A48=0+1212|uni1A25=0+1912|uni1A58=0+0|uni1A48=3+1212|uni1A6E=3+1212|uni1A25=3+1912|uni1A58=3+0|uni1A63=3+1212]
Testing fonts/sha1sum/d629e7fedc0b350222d7987345fe61613fa3929a.ttf:U+0915,U+093F,U+0915,U+093F
Actual:   [gid4=0+530|gid1=0+1561|gid4=2+530|gid1=2+1561]
Expected: [ivowelsign03deva=0+530|kadeva=0+1561|ivowelsign03deva=2+530|kadeva=2+1561]
Testing fonts/sha1sum/f499fbc23865022234775c43503bba2e63978fe1.ttf:U+09B0,U+09CD,U+09A5,U+09CD,U+09AF,U+09C0
Running tests in tests/default-ignorables.tests
Testing fonts/sha1sum/051d92f8bc6ff724511b296c27623f824de256e9.ttf:U+0075,U+0361,U+034F,U+0301,U+0069
Running tests in tests/hangul-jamo.tests
Testing fonts/sha1sum/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf:U+115F,U+11A2
Testing fonts/sha1sum/7e14e7883ed152baa158b80e207b66114c823a8b.ttf:U+11A2
Running tests in tests/indic-joiner-candrabindu.tests
Testing fonts/sha1sum/5028afb650b1bb718ed2131e872fbcce57828fff.ttf:U+0B13,U+200D,U+0B01
Actual:   [gid11=0+1450]
Expected: [omorya=0+1450]
Testing fonts/sha1sum/5028afb650b1bb718ed2131e872fbcce57828fff.ttf:U+0B13,U+200C,U+0B01
Actual:   [gid3=0+1309|gid1=1+0|gid2=1+0]
Expected: [oorya=0+1309|space=1+0|candrabinduorya=1+0]
Running tests in tests/indic-old-spec.tests
Testing fonts/sha1sum/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf:U+0C9A,U+0CCD,U+0C9A,U+0CCD
Actual:   [gid3=0+1066|gid4=0+0]
Expected: [U0C9A_U0CCD.haln=0+1066|U0C9A_0CCD.blwf=0+0]
Testing fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf:U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D
Actual:   [gid10=0+1183|gid3=0+0]
Expected: [glyph201=0+1183|U0D4D=0+0]
Running tests in tests/indic-pref-blocking.tests
Testing fonts/sha1sum/226bc2deab3846f1a682085f70c67d0421014144.ttf:U+0D2F,U+0D4D,U+0D30,U+0D46
Actual:   [gid3=0+1465|gid8=0+499|gid1=0+2120]
Expected: [evowelsignmlym=0+1465|rapostmlym=0+499|yamlym=0+2120]
Testing fonts/sha1sum/e207635780b42f898d58654b65098763e340f5c7.ttf:U+0D2F,U+0D4D,U+0D30,U+0D46
Actual:   [gid1=0+2120|gid4=0+0|gid3=0+1465|gid2=0+1507]
Expected: [yamlym=0+2120|viramamlym=0+0|evowelsignmlym=0+1465|ramlym=0+1507]
Running tests in tests/mongolian-variation-selector.tests
Testing fonts/sha1sum/37033cc5cf37bb223d7355153016b6ccece93b28.ttf:U+1826,U+180B,U+1826
Actual:   [gid10=0+599|gid8=2+750]
Expected: [uni1826.E85E_ue.init1=0+599|uni1826.E856_ue.fina=2+750]
Testing fonts/sha1sum/ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf:U+1820,U+180B
Actual:   [gid5=0+1199]
Expected: [uni1820.E821_a.isol1=0+1199]
Testing fonts/sha1sum/bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf:U+183A,U+1823,U+182E,U+182B,U+1822,U+1826,U+180B,U+1832,U+180B,U+1827,U+1837,U+0020,U+182D,U+182D,U+180B,U+0020,U+182D,U+180C,U+0020,U+182D,U+180D,U+200D,U+0020,U+182D,U+200D,U+182D,U+180B,U+200D,U+0020,U+182D,U+180C,U+200D,U+0020,U+182D,U+180D,U+200D,U+0020,U+200D,U+182D,U+200D,U+200D,U+182D,U+180B,U+200D,U+0020,U+200D,U+182D,U+180C,U+200D,U+0020,U+200D,U+182D,U+180D,U+200D,U+0020,U+200D,U+182D,U+200D,U+182D,U+180B,U+0020,U+200D,U+182D,U+180C,U+0020,U+1820,U+200C,U+182D,U+1820,U+1837,U+0020,U+1830,U+1824,U+1837,U+200D,U+200D,U+182D,U+1820,U+200D,U+0020,U+200D,U+182D,U+1824,U+182F,U+1822,U+0020,U+182A,U+1820,U+1822,U+182D,U+180E,U+1820,U+202F,U+1836,U+1822,U+1828
Actual:   [gid248=0+950|gid207=2+400|gid137=3+1150|gid70=5+1100|gid221=7+1000|gid77=9+750|gid234=10+750|gid1=11+500|gid182=12+1000|gid188=13+1250|gid1=15+500|gid292=16+1000|gid1=18+500|gid295=19+650|gid1=21+0|gid1=22+500|gid182=23+1000|gid1=24+0|gid185=25+800|gid1=27+0|gid1=28+500|gid294=29+950|gid1=31+0|gid1=32+500|gid295=33+650|gid1=35+0|gid1=36+500|gid1=37+0|gid184=38+800|gid1=39+0|gid1=40+0|gid185=41+800|gid1=43+0|gid1=44+500|gid1=45+0|gid186=46+650|gid1=48+0|gid1=49+500|gid1=50+0|gid186=51+650|gid1=53+0|gid1=54+500|gid1=55+0|gid184=56+800|gid1=57+0|gid188=58+1250|gid1=60+500|gid1=61+0|gid189=62+1050|gid1=64+500|gid28=65+1550|gid1=66+0|gid182=67+1000|gid31=68+400|gid234=69+750|gid1=70+500|gid214=71+850|gid62=72+600|gid233=73+600|gid1=74+0|gid1=75+0|gid185=76+800|gid31=77+400|gid1=78+0|gid1=79+500|gid1=80+0|gid185=81+800|gid62=82+600|gid211=83+400|gid49=84+600|gid1=85+500|gid98=86+1000|gid48=88+1000|gid188=89+1250|gid1=90+0|gid35=91+600|gid25=92+500|gid228=93+500|gid46=94+500|gid87=95+850]
Expected: [uni183A1823.E971_ko.init=0+950|uni182E.E904_m.medi=2+400|uni182B1822.E8A6_pi.medi=3+1150|uni1826.E854_ue.medi1=5+1100|uni1832.E916_t.medi1=7+1000|uni1827.E85C_ee.medi=9+750|uni1837.E931_r.fina=10+750|space=11+500|uni182D.E8E2_g.init=12+1000|uni182D.E8E8_g.fina1=13+1250|space=15+500|uni182D.EA1B_g.isol2=16+1000|space=18+500|uni182D.EA1E_g.init3=19+650|space=21+0|space=22+500|uni182D.E8E2_g.init=23+1000|space=24+0|uni182D.E8E5_g.medi1=25+800|space=27+0|space=28+500|uni182D.EA1D_g.init2=29+950|space=31+0|space=32+500|uni182D.EA1E_g.init3=33+650|space=35+0|space=36+500|space=37+0|uni182D.E8E4_g.medi=38+800|space=39+0|space=40+0|uni182D.E8E5_g.medi1=41+800|space=43+0|space=44+500|space=45+0|uni182D.E8E6_g.medi2=46+650|space=48+0|space=49+500|space=50+0|uni182D.E8E6_g.medi2=51+650|space=53+0|space=54+500|space=55+0|uni182D.E8E4_g.medi=56+800|space=57+0|uni182D.E8E8_g.fina1=58+1250|space=60+500|space=61+0|uni182D.E8E9_g.fina2=62+1050|space=64+500|uni1820.E820_a.isol=65+1550|space=66+0|uni182D.E8E2_g.init=67+1000|uni1820.E823_a.medi=68+400|uni1837.E931_r.fina=69+750|space=70+500|uni1830.E90B_s.init=71+850|uni1824.E844_u.medi=72+600|uni1837.E930_r.medi=73+600|space=74+0|space=75+0|uni182D.E8E5_g.medi1=76+800|uni1820.E823_a.medi=77+400|space=78+0|space=79+500|space=80+0|uni182D.E8E5_g.medi1=81+800|uni1824.E844_u.medi=82+600|uni182F.E908_l.medi=83+400|uni1822.E837_i.fina=84+600|space=85+500|uni182A1820.E875_ba.init=86+1000|uni1822.E836_i.medi2=88+1000|uni182D.E8E8_g.fina1=89+1250|space=90+0|uni1820.E827_a.fina2=91+600|uni202F.nobreak=92+500|uni1836.E92B_y.init1=93+500|uni1822.E834_i.medi=94+500|uni1828.E866_n.fina=95+850]
Running tests in tests/vertical.tests
Testing fonts/sha1sum/191826b9643e3f124d865d617ae609db6a2ce203.ttf:U+300C
Actual:   [gid2=0 at -512,-1024+0,-1024]
Expected: [uni300C.vert=0 at -512,-578+0,-1024]
Running tests in tests/zero-width-marks.tests
Testing fonts/sha1sum/bb9473d2403488714043bcfb946c9f78b86ad627.ttf:U+1030
Actual:   [gid3=0+636|gid2=0 at -162,0+0]
Expected: [circledash=0+636|u1030.med=0 at -162,0+0]
Testing fonts/sha1sum/8454d22037f892e76614e1645d066689a0200e61.ttf:U+05E0,U+05B8,U+0591,U+05DA,U+05B0
Actual:   [gid3=3+991|gid8=0+200|gid5=0 at 75,0+0|gid7=0 at 495,0+0|gid2=0+683]
Expected: [uni05DA05B0=3+991|uni2009=0+200|uni0591=0 at 75,0+0|uni05B8=0 at 495,0+0|uni05E0=0+683]
19 tests failed.



More information about the HarfBuzz mailing list