home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 2 / CDPD_II_2352.bin / scope / 126-150 / scopedisk137 / atcp / usingconvertafm.txt < prev    next >
Text File  |  1992-10-27  |  5KB  |  92 lines

  1. *****************************************************************
  2.  
  3.               Using Adobe Type with Professional Page
  4.  
  5. *****************************************************************
  6.  
  7. Part 2: Creating .metric Files Using ConvertAFM
  8.  
  9. After you unpacked your .sit file, or wherever you got your .AFMs from, you
  10. can use ConvertAFM to make .metric files, which are essential for printing
  11. to PostScript using PPage.
  12.  
  13. A PPage .metric file contains information for one to four typefaces,
  14. including character widths, or FontMetrics, underline specs, capital,
  15. ascender, and x-heights, and the typeface's PostScript name.  You can have
  16. one plain, bold, italic, and bolditalic form of a typeface in one .metric
  17. file, or any combination of styles.  You can have no fewer than ONE PLAIN
  18. typeface in one .metric file.
  19.  
  20. EG: You can have the regular and bold, regular and italic, regular, italic,
  21. and bolditalic, bold and bolditalic, and so on, and so on...  You just tell
  22. ConvertAFM which ones to use by giving filenames for the ones you want, and
  23. leaving the others blank.
  24.  
  25. Using ConvertAFM
  26.  
  27. You can run ConvertAFM from the CLI or Workbench.  Running from Workbench
  28. opens up a CON: window so it makes no difference where you run it.  You are
  29. asked for a path towards all the .AFMs (If you unpacked your .SIT to device
  30. DF1: you would give a path 'DF1:').  You are then asked for the plain, bold,
  31. italic, and bolditalic .AFMs you wish to include in the .metric file.
  32.  
  33. You are then asked for a new .metric filename and path name.  Just type in
  34. the name you want to call the file (Without the .metric extension).  If you
  35. exclude the path name, the new .metric file will be written to
  36. PPageUtil:Fonts for the sake of convenience.  If this has been relocated to
  37. a hard disk, it will still write to where you assigned it.
  38.  
  39. It then provides you with information on the .AFMs you selected.  A key
  40. thing to watch for is the typeface's encoding scheme.  If the typeface uses
  41. 'AdobeStandardEncoding', that's your cue to use Amiga Standard encoding when
  42. asked for the encoding scheme you want.  The scheme you select is carried
  43. over to the other styles of the typeface, so you need only give this
  44. information once.  Just type 'A' for Amiga standard, or 'F' for Font
  45. Specific.  If the typeface uses Apple Standard or Font Specific encoding,
  46. and the screen fonts came from a Macintosh, you should use Font Specific
  47. encoding.
  48.  
  49. Encoding is simply what ASCII values are given to what characters.  The
  50. first 127 characters are the same from Amiga to IBM to Mac, but the
  51. Alternate characters may be different.  Selecting Amiga Standard encoding
  52. will re-map the characters in the .metric file so that an 'AE' character is
  53. SHIFT-ALT-A (Amiga Standard) for example.
  54.  
  55. ********* Kerning *********
  56.  
  57. Kerning is the action of moving two characters closer or further apart to
  58. achieve a better fitting word.  For example, the characters 'Y' and 'e' must
  59. kern closer to fit better.  PPage supports automatic kerning when the
  60. 'Kerning' menu item is checkmarked.  PPage then looks in the .metric file
  61. for kerning information, and automatically kerns letterspaces on screen, and
  62. in PostScript.
  63.  
  64. Adobe's .AFMs also have kerning information (Most Adobe Typefaces have over
  65. 100 kerning pairs defined) and these are entered into the .metric file also.
  66. This capability of ConvertAFM has been tested with 'Adobe Garamond' which
  67. has over 600 (!) kerning pairs.  For better legibility, get used to using
  68. the automatic kerning features of PPage.  Combined with Adobe standard
  69. kerning, you're guaranteed to get the best on screen, and printed results!
  70.  
  71. Anyway, when the program is finished with one .AFM it then generates what is
  72. called a 'metrics vector'.  This is a string that is interpreted by PPage
  73. and holds all the typeface's information including sizes and kerning pairs.
  74. If some information (such as no kerning pairs) is omitted in the .AFM, it
  75. will write a '00' in its place.  This lets you create a compatible .metric
  76. file for any typeface that has either six characters with no kerning (like
  77. the Ornament typeface) to 256 characters with 65536 kerning pairs (Again,
  78. this has been tested with Adobe Garamond's 600 pairs) and in case of many
  79. kerning pairs, it attempts to compress the information.  Two .AFMs for Adobe
  80. Garamond and Adobe Garamond Italic with 600 kerning pairs each, resulting in
  81. two .AFMs of 30K each, compresses to one .metric file that's 15K.  Not bad,
  82. eh?
  83.  
  84. A .metric file can have one to four metrics vectors.  ConvertAFM creates one
  85. metric vector per .AFM and forms a .metric file automatically, once you've
  86. given it the four .AFMs, output filename, and encoding scheme.  When it's
  87. finished it ask you if you want to create another .metric file.  Just answer
  88. 'Y' or 'N' and you know the rest.
  89.  
  90. On to creating screen fonts!
  91.  
  92.