diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-07 15:40:03 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-08 13:00:45 +0100 |
commit | 3f30320c639ebc4626a648e9b3563b1f688e6b28 (patch) | |
tree | e260a92a9eac2595167dbd49b0533bf9c5477aff /include | |
parent | 48afdad75f42b1eb165e87ffd69ae1195ada9350 (diff) | |
download | mupdf-3f30320c639ebc4626a648e9b3563b1f688e6b28.tar.xz |
Optimize font advance and encoding caches.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/font.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index 3a272d26..712a9782 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -58,16 +58,16 @@ struct fz_font_s int use_glyph_bbox; fz_rect *bbox_table; - /* cached glyph metrics */ - float *advance_table; - - /* cached unicode encoding lookup */ - int *unicode_table; - /* substitute metrics */ int width_count; short width_default; /* in 1000 units */ short *width_table; /* in 1000 units */ + + /* cached glyph metrics */ + float *advance_cache; + + /* cached encoding lookup */ + uint16_t *encoding_cache; }; /* common CJK font collections */ |