home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 517a.lha / FontManipulatorForDtp_v2 / doc / mkmetric.doc < prev    next >
Text File  |  1991-06-09  |  3KB  |  91 lines

  1. Metric file builder for PPage etc.
  2. ==================================
  3.  
  4. MkMetric V1.1 Copyright Adrian Aylward 1991
  5.  
  6. You may freely copy, use, and modify this program.  The source is included
  7. in the distribution.
  8.  
  9. This program builds a font metric file (.metric) in the format used by
  10. Professional Page.  Its input is one or more Adobe font metric (.afm)
  11. files.
  12.  
  13. Command line interface
  14. ======================
  15.  
  16. usage:
  17.  
  18.     mkmetric -options metricfile plain.afm,bold..,italic..,bolditalic..
  19.  
  20. options:
  21.  
  22.         -e encodingfile
  23.                 The character set encoding file.  Default
  24.                 "PSFonts:encoding.ps".
  25.  
  26.         -f      Use font specific encoding - for fonts such as "Symbol"
  27.                 where the character names are non-standard.
  28.  
  29.         -s      Set font specific encoding.  The encoding is read from the
  30.                 file, but the metric is flagged as using font specific
  31.                 encoding, so the font will not be recoded when it is used.
  32.  
  33.         -lnnn   LoChar (default 32).  Character codes below this value
  34.                 are ignored.
  35.  
  36.         -hnnn   HiChar (default 255).  Character codes above this value
  37.                 are ignored.
  38.  
  39. The "metricfile" argument is the name of the metric file to be created.
  40.  
  41. The second argument is a list of one or more Adobe font metric (.afm) file
  42. names.  The first is the plain version of the font, and cannot be omitted.
  43. Then in order follow the bold, italic, and bolditalic versions.  These are
  44. optional; if some are omitted then the commas should be left as necessary
  45. to indicate the positions of any subsequent entries.
  46.  
  47. for example:
  48.  
  49.     mkmetric fonts:Benguiat.metric Benguiat-Book.afm,Benguiat-Bold.afm
  50.  
  51.     mkmetric fonts:CooperBlack.metric CooperBlack.afm,,CooperBlack-Italic.afm
  52.  
  53.     mkmetric fonts:Bodoni.metric <...continued on next line...>
  54.         Bodoni-Roman.afm,Bodoni-Bold, Bodoni-Italic.afm,Bodoni-BoldItalic
  55.  
  56.     mkmetric fonts:BodoniPoster.metric Bodoni-Poster.afm
  57.  
  58.     mkmetric -f fonts:Symbol.metric Symbol.afm
  59.  
  60. AFM file format
  61. ===============
  62.  
  63. It should work for all normal font metric files - character width is purely
  64. horizontal (WX, not WXY), with a single writing direction, not a composite
  65. font.
  66.  
  67. N.B. some afm files may have the character names missing.  You can generate
  68. metrics from these using the "-f" option, but it is not possible to change
  69. the encoding.
  70.  
  71. Caveat
  72. ======
  73.  
  74. The metric file format was determined by reverse engineering.  So I can't
  75. guarantee its accurary.  However it appears to work OK.
  76.  
  77. Versions
  78. ========
  79.  
  80.     V1.0  03-May-91
  81.  
  82. The original.
  83.  
  84.     V1.1  06-May-91
  85.  
  86. New -s option, for fonts whose encoding is not the same as in their metric
  87. files.
  88.  
  89. Bugs fixed: syntax error with comments in encoding file.
  90.  
  91.