X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=backend%2Fdvi%2Fmdvi-lib%2Fvf.c;h=3826ae878f54160cc03f0b94c0c0b8ab5a116bc7;hb=df7ffac1abb2328b91bb87306f6e77807cc4e10d;hp=e1397fd587c0eae3e728979ebb612f2c82453b9f;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/backend/dvi/mdvi-lib/vf.c b/backend/dvi/mdvi-lib/vf.c index e1397fd5..3826ae87 100644 --- a/backend/dvi/mdvi-lib/vf.c +++ b/backend/dvi/mdvi-lib/vf.c @@ -17,6 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include #include "mdvi.h" @@ -78,8 +79,8 @@ static int vf_load_font(DviParams *params, DviFont *font) fseek(p, (long)mlen, SEEK_CUR); checksum = fuget4(p); if(checksum && font->checksum && checksum != font->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; font->design = fuget4(p); @@ -126,8 +127,8 @@ static int vf_load_font(DviParams *params, DviFont *font) /* get the font */ ref = font_reference(params, id, name, checksum, hdpi, vdpi, scale); if(ref == NULL) { - error(_("(vf) %s: could not load font `%s'\n"), - font->fontname, name); + mdvi_error(_("(vf) %s: could not load font `%s'\n"), + font->fontname, name); goto error; } mdvi_free(name); @@ -176,8 +177,8 @@ static int vf_load_font(DviParams *params, DviFont *font) nchars = cc + 16; } if(font->chars[cc].offset) { - error(_("(vf) %s: character %d redefined\n"), - font->fontname, cc); + mdvi_error(_("(vf) %s: character %d redefined\n"), + font->fontname, cc); goto error; } @@ -199,7 +200,7 @@ static int vf_load_font(DviParams *params, DviFont *font) op = fuget1(p); } if(op != 248) { - error(_("(vf) %s: no postamble\n"), font->fontname); + mdvi_error(_("(vf) %s: no postamble\n"), font->fontname); goto error; } @@ -225,7 +226,7 @@ static int vf_load_font(DviParams *params, DviFont *font) return 0; badvf: - error(_("%s: File corrupted, or not a VF file.\n"), font->fontname); + mdvi_error(_("%s: File corrupted, or not a VF file.\n"), font->fontname); error: if(font->chars) mdvi_free(font->chars);