summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-06-20 13:49:50 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-06-22 13:42:11 +0200
commit937d5f23088d4dba475e24e3df4dcd719f7ad29a (patch)
treee30ced582a8f701a1ed6740eacb1f9db24acf083
parent4133f882bbc9fd21ece85d2f8aba9ac64c01c58d (diff)
downloadmupdf-937d5f23088d4dba475e24e3df4dcd719f7ad29a.tar.xz
epub: Expose Dingbats, Symbol, and Emoji fonts by name.
-rw-r--r--source/fitz/noto.c11
1 files changed, 11 insertions, 0 deletions
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")) {
@@ -109,6 +115,11 @@ fz_lookup_builtin_font(fz_context *ctx, const char *name, int is_bold, int is_it
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;
}