[aat] Fix unsafe-to-break
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 4 Feb 2018 19:58:02 +0000 (14:58 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 4 Feb 2018 22:18:54 +0000 (17:18 -0500)
commit54e6efadd6a30587736858d3fb497ed4e5e5f252
treef382767e1016ee19f1c7b5723fa2e926922c4fa2
parent89b1906d990658c763f35113c8978a5e21bffc22
[aat] Fix unsafe-to-break

At any position, if state is not zero, mark unsafe-to-break before,
unless we can reason it safe.

At any position, if there's an action entry for end-of-text, mark
unsafe to break.

Also changes buffer diff impl to allow for flag differences as long
as the buffer glyph flags are superset of reference glyph flags.

With this, all MORX tests pass.
src/hb-aat-layout-common-private.hh
src/hb-aat-layout-morx-table.hh
src/hb-buffer.cc