[woff2] Support overlap flag for simple glyphs

System Internals / FreeType - Ben Wagner [chromium.org] - 20 March 2022 07:27 UTC

In the woff2 spec it has been proposed to allow the OVERLAP_SIMPLE flag to be retained through the woff2 format [0].

[0] https://www.w3.org/TR/WOFF2/#glyf_table_format

- src/sfnt/sfwoff2.h (GLYF_OVERLAP_SIMPLE): add glyf flag.

- src/sfnt/sfwoff2.c (reconstruct_glyf): parse optionFlags and overlapSimpleBitmap[]. (store_points): set OVERLAP_SIMPLE on first point's flag if the overlap bit is set.

a960be9e5 [woff2] Support overlap flag for simple glyphs.
src/sfnt/sfwoff2.c | 59 +++++++++++++++++++++++++++++++++++++++++++++---------
src/sfnt/sfwoff2.h | 1 +
2 files changed, 51 insertions(+), 9 deletions(-)

Upstream: git.savannah.gnu.org


  • Share