Extract width parsing from Type 1 parser

System Internals / FreeType - Ewald Hew [gmail.com] - 12 October 2017 06:32 EDT

Duplicate the fast advance width calculations from the old parser. This is to facilitate adding options for compiling out the old parser.

- src/psaux/t1decode.{c,h} (t1_decoder_parse_metrics): New function.
- include/freetype/internal/psaux.h (T1_Decoder_Funcs): New entry `parse_metrics'.
- src/psaux/psauxmod.c: Set the new entry.

- src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String), src/cid/cidgload.c (cid_load_glyph): Separate conditional for selecting engine.

78df3c2 Extract width parsing from Type 1 parser.
ChangeLog | 16 +++
include/freetype/internal/psaux.h | 5 +
src/cid/cidgload.c | 5 +
src/psaux/psauxmod.c | 1 +
src/psaux/t1decode.c | 277 ++++++++++++++++++++++++++++++++++++++
src/psaux/t1decode.h | 4 +
src/type1/t1gload.c | 5 +
7 files changed, 313 insertions(+)

Upstream: git.savannah.gnu.org


  • Share