paint = !paint;
}
if(row != h || inrow != w) {
- error(_("Bad PK file: More bits than required\n"));
+ mdvi_error(_("Bad PK file: More bits than required\n"));
bitmap_destroy(bm);
return NULL;
}
/* get the checksum */
checksum = fuget4(p);
if(checksum && font->checksum && font->checksum != checksum) {
- warning(_("%s: checksum mismatch (expected %u, got %u)\n"),
- font->fontname, font->checksum, checksum);
+ mdvi_warning(_("%s: checksum mismatch (expected %u, got %u)\n"),
+ font->fontname, font->checksum, checksum);
} else if(!font->checksum)
font->checksum = checksum;
/* skip pixel per point ratios */
case PK_NOOP:
break;
case PK_PRE:
- error(_("%s: unexpected preamble\n"), font->fontname);
+ mdvi_error(_("%s: unexpected preamble\n"), font->fontname);
goto error;
}
} else {
}
}
if(flag_byte != PK_POST) {
- error(_("%s: unexpected end of file (no postamble)\n"),
- font->fontname);
+ mdvi_error(_("%s: unexpected end of file (no postamble)\n"),
+ font->fontname);
goto error;
}
while((flag_byte = fuget1(p)) != EOF) {
if(flag_byte != PK_NOOP) {
- error(_("invalid PK file! (junk in postamble)\n"));
+ mdvi_error(_("invalid PK file! (junk in postamble)\n"));
goto error;
}
}
return 0;
badpk:
- error(_("%s: File corrupted, or not a PK file\n"), font->fontname);
+ mdvi_error(_("%s: File corrupted, or not a PK file\n"), font->fontname);
error:
mdvi_free(font->chars);
font->chars = NULL;