From 3116d629d72ff7bf227a46601d97db8d283c0650 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 22 Jan 2016 12:45:48 +0100 Subject: epub: Ignore missing fallback font for NOCJK builds. --- source/html/html-font.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/html/html-font.c') 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; } -- cgit v1.2.3