summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/font.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-06 16:12:36 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-06 16:12:36 +0100
commit990c79c8e5288a3315a73d8c55084a594f82ccac (patch)
treed6d1ceb1feee2902b4e71d605a1aaf962c50569f /include/mupdf/fitz/font.h
parent0ae5e72a2baa3a19aa51be4d6a91c4d23edac20f (diff)
downloadmupdf-990c79c8e5288a3315a73d8c55084a594f82ccac.tar.xz
epub: Cache font encoding lookups.
Add a caching table for the lower planes of unicode, which cover the latin, greek, cyrillic, hebrew and arabic scripts.
Diffstat (limited to 'include/mupdf/fitz/font.h')
-rw-r--r--include/mupdf/fitz/font.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index 21794d59..3a272d26 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -61,6 +61,9 @@ struct fz_font_s
/* cached glyph metrics */
float *advance_table;
+ /* cached unicode encoding lookup */
+ int *unicode_table;
+
/* substitute metrics */
int width_count;
short width_default; /* in 1000 units */