diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2017-01-18 22:48:13 +0200 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-01-18 12:48:13 -0800 |
commit | 2452543fdd383e62b8c4bc44b11bfd6796fc9963 (patch) | |
tree | 9358c3be248a0646fe66c9fce121615409ce97c3 /test | |
parent | 1337428e4f8a2a4c78312c581bf4e96cd49d783f (diff) |
[ot] Fix automatic fraction for RTL scripts (#405)
The numbers for right-to-left scripts are processed also from right to
left, so the order of applying “numr” and “dnom” features should be
reversed in such case.
Fixes https://github.com/behdad/harfbuzz/issues/395
Diffstat (limited to 'test')
-rw-r--r-- | test/shaping/Makefile.am | 1 | ||||
-rw-r--r-- | test/shaping/fonts/sha1sum/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf | bin | 0 -> 4936 bytes | |||
-rw-r--r-- | test/shaping/tests/automatic-fractions.tests | 3 |
3 files changed, 4 insertions, 0 deletions
diff --git a/test/shaping/Makefile.am b/test/shaping/Makefile.am index f2bb95bd..ea0b28a7 100644 --- a/test/shaping/Makefile.am +++ b/test/shaping/Makefile.am @@ -43,6 +43,7 @@ CLEANFILES += \ TESTS = \ tests/arabic-fallback-shaping.tests \ tests/arabic-feature-order.tests \ + tests/automatic-fractions.tests \ tests/cluster.tests \ tests/color-fonts.tests \ tests/context-matching.tests \ diff --git a/test/shaping/fonts/sha1sum/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf b/test/shaping/fonts/sha1sum/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf Binary files differnew file mode 100644 index 00000000..4b80f804 --- /dev/null +++ b/test/shaping/fonts/sha1sum/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf diff --git a/test/shaping/tests/automatic-fractions.tests b/test/shaping/tests/automatic-fractions.tests new file mode 100644 index 00000000..f9510e26 --- /dev/null +++ b/test/shaping/tests/automatic-fractions.tests @@ -0,0 +1,3 @@ +fonts/sha1sum/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf::U+0031,U+0032,U+0033,U+2044,U+0034,U+0035,U+0036:[one.numr=0+600|two.numr=1+600|three.numr=2+600|fraction=3+252|four.small=4+600|five.small=5+600|six.small=6+600] +fonts/sha1sum/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf:--direction=l --script=arab:U+0031,U+0032,U+0033,U+2044,U+0034,U+0035,U+0036:[one.numr=0+600|two.numr=1+600|three.numr=2+600|fraction=3+252|four.small=4+600|five.small=5+600|six.small=6+600] +fonts/sha1sum/15dfc433a135a658b9f4b1a861b5cdd9658ccbb9.ttf:--direction=l:U+0661,U+0662,U+0663,U+2044,U+0664,U+0665,U+0666:[uni0661.numr=0+600|uni0662.numr=1+600|uni0663.numr=2+600|fraction=3+252|uni0664.small=4+600|uni0665.small=5+600|uni0666.small=6+600] |