home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-2.iso / Unix / fonts / afmmaker.README < prev    next >
Encoding:
Text File  |  1992-02-05  |  3.1 KB  |  78 lines

  1.         AFMMAKER.PS
  2.  
  3. 1. General
  4.  
  5. To install a PostScript(R) font in a NeXT computer, You need at least an
  6. outline font and its AFM file.  The purpose of "afmmakrer.ps" is to
  7. help those who only have outline files to generate AFM files.  The 
  8. program generates a NeXT-acceptable bare-bone AFM file from an outline
  9. font.  
  10.  
  11. 2. References
  12.  
  13. This program is based on the information given in Chapter 5 of
  14. 'PostScript Language Reference Manual, Second Edition' and 'Adobe Font
  15. Metric Files Specification, Version 3.0'.  To utilize AFM files fully,
  16. please read those documentations.  The reference manual is available
  17. from technical bookstores or Adobe(R), and the specification is available
  18. from adobe documentation server.  
  19.  
  20. To get the specification:
  21.    send email to 'ps-file-server@adobe.com'
  22.    with Subject line 'send Documents AFMformat.ps' and no body message.
  23. To get the general information of ps-file-sever:
  24.    send email to 'ps-file-server@adobe.com'
  25.    with Subject line 'help' and no body message.
  26.  
  27. Also, Adobe archive already has all (or most) AFM files for its
  28. registered Type 1 fonts.  So, you can get them free.
  29.  
  30.  
  31. 3. Installing a font in NeXT.
  32.  
  33.   For the details of this, please refer to the online document,
  34. 'Preparing Fonts for NextStep' in
  35. "/NextLibrary/Documentation/NextDev/Notes/Fonts.rtf". 
  36.  
  37.   a. First, create a font directory for your new font.  If your new
  38. font is "ABC", then create a subdirectory, "ABC.font", in
  39. "/NextLibrary/Fonts", "/LocalLibrary/Fonts", or "~/Library/Fonts".
  40. Then, put your outline font file in "ABC.font" with filename "ABC".
  41.  
  42.   b. Then, create an afm file using 'afmmaker.ps'.  To use this
  43. program, you need another program called "psh" which also can be found
  44. in NeXT archives.  Use your favorite editor to put some necessary
  45. information into 'afmmaker.ps'.  You have to give the name of the
  46. font, encoding scheme, full name, family name, etc.  To find out the
  47. details of these, please refer to the AFM specification document.
  48. Actually, the specification says some of these information are
  49. optional.  However, 'buildafmdir' (see below) wants them.  
  50. In your shell window, please run the following command.
  51.  
  52.         psh afmmaker.ps > ABC.afm
  53.  
  54.  This will create a bare-bond AFM file with information about
  55. character widths and bounding boxes.  However, the file does not
  56. include any kerning information.  This, as well as other optional
  57. information, should be added by hands.  Check the AFM file if it
  58. contains  any error message starting with "%%[ Error:...." which means
  59. 'afmmaker.ps' has failed in some way.  
  60.  
  61.   c. Then, run 'buildafmdir /NextLibrary/Fonts' or
  62.                'buildafmdir /LocalLibary/Fonts' or
  63.                'buildafmdir ~/Library/Fonts' depending where the new font is.
  64.       Now, you can use the font.
  65.  
  66.  Remember that without screen bitmap fonts, the screen images of characters
  67. at a small point (i.e. < 20) wouldn't look good.
  68.  
  69.  
  70. 4. Copyright
  71.  
  72.   'afmmaker.ps' can be used and distributed freely as long as the original
  73. copyright information is intact.   There is ABSOLUTELY NO warranty or support.
  74. However,  please send your comments and error reports to 
  75. yu@pgate.boeing.com.  I will try to make necessary changes from time
  76. to time.
  77.  
  78.