home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / adobeenc.zoo / encrypt.shar / README < prev    next >
Text File  |  1990-10-27  |  3KB  |  66 lines

  1. Adobe Type 1 Font Decryption
  2.  
  3. Chris B. Sears
  4. Digital Equipment, WSE
  5. May 31, 1990
  6.  
  7. These utilities decrypt an Adobe Type 1 font and leave a raw PostScript
  8. file as
  9. a result.  Most of this procedure is documented in "Adobe Type 1 Font Format"
  10. available from Adobe Systems.
  11.  
  12. Converting a Type 1 font program into the outlines is in 2 parts.
  13. It assumes that you have a Macintosh, a Unix system and Display Postscript.
  14.  
  15. 1. Using un-adobe, which is in hqx format, convert the Type 1 font into
  16.    a eexec encoded text file.  Un-adobe.hqx was snarfed off of SUMEX.
  17.    I can't remember who wrote it but you can find that out when you run
  18.    the program.
  19. 2. Using transform, a shell script driver, convert the results into a list
  20.    of simple PostScript programs.
  21.  
  22. Here is a description of the files in this directory:
  23.  
  24.     transform: a shell script that uses eexec, chars and DPStest to take
  25.         an ASCII PostScript PostScript file with an encrypted Adobe Type 1
  26.         font and generate raw PostScript for the font
  27.     Makefile: a make(1) description file for compiling exec.c and chars.c
  28.     eexec.c: decrypts a font file encrypted for the eexec operator
  29.     chars.c: decrypts a font file of encrypted CharStrings.  chars couldn't
  30.         easily be written to accept standard input because it repositions
  31.         itself with fseek() after a charstring has been decrypted.
  32.     header.ps: a PostScript wrapper that removes font hints, squashes
  33.         procedures and transforms operators and operands
  34.     trailer.ps: a PostScript wrapper to send the filtered PostScript to the
  35.         standard output
  36.     un-adobe.hqx: a Macintosh application that converts an Adobe PostScript
  37.         font into an ASCII file for transfer to a UNIX system
  38.  
  39. To decrypt a Type 1 font first transform the Adobe font file into a text file
  40. on a Macintosh.  This can be done with the Macintosh program in unadobe.hqx.
  41. Next transfer the encrypted PostScript file from the Macintosh to your UNIX
  42. system with a file transfer utility like NCSA Telnet or Kermit.  Be sure to
  43. transfer this file in text mode and *not* binary mode).  Once the font file
  44. is on your UNIX system, you can perform the decryption with the shell script
  45. transform.
  46.  
  47. transform runs eexec and chars, wraps the output with header.ps and trailer.ps
  48. and then runs it through Display PostScript.  To interact with Display
  49. PostScript we use dpstest(1X) found in /usr/examples/dps/dpstest in the Ultrix
  50. release.  The result is a flattened simple PostScript file containing only
  51. the following operators:
  52.  
  53.     currentpoint
  54.     closepath
  55.     rcurveto
  56.     rlineto
  57.     rmoveto
  58.     moveto
  59.     div
  60.     def
  61.     { }
  62.  
  63. view_header.ps and view_trailer.ps are useful for displaying the font using
  64. Display PostScript. Concatenate view_header.ps, the font file and
  65. view_trailer.ps together.  The results can be viewed with DPS.
  66.