}
if(fontname && !strcmp(name, fontname)) {
- logf("<notice> Extra font %s is being used.\n", fontname);
+ logf("<notice> Extra font %d, \"%s\" is being used.\n", i, fontname);
return i;
}
fontname = T1_GetFontFileName(i);
fontname = strrchr(fontname,'/')+1;
if(strstr(fontname, name)) {
- logf("<notice> Extra font %s is being used.\n", fontname);
+ logf("<notice> Extra font %d, \"%s\" is being used.\n", i, fontname);
return i;
}
}
/* ------------------------------ V1 */
char*fontname = "Times-Roman";
+ logf("<verbose> substituteFont(,%s)", FIXNULL(oldname));
this->t1id = searchT1Font(fontname);
if(substitutepos>=sizeof(substitutesource)/sizeof(char*)) {
logf("<fatal> Too many fonts in file.");
if(fontname) {
int newt1id = searchT1Font(fontname);
if(newt1id<0) {
+ showFontError(gfxFont,1);
fontname = substituteFont(gfxFont, fontname);
} else
this->t1id = newt1id;
}
- else
+ else {
+ showFontError(gfxFont,1);
fontname = substituteFont(gfxFont, fontname);
+ }
}
if(t1id<0) {