From 1beb60e78c5bb1f0abe6d4f30ac1777f611c0c3d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 4 Apr 2016 18:16:02 +0200 Subject: epub: Add harfbuzz bypass for fonts without opentype tables. In certain simple circumstances, we can bypass harfbuzz shaping and gain a lot of performance. --- include/mupdf/fitz/font.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3