summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}