diff options
author | Werner Lemberg <wl@gnu.org> | 2016-09-27 21:21:01 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2016-09-27 21:21:01 +0200 |
commit | e27b8a5598d851c98ec04f23316587e94d5bb086 (patch) | |
tree | b1c63a27bd28785cd534c2d2f27c32e29d5d4314 /ChangeLog | |
parent | 0d9459294238c4fa5a45ccf8077c8b258bd487ac (diff) | |
download | freetype2-e27b8a5598d851c98ec04f23316587e94d5bb086.tar.gz |
[truetype] Speed up `TT_Load_Glyph'.
This avoids additional calls to `tt_face_lookup_table' for the
`glyf' table, which can be expensive.
* include/freetype/internal/tttypes.h (TT_LoaderRec): Move
`glyf_offset' field to ...
(TT_FaceRec): ... this structure.
* src/truetype/ttgload.c (load_truetype_glyph): Updated.
(tt_loader_init): Move initialization of `glyf_offset' to ...
* src/truetype/ttpload.c (tt_face_load_loca): .. this function.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,19 @@ 2016-09-27 Werner Lemberg <wl@gnu.org> + [truetype] Speed up `TT_Load_Glyph'. + + This avoids additional calls to `tt_face_lookup_table' for the + `glyf' table, which can be expensive. + + * include/freetype/internal/tttypes.h (TT_LoaderRec): Move + `glyf_offset' field to ... + (TT_FaceRec): ... this structure. + * src/truetype/ttgload.c (load_truetype_glyph): Updated. + (tt_loader_init): Move initialization of `glyf_offset' to ... + * src/truetype/ttpload.c (tt_face_load_loca): .. this function. + +2016-09-27 Werner Lemberg <wl@gnu.org> + [truetype] Introduce dynamic limits for some bytecode opcodes. This speeds up FreeType's handling of malformed fonts. |