home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
adobeenc.zoo
/
encrypt.shar
/
README
< prev
next >
Wrap
Text File
|
1990-10-27
|
3KB
|
66 lines
Adobe Type 1 Font Decryption
Chris B. Sears
Digital Equipment, WSE
May 31, 1990
These utilities decrypt an Adobe Type 1 font and leave a raw PostScript
file as
a result. Most of this procedure is documented in "Adobe Type 1 Font Format"
available from Adobe Systems.
Converting a Type 1 font program into the outlines is in 2 parts.
It assumes that you have a Macintosh, a Unix system and Display Postscript.
1. Using un-adobe, which is in hqx format, convert the Type 1 font into
a eexec encoded text file. Un-adobe.hqx was snarfed off of SUMEX.
I can't remember who wrote it but you can find that out when you run
the program.
2. Using transform, a shell script driver, convert the results into a list
of simple PostScript programs.
Here is a description of the files in this directory:
transform: a shell script that uses eexec, chars and DPStest to take
an ASCII PostScript PostScript file with an encrypted Adobe Type 1
font and generate raw PostScript for the font
Makefile: a make(1) description file for compiling exec.c and chars.c
eexec.c: decrypts a font file encrypted for the eexec operator
chars.c: decrypts a font file of encrypted CharStrings. chars couldn't
easily be written to accept standard input because it repositions
itself with fseek() after a charstring has been decrypted.
header.ps: a PostScript wrapper that removes font hints, squashes
procedures and transforms operators and operands
trailer.ps: a PostScript wrapper to send the filtered PostScript to the
standard output
un-adobe.hqx: a Macintosh application that converts an Adobe PostScript
font into an ASCII file for transfer to a UNIX system
To decrypt a Type 1 font first transform the Adobe font file into a text file
on a Macintosh. This can be done with the Macintosh program in unadobe.hqx.
Next transfer the encrypted PostScript file from the Macintosh to your UNIX
system with a file transfer utility like NCSA Telnet or Kermit. Be sure to
transfer this file in text mode and *not* binary mode). Once the font file
is on your UNIX system, you can perform the decryption with the shell script
transform.
transform runs eexec and chars, wraps the output with header.ps and trailer.ps
and then runs it through Display PostScript. To interact with Display
PostScript we use dpstest(1X) found in /usr/examples/dps/dpstest in the Ultrix
release. The result is a flattened simple PostScript file containing only
the following operators:
currentpoint
closepath
rcurveto
rlineto
rmoveto
moveto
div
def
{ }
view_header.ps and view_trailer.ps are useful for displaying the font using
Display PostScript. Concatenate view_header.ps, the font file and
view_trailer.ps together. The results can be viewed with DPS.