From 3f30320c639ebc4626a648e9b3563b1f688e6b28 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 7 Jan 2016 15:40:03 +0100 Subject: Optimize font advance and encoding caches. --- include/mupdf/fitz/font.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3