logf("<fatal> Too many fonts in file.");
exit(1);
}
- substitutesource[substitutepos] = oldname;
- substitutetarget[substitutepos] = fontname;
- logf("<verbose> substituting %s -> %s", oldname, fontname);
- substitutepos ++;
+ if(oldname) {
+ substitutesource[substitutepos] = oldname;
+ substitutetarget[substitutepos] = fontname;
+ logf("<verbose> substituting %s -> %s", oldname, fontname);
+ substitutepos ++;
+ }
return fontname;
}
if(t1id<0) {
showFontError(gfxFont,0);
+ return;
}
/* we may have done some substitutions here, so check