Skip to content

Commit

Permalink
do not abort when attempting to flatten a non-CID font
Browse files Browse the repository at this point in the history
  • Loading branch information
coolwanglu committed May 3, 2015
1 parent cb825f3 commit 4da3a78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/util/ffw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4da3a78

Please sign in to comment.