summaryrefslogtreecommitdiff
path: root/source/html/html-font.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-22 12:45:48 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-22 12:45:48 +0100
commit3116d629d72ff7bf227a46601d97db8d283c0650 (patch)
treead9c1aa51155c564940129f4c19f23c3ca0fbd29 /source/html/html-font.c
parentf501211e904d2c01e47b03e774ffc6f93faeae25 (diff)
downloadmupdf-3116d629d72ff7bf227a46601d97db8d283c0650.tar.xz
epub: Ignore missing fallback font for NOCJK builds.
Diffstat (limited to 'source/html/html-font.c')
-rw-r--r--source/html/html-font.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/html/html-font.c b/source/html/html-font.c
index d595b582..0880563a 100644
--- a/source/html/html-font.c
+++ b/source/html/html-font.c
@@ -21,9 +21,8 @@ fz_load_html_fallback_font(fz_context *ctx, fz_html_font_set *set)
int index;
data = pdf_lookup_substitute_cjk_font(ctx, FZ_ADOBE_GB_1, 0, 0, &size, &index);
- if (!data)
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot load fallback font");
- set->fallback = fz_new_font_from_memory(ctx, "fallback", data, size, index, 0);
+ if (data)
+ set->fallback = fz_new_font_from_memory(ctx, "fallback", data, size, index, 0);
}
return set->fallback;
}