diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-22 12:45:48 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-22 12:45:48 +0100 |
commit | 3116d629d72ff7bf227a46601d97db8d283c0650 (patch) | |
tree | ad9c1aa51155c564940129f4c19f23c3ca0fbd29 /source/html | |
parent | f501211e904d2c01e47b03e774ffc6f93faeae25 (diff) | |
download | mupdf-3116d629d72ff7bf227a46601d97db8d283c0650.tar.xz |
epub: Ignore missing fallback font for NOCJK builds.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/html-font.c | 5 |
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; } |