home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 12 Font / 12-Font.zip / T1FONT.ZIP / t1font.doc < prev    next >
Text File  |  1991-10-14  |  3KB  |  76 lines

  1. t1font - Adobe Type 1 Font Utility
  2.  
  3. Version 1.0   14 Oct 1991
  4. -------------------------
  5. This is the first version of this code.  Tested using ATM and ISIL
  6. Gothic fonts (all from Adobe).
  7.  
  8. This utility allows the conversion between various forms of the
  9. Adobe Type 1 fonts.  Type 1 fonts are used by PostScript and Adobe
  10. Type Manager (ATM).  The three forms are:
  11.  
  12. 1. Binary   - (.pfb) This is the compressed and encrypted form of the
  13.               font normally used on the PC.  The encrypted parts of
  14.               the font are in binary.
  15.  
  16. 2. ASCII    - (.pfa) This is the form of font which is sent to a
  17.               PostScript printer, and used on most Unix systems.  The
  18.               encrypted parts are kept in hex.
  19.  
  20. 3. Expanded - (.pfx) This form is private to t1font, and decrypts the
  21.               data to be readable by humans.  This also allows the
  22.               font information to be modified.
  23.  
  24. Syntax:
  25.     t1font  infile  outfile  -abx
  26.     -a = Output ascii (hex) font
  27.     -b = Output binary (compressed) font
  28.     -x = Output expanded (decrypted) font
  29.  
  30.     t1font can tell what format the input file is in, so you just tell
  31.     it what format you want the output to be in.  Only one of the file
  32.     options can be specified.
  33.  
  34.     If no option is specified, the default action is to convert
  35.     expanded and ASCII fonts to binary, and to convert binary fonts
  36.     to ASCII.
  37.  
  38. *** NOTE *** The fact that this code allows you to decrypt and modify
  39. type 1 fonts does not mean you have the legal right to do so.  You
  40. should check the licence agreements for the font to determine if this
  41. is a valid thing to do.
  42.  
  43. The information about what the font means is derived from "Adobe Type
  44. 1 Font Format", available at your local book store.
  45.  
  46. The only real way to parse a type 1 font is with a PostScript (forth)
  47. parser.  This is a simplistic parser, but it matches the ATM parser
  48. for the most part.
  49.  
  50. The expanded mode parser corrects charstring lengths, but does very
  51. little other checking.  The fact that the conversion works does not
  52. mean the font is any good.
  53.  
  54. Roundtrip conversions starting with a font created by t1font (and hence
  55. triple conversions) should give exact results.  Conversions of fonts
  56. created by others will not give exact results because of differences
  57. in insertion of CR and LF characters, and in the differing random
  58. characters stuffed in the datastream.
  59.  
  60. Notes:
  61.     1. This code was started as a excercise in expanding type 1 fonts
  62.        after I got the Adobe Type 1 Font Format book.  I expanded it
  63.        to convert between all formats.
  64.  
  65.     2. I have no plans to add any more functions, but I will fix bugs
  66.        as I (or others) find them.  The most likely area of problems
  67.        is in the parser for expanded form.  Parsers for the other forms
  68.        may also be a problem, since they are much more simplistic than
  69.        a full PostScript parser.
  70.  
  71.     3. The source is included as part of this package.  Do what you
  72.        like with it (like make a DOS executable).
  73.  
  74. Ken Borgendale
  75. kwb@betasvm2.vnet.ibm.com
  76.