summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-07 15:40:03 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-08 13:00:45 +0100
commit3f30320c639ebc4626a648e9b3563b1f688e6b28 (patch)
treee260a92a9eac2595167dbd49b0533bf9c5477aff /include
parent48afdad75f42b1eb165e87ffd69ae1195ada9350 (diff)
downloadmupdf-3f30320c639ebc4626a648e9b3563b1f688e6b28.tar.xz
Optimize font advance and encoding caches.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/font.h12
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 */