Improve ligature-component handling
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 17 Dec 2015 15:21:14 +0000 (15:21 +0000)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 17 Dec 2015 15:21:14 +0000 (15:21 +0000)
commit2f02fc79a5018e3348fccf366c470803554e1e58
treea2a091c33313edd8bc4b2ed4ddf6afcc9630ad12
parent2ab0de9fbd03231b647345b01e31b136e2e00978
Improve ligature-component handling

We use three bits for lig_id these days, so we finally got a report of
two separate ligatures with the same lig_id happening adjacent to each
other, and then the component-handling code was breaking things.
Protect against that by ignoring same-lig-id but lig-comp=0 glyphs after
a new ligature.

Fixes https://github.com/behdad/harfbuzz/issues/198
src/hb-ot-layout-gsubgpos-private.hh
test/shaping/Makefile.am
test/shaping/fonts/sha1sum/MANIFEST
test/shaping/fonts/sha1sum/c78d1f25ea1df1210414f2fe2e0e1e53082bba76.ttf [new file with mode: 0644]
test/shaping/tests/MANIFEST
test/shaping/tests/ligature-id.tests [new file with mode: 0644]