diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-21 12:34:56 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-21 12:34:56 +0100 |
commit | 000b8df004b175781af5b071590cf3867ae16f3a (patch) | |
tree | 1d57886b3cd2fb62a146cf1e367b20c30dd0e951 /include/mupdf/fitz/font.h | |
parent | 1ceb3b2acf3b8b8c1d009a01e94957698e6ec142 (diff) | |
download | mupdf-000b8df004b175781af5b071590cf3867ae16f3a.tar.xz |
epub: Put font fallback chain in fz_font.
fz_encode_character_with_fallback finds the first font in the fallback
chain that has the glyph encoded, and if none do then try to encode
a bullet character.
Diffstat (limited to 'include/mupdf/fitz/font.h')
-rw-r--r-- | include/mupdf/fitz/font.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index b6ea3362..313f5ac8 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -68,6 +68,9 @@ struct fz_font_s /* cached encoding lookup */ uint16_t *encoding_cache[256]; + + /* fallback font chain */ + fz_font *fallback; }; /* common CJK font collections */ @@ -103,6 +106,7 @@ void fz_decouple_type3_font(fz_context *ctx, fz_font *font, void *t3doc); float fz_advance_glyph(fz_context *ctx, fz_font *font, int glyph); int fz_encode_character(fz_context *ctx, fz_font *font, int unicode); +int fz_encode_character_with_fallback(fz_context *ctx, fz_font *font, int unicode, fz_font **out_font); void fz_print_font(fz_context *ctx, fz_output *out, fz_font *font); |