commit | 6f16b10019d7699aff4d5bbc64999a5fd1ce7457 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 14 19:26:49 2015 +0100 |
committer | Werner Lemberg <wl@gnu.org> | Wed Jan 14 19:26:49 2015 +0100 |
tree | 10d16a0cbefa204d2e957f0d99503fac4a158601 | |
parent | c27336567bf9ec18734506f68fc03e328c479bc9 [diff] |
[autofit] Add embedded arrays for points and contours. This avoids at least two malloc calls for typical glyphs. * src/autofit/afhints.h (AF_POINTS_EMBEDDED, AF_CONTOURS_EMBEDDED): New macros. (AF_GlyphHintsRec): Add two arrays for contours and points. * src/autofit/afhints.c (af_glyph_hints_init, af_glyph_hints_done): Updated. (af_glyph_hints_reload): Only allocate data if number of contours or points exceeds given threshold values.