[comp.fonts] Converting PFB files to `standard' PostScript

graeme@otago.ac.nz (05/13/91)

I have some Adobe type 1 PostScript fonts in a .PFB format. I would
like to be able to download these typefaces with the document, i.e.,
rather than download them to the printer at the start of a job/day, 
I would like to load them down with the PostScript document.

Does anyone have a program that converts these PFB files into `standard'
PostScript? Anything under VMS, Unix (Ultrix), DOS, or Mac would be 
appreciated. I know that programs such as Pagemaker will do it, but
I can't figure how of the Aldus prep I need to get it to work
properly with programs other than Pagemaker (I am using TeX).

Graeme McKinstry,                graeme@otago.ac.nz
Computing Services Centre,
University of Otago,
Dunedin, New Zealand.

jtc@motcad.portal.com (J.T. Conklin) (05/13/91)

In article <1991May13.164422.385@otago.ac.nz> graeme@otago.ac.nz writes:
>I have some Adobe type 1 PostScript fonts in a .PFB format. I would
>like to be able to download these typefaces with the document, i.e.,
>rather than download them to the printer at the start of a job/day, 
>I would like to load them down with the PostScript document.
>
>Does anyone have a program that converts these PFB files into `standard'
>PostScript? Anything under VMS, Unix (Ultrix), DOS, or Mac would be 
>appreciated. I know that programs such as Pagemaker will do it, but
>I can't figure how of the Aldus prep I need to get it to work
>properly with programs other than Pagemaker (I am using TeX).

Check out my pfb2pf program I just posted to alt.sources.  It's a 
filter that strips out the PFB key bytes, and hex-encodes the eexec
section.  After the conversion, its up to you get your applications
to download the fonts.

I wrote pfb2pf so I could play with ATM fonts with GhostScript.

-- 
J.T. Conklin    jtc@motcad.portal.com, ...!portal!motcad!jtc

d87-ewa@byse.nada.kth.se (Erik Wallin) (05/14/91)

Graeme McKinstry writes:
...
>Does anyone have a program that converts these PFB files into `standard'
>PostScript? Anything under VMS, Unix (Ultrix), DOS, or Mac would be 
...

I have made a small C-hack based on information in a document called
"Supporting downloadable Postscript fonts" by Adobe. The program is a
filter called pfb2ps. It will convert a .PFB file (which is a binary
format) to plain text.

As Graeme McKinstry points out, it is also possible to cut the font
from PageMaker's printer output. If you have more than one font though,
that's a real pain. I had >100 fonts to convert when I wrote pfb2ps
and no PC access.

The document mentioned above can be be obtained from Adobe's
fileserver. To get started send a mail, containing the single word help,
to <ps-file-server@adobe.com>. To get the document send
"send Documents supportingfonts.ps". The document is also called
Technical note #5040.

If anyone is interested in my little hack send me a mail with the
subject: "Yes, I want pfb2ps.c!". If more than 10 people reply I will
consider posting it to one of the xxx.xxx.source groups.

- Erik Wallin, student since 1987 at Computer Science and Engineering,
- Royal Institute of Technology, Stockholm, Sweden
- Internet:  d87-ewa@nada.kth.se

d87-ewa@byse.nada.kth.se (Erik Wallin) (05/20/91)

I got so many requests for pfb2ps that i decided to post it to
comp.sources.misc. It might take a while for it to show up there since
that group is moderated. In the meantime pfb2pf showed up in
alt.sources. You might just as well use that one. It looks more well
written than mine. (But is it as fast?? :-)

I won't reply all the mails I got unless they had questions or
comments in them. Please wait for comp.sources.misc or grab pfb2pf in
alt.sources.

I also got one request from a user who needed an executable for
pfb2ps. Unfortunately I can't arrange that since I don't have access
to a PC with a C-compiler. That's why I wrote pfb2ps in the first
place :-) If anyone does compile pfb2ps please let me know so that I
can send it to those who want it.

I posted an article similar to this one 4 days ago, but it must have
been lost somewhere on the way.

- Erik Wallin, student since 1987 at Computer Science and Engineering,
- Royal Institute of Technology, Stockholm, Sweden
- Internet:  d87-ewa@nada.kth.se