From 4da3a788214bb3351f886218f58a0b3c017ee51a Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 3 May 2015 19:22:00 +0800 Subject: [PATCH] do not abort when attempting to flatten a non-CID font --- src/util/ffw.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/util/ffw.c b/src/util/ffw.c index 3d6c754..b88efce 100644 --- a/src/util/ffw.c +++ b/src/util/ffw.c @@ -283,8 +283,11 @@ void ffw_reencode_raw2(char ** mapping, int mapping_len, int force) void ffw_cidflatten(void) { - if(!cur_fv->sf->cidmaster) - err("Cannot flatten a non-CID font"); + if(!cur_fv->sf->cidmaster) + { + fprintf(stderr, "Cannot flatten a non-CID font\n"); + return; + } SFFlatten(cur_fv->sf->cidmaster); }