diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-05-07 13:38:45 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-05-16 12:48:07 +0200 |
commit | da46868e717a246b726d2baeece734d6e28e528c (patch) | |
tree | b4d0316e6259aec68d0c02eab1ce1697e5fd4762 /include/mupdf | |
parent | 4f4cae9812ea4e1f4d78ea8b90a46d8f20519883 (diff) | |
download | mupdf-da46868e717a246b726d2baeece734d6e28e528c.tar.xz |
Restore Emoji font.
The Noto symbol font has been split into two. The second symbol font only
contains a subset of the emojis, so reinstate the real emoji font and add
both symbol fonts to the fallback chain.
Diffstat (limited to 'include/mupdf')
-rw-r--r-- | include/mupdf/fitz/font.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h index 43e61a01..85904b02 100644 --- a/include/mupdf/fitz/font.h +++ b/include/mupdf/fitz/font.h @@ -318,7 +318,7 @@ const unsigned char *fz_lookup_cjk_font(fz_context *ctx, int registry, int serif const unsigned char *fz_lookup_noto_font(fz_context *ctx, int script, int lang, int serif, int *len, int *subfont); /* - fz_lookup_noto_symbol_font: Search the builtin noto fonts + fz_lookup_noto_symbol[12]_font: Search the builtin noto fonts for a symbol font. Whether a font is present or not will depend on the configuration in which MuPDF is built. @@ -327,7 +327,8 @@ const unsigned char *fz_lookup_noto_font(fz_context *ctx, int script, int lang, Returns a pointer to the font file data, or NULL if not present. */ -const unsigned char *fz_lookup_noto_symbol_font(fz_context *ctx, int *len); +const unsigned char *fz_lookup_noto_symbol1_font(fz_context *ctx, int *len); +const unsigned char *fz_lookup_noto_symbol2_font(fz_context *ctx, int *len); /* fz_lookup_noto_emoji_font: Search the builtin noto fonts @@ -362,24 +363,6 @@ const unsigned char *fz_lookup_noto_emoji_font(fz_context *ctx, int *len); fz_font *fz_load_fallback_font(fz_context *ctx, int script, int language, int serif, int bold, int italic); /* - fz_load_fallback_symbol_font: Try to load a fallback - symbol font. Whether a font is present or not will - depend on the configuration in which MuPDF is built. - - Returns a new font handle, or NULL if not available. -*/ -fz_font *fz_load_fallback_symbol_font(fz_context *ctx); - -/* - fz_load_fallback_emoji_font: Try to load a fallback - emoji font. Whether a font is present or not will - depend on the configuration in which MuPDF is built. - - Returns a new font handle, or NULL if not available. -*/ -fz_font *fz_load_fallback_emoji_font(fz_context *ctx); - -/* fz_new_type3_font: Create a new (empty) type3 font. name: Name of font (or NULL). |