From 937d5f23088d4dba475e24e3df4dcd719f7ad29a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 Jun 2016 13:49:50 +0200 Subject: epub: Expose Dingbats, Symbol, and Emoji fonts by name. --- source/fitz/noto.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source') diff --git a/source/fitz/noto.c b/source/fitz/noto.c index f7ca43b1..3d646b52 100644 --- a/source/fitz/noto.c +++ b/source/fitz/noto.c @@ -92,6 +92,12 @@ fz_lookup_builtin_font(fz_context *ctx, const char *name, int is_bold, int is_it NimbusRoman_Bold_cff, NimbusRoman_BoldItalic_cff) } + if (!strcmp(name, "Dingbats") || !strcmp(name, "Zapf Dingbats")) { + RETURN(Dingbats_cff); + } + if (!strcmp(name, "Symbol")) { + RETURN(StandardSymbolsPS_cff); + } #endif #ifndef TOFU_SIL if (!strcmp(name, "Charis SIL")) { @@ -108,6 +114,11 @@ fz_lookup_builtin_font(fz_context *ctx, const char *name, int is_bold, int is_it if (!strcmp(name, "Noto Sans")) { RETURN(NotoSans_Regular_ttf); } +#endif +#ifndef TOFU_EMOJI + if (!strcmp(name, "Emoji") || !strcmp(name, "Noto Emoji")) { + RETURN(NotoEmoji_Regular_ttf); + } #endif return *size = 0, NULL; } -- cgit v1.2.3