Fix Type 1 hinting

System Internals / FreeType - Ewald Hew [gmail.com] - 25 September 2017 03:26 EDT

Type 1 hinting breaks sometimes when mid-charstring hints should have been in the initial hintmap. This fix adds a preprocessing pass that reads all hints and builds the correct initial hintmap first, before proceeding to build the glyph outline.

- src/psaux/psintrp.c (cf2_interpT2CharString): New `initial_map_ready' boolean flag. Ignore outline commands and hint changes on first pass. : Add section to build hintmap and rewind.

d52dd7f Fix Type 1 hinting.
ChangeLog | 14 ++++++++++
src/psaux/psintrp.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++-------
2 files changed, 80 insertions(+), 10 deletions(-)

Upstream: git.savannah.gnu.org


  • Share