diff options
Diffstat (limited to 'pdf/pdf_font.c')
-rw-r--r-- | pdf/pdf_font.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pdf/pdf_font.c b/pdf/pdf_font.c index dad20828..ee4863f1 100644 --- a/pdf/pdf_font.c +++ b/pdf/pdf_font.c @@ -260,12 +260,15 @@ pdf_load_system_font(fz_context *ctx, pdf_font_desc *fontdesc, char *fontname, c else if (!strcmp(collection, "Adobe-Korea1")) pdf_load_substitute_cjk_font(ctx, fontdesc, PDF_ROS_KOREA, serif); else - fz_throw(ctx, "unknown cid collection: %s", collection); - return; + { + fz_warn(ctx, "unknown cid collection: %s", collection); + pdf_load_substitute_font(ctx, fontdesc, mono, serif, bold, italic); + } + } + else + { + pdf_load_substitute_font(ctx, fontdesc, mono, serif, bold, italic); } - - pdf_load_substitute_font(ctx, fontdesc, mono, serif, bold, italic); - /* RJW: "cannot load substitute font" */ } static void |