Tweak ligature component matching for ligature formation
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 2 Oct 2017 18:02:45 +0000 (20:02 +0200)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 Oct 2017 18:03:35 +0000 (20:03 +0200)
commit8b2c94c43fd335b944d5e5487265706b8e0f9041
tree7f7d2cc68c14cfdc6fe0c050f16febf50f5f0cc9
parent71c0a1429db7c7e7e32507be248c9457e1cbfc7d
Tweak ligature component matching for ligature formation

If two marks want to ligate and they belong to different components of the
same ligature glyph, and said ligature glyph is to be ignored according to
mark-filtering rules, then allow.

Example Burmese senquence:

  U+1004,U+103A,U+1039,U+101B,U+103D,U+102D

Test font provided by Norbert Lindenberg.

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