summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/font.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-04 18:16:02 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-04 18:46:08 +0200
commit1beb60e78c5bb1f0abe6d4f30ac1777f611c0c3d (patch)
treeee5374f9fa18e1f499ae9b81877416d63f482290 /include/mupdf/fitz/font.h
parentb3dce80c9a50d26790d592313afe96e85bdb842e (diff)
downloadmupdf-1beb60e78c5bb1f0abe6d4f30ac1777f611c0c3d.tar.xz
epub: Add harfbuzz bypass for fonts without opentype tables.
In certain simple circumstances, we can bypass harfbuzz shaping and gain a lot of performance.
Diffstat (limited to 'include/mupdf/fitz/font.h')
-rw-r--r--include/mupdf/fitz/font.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index e4feaab7..2d3a8100 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -36,12 +36,15 @@ struct fz_font_s
char is_italic;
void *ft_face; /* has an FT_Face if used */
+ void *hb_font; /* hb_font for shaping */
int ft_substitute; /* ... substitute metrics */
int ft_stretch; /* ... and stretch to match PDF metrics */
+
int fake_bold; /* ... synthesize bold */
int fake_italic; /* ... synthesize italic */
int force_hinting; /* ... force hinting for DynaLab fonts */
+ int has_opentype; /* ... has opentype shaping tables */
fz_matrix t3matrix;
void *t3resources;
@@ -71,9 +74,6 @@ struct fz_font_s
/* cached encoding lookup */
uint16_t *encoding_cache[256];
-
- /* Shaping information */
- void *shaper;
};
/* common CJK font collections */