home *** CD-ROM | disk | FTP | other *** search
/ Windows Shareware GOLD / NuclearComputingVol3No1.cdr / _bbs2 / f1526.zip / WPFMFIX.TXT < prev   
Text File  |  1991-09-11  |  7KB  |  165 lines

  1. NAME
  2.     wPFMfix - (Windows Version) modifies fontnames and attributes in a PFM file
  3.  
  4. USAGE
  5.     wPFMfix [PFM_directory]
  6.  
  7. DESCRIPTION
  8.     This is the Windows version of PFMfix, a utility that allows the user
  9.     to alter font attributes and names in a PFM file.  It is written in
  10.     Visual Basic, and requires the run-time Dynamic Link Library VBRUN100.DLL 
  11.     (available on Compuserv, GO MSLANG, LIB 6, VBRUN.ZIP).
  12.  
  13.     Many font converters do not generate PFM files that allow fonts of the
  14.     same family to appear under the same entry.  wPFMfix will FIX the PFM
  15.     file by allowing the user to specify the Windows Menu Name (or Family 
  16.     Name), the full PostScript font name, and bold and italic attributes.  
  17.     wPFMfix also allows the user to select the "Font Family" attribute 
  18.     (Roman, Swiss, Modern, Script, or Decorative).  There is also a 
  19.     Fixed/Variable Pitch field, but ATM currently expects Fixed Pitch, 
  20.     regardless of the actual font attribute.
  21.  
  22.     wPFMfix is also useful for grouping font families with more than four (4)
  23.     fonts.  One way to do this will be presented below.
  24.  
  25.     The advantages of fixing the PFM file are:
  26.     1. Fewer entries in the pull-down font menu in Windows Applications.
  27.     2. Clicking on Bold/Italic will automatically pull in the correct
  28.        fonts.
  29.  
  30.     General Rules for Modifying PFM files:
  31.  
  32.         1. All fonts of the same family MUST have the same Window Menu Name.
  33.     2. The PostScript font name MUST match the name in the corresponding
  34.         PFB file.  (This is usually the case, and do not have to 
  35.         be changed.)
  36.     3. The bold and italic attributes obviously must match the font. 
  37.         (Nevertheless, many font converters do not set them correctly.)
  38.  
  39.     Multiple copies wPFMfix may be run at the same time without conflict
  40.     (I hope).  This aids in changing multiple fonts of the same family to
  41.     make sure fields match, especially when running in high resolution mode
  42.     (800x600 or 1024x768).
  43.  
  44. INSTALLATION
  45.     Three (3) files are included in this archive
  46.  
  47.     wPFMfix.TXT - This file
  48.     wPFMfix.exe - Main executable file
  49.         wPFMfix.DLL - Dynamic Link Library for wPFMfix
  50.  
  51.     In addition to the above files, you need the Visual Basic run-time
  52.     Dynamic Link Library, VBRUN100.DLL (Compuserve, GO MSLANG, LIB 6, 
  53.     VBRUN.ZIP).  VBRUN100.DLL and wPFMfix.DLL MUST be on your PATH, or in
  54.     the WINDOWS directory.  wPFMfix.exe can be placed anywhere.
  55.  
  56.     To install wPFMfix as a permanent icon in a Program Manager Group,
  57.     select the group, select Program Managers "File" menu, click on "New",
  58.     choose "Program Item".  Type "wPFMfix" as the "Description", and type
  59.     the full path to the wPFMfix.exe for the "Command Line".  You can add
  60.     a PFM Start-up directory on the command line.  Example:
  61.     Command Line: c:\bin\wPFMfix.exe c:\psfonts\pfm
  62.     That's it.
  63.  
  64. EXAMPLE
  65.     We have 4 fonts of the same family listed as:
  66.     op______.pfm    Optima
  67.     opo_____.pfm    Optima-Oblique
  68.     opb_____.pfm    Optima-Bold
  69.     opbo____.pfm    Optima-BoldOblique
  70.  
  71.     Set the following names/attributes:
  72.       FILE        MenuName    PSName        Bold/Italic    Family
  73.       op______.pfm    Optima        Optima        (none)        Swiss
  74.       opo_____.pfm    Optima        Optima-Oblique    Italic        Swiss
  75.       opb_____.pfm    Optima        Optima-Bold        Bold        Swiss
  76.       opbo____.pfm    Optima        Optima-BoldOblique    (both)        Swiss
  77.  
  78.     Now let's consider a font with more than 4 fonts:
  79.     futcl___.pfm    FuturaCondensedLight
  80.     futclo__.pfm    FuturaCondensedLight-Oblique
  81.     futc____.pfm    FuturaCondenced
  82.     futco___.pfm    FuturaCondenced-Oblique    
  83.     futcb___.pfm    FuturaCondenced-Bold
  84.     futcbo__.pfm    FuturaCondenced-BoldOblique
  85.  
  86.     We'll make two menu entries: FuturaCondLight and FuturaCond
  87.     The trick is to duplicate futc____.pfm and futco___.pfm, but with
  88.     the bold attribute set.  You can just read in futc____.pfm (futco___.pfm),
  89.     Click on "Bold", change the name to futc1___.pfm (futco1___.pfm), and
  90.     click "Save".  The resulting files look like: (leaving out PSName)
  91.  
  92.       FILE        MenuName            Bold/Italic    Family
  93.  
  94.       futcl___.pfm    FuturaCondLight        (none)        Swiss
  95.       futclo__.PFM    FuturaCondLight        Italic        Swiss
  96.       futc1___.pfm    FuturaCondLight        Bold        Swiss
  97.       futco1__.pfm    FuturaCondLight        (both)        Swiss
  98.  
  99.       futc____.pfm    FuturaCond        (none)        Swiss
  100.       futco___.pfm    FuturaCond        Italic        Swiss
  101.       futcb___.pfm    FuturaCond        Bold        Swiss
  102.       futcbo__.pfm    FuturaCond        (both)        Swiss
  103.  
  104.     That's all there is to it.
  105.  
  106. OPTIONS
  107.     [PFM_directory]
  108.     You can give a PFM directory for wPFMfix to start up in.  This is
  109.     useful when you have a main PFM directory where all you PFM files
  110.     are kept.  When you create the icon in Program Manager, the command
  111.     line could read: wPFMfix c:\psfonts\pfm
  112.  
  113. FIELDS
  114.     MenuName
  115.     This is the name you want to appear in your font menus.  Four fonts
  116.     belonging to the same family should share this name.  (See above
  117.     example).
  118.     PSName
  119.     This is the PostScript fontname for the font.  Unless you also change
  120.     the name in the .PFB file, you should not touch this field.  It is
  121.     provided as information.
  122.     Bold
  123.     Check this for fonts that are to be the "Bold" or "BoldItalic" font
  124.     of the family specified with "MenuName".
  125.     Italic
  126.     Check this for fonts that are to be the "Italic" or "BoldItalic" font
  127.     of the family specified with "MenuName".
  128.     Font Family
  129.     There are five choices.  This field is used by Windows for finding
  130.     alternate fonts when a specified one is not available.  Additionally,
  131.     choosing "Decorative" prevents remapping the font with the Windows
  132.     character set.
  133.         Roman    Serif fonts such as Times, Bookman, etc
  134.         Swiss    SansSerif fonts such as Helvetica, Avant-Garde, etc
  135.         Modern    Computer type such as Courier, Elite, etc
  136.         Script    Script fonts such as Present-Script, Snell-Roundhand
  137.         Decorative    Symbol fonts such as Symbol, ZapfDingbats, etc
  138.     Pitch
  139.     You should set this as "Fixed", although setting it to "Variable" does
  140.     not seem to make a difference with ATM.  As least the ATM provided
  141.     fonts do not alter this field.
  142.  
  143. NOTE
  144.     There is no online Help at the moment, but hopefully, it's intuitive
  145.     enough to use.  If you have any problems, or comments, I can be reached
  146.     at:
  147.  
  148.     Vincent Chen
  149.     3083 Rasmus Circle
  150.     San Jose, CA 95148
  151.     (408) 270-6024
  152.     CIS: 76636,415
  153.  
  154. Please feel free to share wPFMfix with anyone you want if you find it helpful.
  155. (Please distribute all the files included in this archive.)
  156. If you REALLY find it helpful, a $5 contribution would very much be 
  157. appreciated.
  158.  
  159. This program is provided AS IS, no warranties, etc.  Please consider 
  160. this the standard disclaimer.
  161.  
  162. Copyright (c) 1991 Vincent Chen.  All rights reserved.
  163. Portions (Visual Basic) are a Copyright (c) 1987-1991 of Microsoft 
  164. Corporation.  All rights reserved.
  165.