home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / fonts / rentt1.zip / RENAMETT.DOC < prev    next >
Text File  |  1992-05-21  |  9KB  |  191 lines

  1.                                                                     21 May 1992
  2.  
  3.                                  RENAMETT 1.01
  4.  
  5.            Copyright 1992 by Rufus S. Hendon.  All rights reserved.
  6.  
  7.  
  8. What RENAMETT does
  9. ------------------
  10.  
  11.    RENAMETT is a DOS program (not a Windows program) with the aid of which you
  12. can change the name by which Windows 3.1 refers to a TrueType font.  To
  13. accomplish this, RENAMETT alters the specifications of the name in the font
  14. itself and writes the modified font into a new file.
  15.  
  16.    There are three names that are affected by the operation of RENAMETT.
  17. These are (1) the "font family name", e.g. "Arial" or "Bookman Old Style",
  18. (2) the "font subfamily name", e.g. "Regular" or "Bold", and (3) the "full
  19. font name".  The TrueType convention is for the full font name to consist of
  20. the font family name followed by the font subfamily name, e.g. "Arial Bold",
  21. except that if the font subfamily name is "Regular" the full font name is
  22. identical with the font family name, e.g. "Arial" for Regular Arial.  (A font
  23. that isn't Bold, Italic, or Bold Italic is "Regular".)
  24.  
  25.    TrueType fonts specify names for both the Microsoft and the Macintosh
  26. "platforms" and also give variants of the names for different languages.
  27. RENAMETT changes only the "U.S. English" names for the Microsoft platform.  If
  28. the file produced by RENAMETT were used on a Macintosh, the original names
  29. would be in effect.  If you are running Windows with a different country and
  30. language selected, the names will likewise be the original names (in the form
  31. specified in the font for the particular language).
  32.  
  33.  
  34. Obligatory arguments
  35. --------------------
  36.  
  37.    RENAMETT can operate either interactively or automatically.  In either
  38. mode, it requires two arguments.  The first is the name of the file containing
  39. the TrueType font the name of which is to be changed.  The second argument is
  40. the name for the file into which the modified font is to be written.  Suppose,
  41. for example, that you want to modify the SWFTE font called "Copperfield" to
  42. change the name by which the font is shown on Windows font menus to something
  43. other than "Copperfield".  The font is stored in the file CPBSWFTE.TTF in your
  44. \WINDOWS\SYSTEM directory.  If you want the modified font to be stored in
  45. COOPERBL.TTF in the root directory of your D: drive, you would issue this
  46. command:
  47.  
  48.              renamett \windows\system\cpbswfte.ttf d:\cooperbl.ttf
  49.  
  50. (With only these two arguments, RENAMETT would run in interactive mode.)
  51.  
  52.  
  53. Interactive operation
  54. ---------------------
  55.  
  56.    To run RENAMETT in interactive mode, invoke it with only the two
  57. obligatory arguments.  After it has loaded the TrueType font, RENAMETT shows
  58. you the three existing names and prompts you to replace them.  If you want to
  59. follow the TrueType convention, you will retain the original font subfamily
  60. name and change only the font family name and the font family name portion of
  61. the full font name.
  62.  
  63.    Let's say you want to change the name of the font in CPBSWFTE.TTF from
  64. "Copperfield" to "Cooper Black".  To do this interactively, you would issue
  65. the command with only the two file names as arguments:
  66.  
  67.              renamett \windows\system\cpbswfte.ttf d:\cooperbl.ttf
  68.  
  69. Your interaction with RENAMETT would then go like this:
  70.  
  71.         Current font family name: Cooperfield
  72.         Enter new font family name: Cooper Black
  73.         Current font subfamily name: Regular
  74.         Enter new font subfamily name: Regular
  75.         Current full font name: Copperfield
  76.         Enter new full font name: Cooper Black
  77.  
  78. After you responded to the last prompt, RENAMETT would modify the font
  79. accordingly and write the result into D:\COOPERB.TTF.
  80.  
  81.  
  82. Automatic operation
  83. -------------------
  84.  
  85.    If you specify the new font family name on the command line following the
  86. second argument, RENAMETT will operate in automatic mode, without prompting
  87. you for new names.  In this mode, RENAMETT changes the original font family
  88. name to the one you specify, retains the original font subfamily name, and
  89. creates a new full font name according to the TrueType convention.
  90.  
  91.    For the "Copperfield" to "Cooper Black" example, the command would take this
  92. form:
  93.  
  94.       renamett \windows\system\cpbswfte.ttf d:\cooperbl.ttf Cooper Black
  95.  
  96. If the original font subfamily name is "Regular", RENAMETT would write into
  97. D:\COOPERBL.TTF a modified version of the font with "Cooper Black" as the
  98. font family name, "Regular" as the font subfamily name, and "Cooper Black" as
  99. the full font name.
  100.  
  101.    If \WINDOWS\SYSTEM\BAISWFTE.TTF contains a font with "Baskerton" as the
  102. font family name, "Italic" as the font subfamily name, and "Baskerton Italic"
  103. as the full font name, execution of the command
  104.  
  105.         renamett \windows\system\baiswfte.ttf d:\baskit.ttf Baskerville
  106.  
  107. would write into D:\BASKIT.TTF a modified version of the font with
  108. "Baskerville" as the font family name, "Italic" as the font subfamily name, and
  109. "Baskerville Italic" as the full font name.
  110.  
  111.    Because operation is automatic, this mode is suitable for use in a batch
  112. file when you want to process a series of TrueType fonts.  The following
  113. batch file, for instance, would modify the four SWFTE "Baskerton" fonts and
  114. the four SWFTE "Carnegie" fonts:
  115.  
  116.      renamett \windows\system\baaswfte.ttf d:\baskrg.ttf Baskerville
  117.      renamett \windows\system\babswfte.ttf d:\baskbd.ttf Baskerville
  118.      renamett \windows\system\baiswfte.ttf d:\baskit.ttf Baskerville
  119.      renamett \windows\system\batswfte.ttf d:\baskbi.ttf Baskerville
  120.      renamett \windows\system\craswfte.ttf d:\goudyrg.ttf Goudy Old Style
  121.      renamett \windows\system\crbswfte.ttf d:\goudybd.ttf Goudy Old Style
  122.      renamett \windows\system\criswfte.ttf d:\goudyit.ttf Goudy Old Style
  123.      renamett \windows\system\crkswfte.ttf d:\goudybk.ttf Goudy Old Style
  124.  
  125.  
  126. Installing modified fonts in Windows
  127. ------------------------------------
  128.  
  129.    If a font is already installed in Windows, you should follow a procedure
  130. such as this in order to substitute the modified font for the original font:
  131.  
  132.    (1) Make sure you have a backup copy of the original .TTF file, in case
  133. you later want to revert to it.  (It isn't necessary to back up the .FOT file,
  134. since the Windows font installer can recreate it.)
  135.  
  136.    (2) Copy the file created by RENAMETT to a directory other than
  137. \WINDOWS\SYSTEM.
  138.  
  139.    (3) Start Windows and use the Fonts module of Control Panel to remove the
  140. installed font.  (This causes the reference to it in WIN.INI to be removed and
  141. also causes the .FOT file to be deleted from \WINDOWS\SYSTEM.)  If you want to
  142. recover the storage occupied by the .TTF file, check the box that requests that
  143. the font file be deleted.
  144.  
  145.    (4) Select "Add ...".  On the "Add Fonts" screen that this brings up,
  146. specify the directory where you put the modified .TTF file in step 2.  The name
  147. of the font (i.e. its new full font name) should appear.  Click on it to select
  148. it and then click the OK button to install the font.  The font installer takes
  149. you back to the "Fonts" screen where the installed fonts are shown; the name
  150. of the newly installed font will be added to the list and highlighted, and a
  151. sample of it will be displayed below the list.  That's all there is to it.  The
  152. new font is immediately available -- you don't have to exit from Windows and
  153. then restart it.
  154.  
  155.  
  156. Ascertaining the names specified in a TrueType font
  157. ---------------------------------------------------
  158.  
  159.    RENAMETT can also be used to find out what the font family, font subfamily,
  160. and full font names specified in a TrueType font are, without modifying them.
  161. For this purpose, invoke RENAMETT with a single argument giving the name of the
  162. font file.  If, for example, you issue the command
  163.  
  164.                       renamett \windows\system\arial.ttf
  165.  
  166. RENAMETT will show you the three names as they are given in the font.  No
  167. changes will be made to the font and no new file will be produced.
  168.  
  169.  
  170. Possible problems
  171. -----------------
  172.  
  173.    If, in step 4 of the installation procedure, the name of the font doesn't
  174. appear on the "Add Fonts" screen, or if the name of the new font doesn't appear
  175. in the list of installed fonts on the "Fonts" screen after you've supposedly
  176. installed it, or if the sample displayed for the font is obviously garbled or
  177. if no sample is shown, the font installer is telling you that there's something
  178. wrong with the new font.  This indicates that RENAMETT has made some mistake in
  179. taking the font apart and putting it together again as a result of which the
  180. modified font is malformed.  This won't be surprising, because this is a very
  181. early version of RENAMETT and I have only tested it on a limited number of
  182. fonts.  If you encounter this problem, I'll be glad to try to track down the
  183. cause, but to do so I'll have to have a copy of the original font to work with.
  184.  
  185.  
  186.                                   Rufus S. Hendon
  187.                                   804 Still Hill Road
  188.                                   Hamden, CT 06518
  189.  
  190.                                   CompuServe userID: [73250,2674]
  191.