commit | d52dd7f31d958980331fdffec70588785669a327 | [log] [tgz] |
---|---|---|
author | Ewald Hew <ewaldhew@gmail.com> | Mon Sep 25 08:22:26 2017 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Mon Sep 25 09:26:59 2017 +0200 |
tree | 55d83c23c19e9d5c93bab8927143aef4ba5f3c53 | |
parent | 2f0e11406890cbd15d86f8e75ab6ab4da8898af4 [diff] |
Fix Type 1 hinting. 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. <cf2_cmdENDCHAR>: Add section to build hintmap and rewind.