Re: Type 1 postscript font support questions...


Subject: Re: Type 1 postscript font support questions...
From: Mike Meyer (mwm@mired.org)
Date: Mon Jun 05 2000 - 05:20:17 CDT


sam th writes:
> Your patch had some problems (it was backwards for one) so attached is a
> corrected version. This is against the current CVS tree. What good tests
> could we use for your patch? I can test it after finals (only 6 hours
> away).

Sorry 'bout that. The original wasn't backwards :-(, but I must have
gotten rushed on the second one.

This patch fixes two things. One is parsing AFM files with CRLF for a
line ending, which I got by purchasing fonts from Adobe in DOS format
and copying them from the Adobe disks. Tweaking an AFM file into that
format and verifying that printing works with the patch and fails
without is the test.

The other fix deals with fonts with slants other than "r" or "i". For
instance, the entries I wrote for the Adobe Optima are:

Optima.pfb -Adobe-Optima-regular-r-normal--0-0-0-0-p-0-iso8859-1
Optima-Italic.pfb -Adobe-Optima-regular-i-normal--0-0-0-0-p-0-iso8859-1
Optima-Bold.pfb -Adobe-Optima-bold-r-normal--0-0-0-0-p-0-iso8859-1
Optima-BoldItalic.pfb -Adobe-Optima-bold-i-normal--0-0-0-0-p-0-iso8859-1
Optima-Oblique.pfb -Adobe-Optima-regular-o-normal--0-0-0-0-p-0-iso8859-1
Optima-BoldOblique.pfb -Adobe-Optima-bold-o-normal--0-0-0-0-p-0-iso8859-1

Without the patch, the last "Optima" font that doesn't match one of
the supported styles (regular/r, bold/r, regular/i, bold/i) Adding an
artificial oblique entry to the fonts list and verifying this
behavior, and that it's ignored with the patch, is the test I used.

This is actually a QAD fix. The correct fix is probably to use slant
"o" fonts if there is no italic for that font yet, but I'm not up to
getting that far into the font code.

        Thanx,
        <mike



This archive was generated by hypermail 2b25 : Mon Jun 05 2000 - 05:20:57 CDT