diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-04 16:09:55 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-05 14:47:37 +0100 |
commit | bececf00d7da9b2a200ab1e967c101e058b74dfa (patch) | |
tree | cbbc8ee032b7af9dc397a95ad8af79c18a18d743 /include | |
parent | ef4897ce4c3c497179ff666745a75349600bf5f6 (diff) | |
download | mupdf-bececf00d7da9b2a200ab1e967c101e058b74dfa.tar.xz |
epub: Speed up font layout by caching freetype advance widths.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/font.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index 1e053470..21794d59 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -52,11 +52,15 @@ struct fz_font_s fz_rect bbox; /* font bbox is used only for t3 fonts */ + int glyph_count; + /* per glyph bounding box cache */ int use_glyph_bbox; - int bbox_count; fz_rect *bbox_table; + /* cached glyph metrics */ + float *advance_table; + /* substitute metrics */ int width_count; short width_default; /* in 1000 units */ |