🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #5700

Re: GNU doc generates font checksum error for Tex with dvi2ps

#5700
From: Keizer E G
Date: Tue, 17 Jan 1989 09:09
55 lines
2180 bytes
I have had the same error some time ago, and solved the problem.
I sent mail to Mr. Mackay, but somehow my remarks never showed up in TexHax.
This next attempt is to post it to comp.text.

Date:     Mon, 2 May 88 15:34:13 MET DST
From:     Ed Keizer <keie@cs.vu.nl>
To:       mackay@june.cs.washington.edu
Subject:  TFM checksums and dvi2ps.

I have been playing around with Metafont and dvi2ps to generate
PostScript-TeX output for the AGFA P400PS. I found a bug in dvi2ps
that caused messages for checksum errors, while no error was present.
This happened when dvi2ps found a checksum in the dvi file (from tfm)
for a font for which no gf file was present. Dvi2ps subsequently
found a replacement font and compared its checksum to the checksum in the
dvi file. They always differ, as they should.

I have made the following changes:
dvi2ps.c:
1777,1787c1777,1779
<     switch ( findfile(&PXLpath,1,"",tfontptr->n,tfontptr->font_mag,tfontptr->name,
<                 nname, &nmag)) {
<     case 0 :
<       Fatal("no font %s.%d",tfontptr->n,mag);
<       break ;
<     case -1 : /* Found an exact match */
<       break ;
<     case 1 :
<       tfontptr->c=0 ;
<       /* Found an alternate */
<     }  
---
>     if (!findfile(&PXLpath,1,"",tfontptr->n,tfontptr->font_mag,tfontptr->name,>                 nname, &nmag))
>       Fatal("no font %s.%d",tfontptr->n,mag);

findfile.c:
186,188c186,188
<             nname,bestmag,
<             name,mag);
<     return(1);
---
>             nname,(bestmag * 4 + 3) / 6,
>             name,(mag * 4 + 3) / 6);
>     return(-1);

Ed Keizer

Vakgroep Informatica
Vrije Universiteit
De Boelelaan 1108
1108 HV Amsterdam
The Netherlands

email: keie@cs.vu.nl
Tel: (nl) 20-5485777
Technical Details
Message-ID: <1913@star.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!keie
References: <425@tnosoes.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!keie
From: keie@cs.vu.nl (Keizer E G)
Newsgroups: comp.text
Subject: Re: GNU doc generates font checksum error for Tex with dvi2ps
Keywords: tex, dvi2ps
Message-ID: <1913@star.cs.vu.nl>
Date: 17 Jan 89 09:09:32 GMT
References: <425@tnosoes.UUCP>
Reply-To: keie@cs.vu.nl (Keizer E G)
Organization: VU Informatica, Amsterdam
Lines: 55