[truetype] Add support for `avar` table 2.0 format

System Internals / FreeType - Behdad Esfahbod [behdad.org] - 4 November 2022 18:44 UTC



for the specification.

Currently, this is implemented only in most recent OS versions on Apple platforms and in the HarfBuzz library, but it is expected to be added to the OpenType standard soon.

- src/truetype/ttgxvar.h (GX_AVarTableRec): New structure. (GX_BlendRec): Use it to replace `avar_segment` with `avar_table`.

- src/truetype/ttgxvar.c (ft_var_load_avar): Load new table version. (ft_var_to_normalized, tt_done_blend): Extend for new format. (ft_var_load_hvvar, ft_var_to_design): Updated.

ae4eb996a [truetype] Add support for `avar` table 2.0 format.
src/truetype/ttgxvar.c | 195 +++++++++++++++++++++++++++++++++++++++----------
src/truetype/ttgxvar.h | 21 +++++-
2 files changed, 176 insertions(+), 40 deletions(-)

Upstream: git.savannah.gnu.org

  • Share