home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / dmpfot10.zip / DUMPFOT.DOC next >
Text File  |  1993-01-06  |  11KB  |  168 lines

  1.                                                                  6 January 1993
  2.  
  3.                                  DumpFOT 1.00
  4.  
  5.            Copyright 1993 by Rufus S. Hendon.  All rights reserved.
  6.  
  7.  
  8.    DumpFOT extracts the descriptive information about a TrueType font that is
  9. contained in its .FOT file.  A .FOT file is created by the "Fonts" module of
  10. Control Panel whenever it installs a TrueType font from a .TTF file.
  11.  
  12.    DumpFOT takes two arguments.  The first is a file specification, which may
  13. include wildcards; it must specify one or more TrueType .FOT files.  The
  14. second argument is the name for the file into which the output of the program
  15. is to be written.
  16.  
  17.    DumpFOT reads the .FOT files matching the file specification given as the
  18. first argument.  For each .FOT file it writes into the output file a section
  19. giving the information about the font contained in the .FOT file.
  20.  
  21.    The following command, for example, would cause DumpFOT to process all the
  22. .FOT files in the \WINDOWS\SYSTEM directory with names beginning with BOOKOS,
  23.  writing the output into D:\BOOKOS.DMP:
  24.  
  25.                dumpfot \windows\system\bookos*.fot d:\bookos.dmp
  26.  
  27.    If the arguments are followed by the option '/O' or '/o', each item of
  28. information will be preceded by its offset in the .FOT file, in hexadecimal
  29. form.  These offsets may be useful if you wish to modify a .FOT file using a
  30. hex editor.
  31.  
  32.    Here are fuller explanations of the font characteristics reported by
  33. DumpFOT (quotations are from Microsoft Windows Version 3.1 Software Development
  34. Kit, Programmer's Reference, Volume 4: Resources, pp. 50-53):
  35.  
  36.      Type:  The type of font file.  All .FOT files I have seen have 03 hex as
  37.           the low-order byte; the fact that the low-order bit of this byte is
  38.           1 indicates that the font is a vector rather than a bitmap font.
  39.           The significance of the fact that bit 1 of this byte is also 1 is
  40.           not explained in the Programmer's Reference.  In .FOT files the high-
  41.           order byte indicates the style of the font:  00 or 40 hex for
  42.           regular, 01 hex for italic, 20 hex for bold, and 21 hex for bold
  43.           italic.  I don't know what the difference is between the two variants
  44.           for regular, 00 and 40 hex.
  45.      Font units per em:  This item is officially labeled "Point size" and is
  46.           supposedly "the nominal point size ... at which this character set
  47.           looks best."  In .FOT files, however, it is the number of units
  48.           ("font units") per em, where em is the width and height of an
  49.           imaginary square (the "em square") within which characters are
  50.           designed (characters may, however, extend beyond the em square).  For
  51.           original TrueType fonts, the number of font units per em is normally
  52.           2048.  For fonts originally designed as PostScript Type 1 fonts, the
  53.           number is usually 1000.
  54.      Vertical and horizontal resolution:  The nominal vertical and horizontal
  55.           resolution, in dots per inch, at which the character set was
  56.           digitized.  In .FOT files, 72 x 72 seems to be standard.  These
  57.           values have no relevance to the use of the font for printing.
  58.      Ascent:  This is "the distance from the top of a character-definition cell
  59.           to the base line" of the font.  (The base line is the line on which
  60.           letters are aligned vertically; the bottom of letters without
  61.           descenders sits on the base line.)  The "character-definition cell"
  62.           is presumably the same as the "grid" the height of which is specified
  63.           by "Grid height".  Ascent is expressed in font units.
  64.      Internal leading:  Leading is space that separates successive lines of
  65.           type.  Internal leading is leading that is included as part of the
  66.           design of characters.  It occupies the upper portion of the grid
  67.           the height of which is given by "Grid height".  This space is blank
  68.           for ordinary characters, but accent marks may fall within it.
  69.           Internal leading is measured in font units.
  70.      External leading:  The recommended amount of extra leading to be added
  71.           between lines of type, expressed in font units.
  72.      Italic:  A flag indicating whether the font is italic (oblique).
  73.      Underlined:  A flag indicating whether the font has underlining as part of
  74.           the character designs.
  75.      Strikeout:  A flag indicating whether the font has a strikeout line as
  76.           part of the character designs.
  77.      Weight:  A number in the range 1-1000 indicating the weight of the font.
  78.           Higher numbers indicate "heavier" fonts, with thicker strokes and a
  79.           blacker appearance on the page; normally only 0 (indicating that the
  80.           weight is unspecified) and multiples of 100 are used.  The convention
  81.           in .FOT files is for weight 400 to be specified for the non-bold
  82.           styles (regular and italic) of a given typeface and weight 700 for
  83.           the bold styles (bold and bold italic).  This is unrelated to the
  84.           overall weight of a typeface:  the regular styles of both Helvetica
  85.           and HelveticaBlack, for instance, would be given weight 400, even
  86.           though regular HelveticaBlack is a heavier font than regular
  87.           Helvetica.  Deviations from this convention are sometimes found.  For
  88.           example, Monotype's Bookman Old Style (included in the Microsoft
  89.           TrueType Font Pack) has .FOT files in which the weight of the non-
  90.           bold styles is 300 and the weight of the bold styles is 600.
  91.      Character set:  A number identifying the character set.  The only values
  92.           you're likely to see are 0 for the ANSI character set (i.e. the
  93.           Windows character set), 2 for "symbol" character sets (such as those
  94.           of the Symbol and Wingdings fonts), and 255 for the OEM character set
  95.           (i.e. the DOS character set).
  96.      Grid width and grid height:  The dimensions of the grid on which the
  97.           characters of the font were designed, expressed in font units.  In
  98.           .FOT files, grid width is always 0.  The grid height is such that all
  99.           character designs fit within it; the space specified as internal
  100.           leading is included in the grid height.
  101.      Pitch and family:  If this number is odd, the font is variable-pitch (i.e.
  102.           proportional-spaced); otherwise it is fixed-pitch.  (Most TrueType
  103.           typefaces are proportional-spaced, but some, such as Courier New and
  104.           Lucida Sans Typewriter, are fixed-pitch.)  The four high bits (the
  105.           first hex digit) classify the font as belonging to one of six
  106.           Windows-defined families that "describe the general look of a font."
  107.           The six families are labeled "Don't care" (any font fits this
  108.           category), "Roman" (proportional-spaced fonts with serifs), "Swiss"
  109.           (sans-serif proportional-spaced fonts), "Modern" (fixed-pitch fonts),
  110.           "Script" (cursive or script fonts), and "Decorative" (novelty fonts).
  111.      Average width:  For proportional-spaced fonts, the width of "X".  For
  112.           fixed-pitch fonts, the width of every character in the font.
  113.      Maximum width:  The maximum width of any character in the font.  (For
  114.           fixed-pitch fonts, you would expect from the definitions that maximum
  115.           width would be the same as average width, but it isn't.  I don't know
  116.           why the two are different.)
  117.      First character:  The first character code defined in the font.
  118.      Last character:  The last character code defined in the font.
  119.      Default character:  This is "the character to substitute whenever a string
  120.           contains a character that is out of range" (i.e. the range defined by
  121.           "First character" and "Last character").  The number given for
  122.           "Default character" is the difference between the code of the default
  123.           character and that of the first character, so the actual code of the
  124.           default character = "First character" + "Default character".
  125.      Break character:  The character "that defines word breaks for word
  126.           wrapping and word-spacing justification."  The number given is the
  127.           difference between the code of the break character and that of the
  128.           first character, so the actual code of the default character =
  129.           "First character" + "Break character".
  130.  
  131. ===============================================================================
  132.                                     NOTICE
  133.  
  134.    DumpFOT is a copyrighted program, the distribution and use of which are
  135. controlled by the author and copyright owner, Rufus S. Hendon.  It is not in
  136. the public domain.
  137.  
  138.    You may use the DUMPFOT program and this documentation file for your own
  139. private, non-commercial purposes; there is no registration fee or other type of
  140. charge for such use.  You may give copies of the program to other individuals
  141. for their private, non-commercial use, provided that such copies include both
  142. the program file (DUMPFOT.EXE) and this documentation file (DUMPFOT.DOC) in
  143. unaltered form and provided that you neither request nor accept remuneration in
  144. any form for the copies.
  145.  
  146.    Commercial distribution of DumpFOT is forbidden unless there has been prior
  147. approval by the copyright owner and the payment of a license fee.  Prohibited
  148. forms of commercial distribution include the bundling of the program with
  149. commercially distributed products such as software and books, the distribution
  150. of the program as part of a "premium" for magazine subscribers, the
  151. distribution of the program by companies that sell collections of "freeware"
  152. and "shareware" programs on disks, and the posting of the program on electronic
  153. bulletin boards maintained by vendors of commercial products in support of
  154. those products.
  155.  
  156.    DUMPFOT is made available without warranty of any kind.  The copyright
  157. owner is not liable for any damages resulting from the use of the program.
  158.  
  159. ===============================================================================
  160.  
  161.    Communications may be sent to me at this address:
  162.  
  163.                              Rufus S. Hendon
  164.                              804 Still Hill Road
  165.                              Hamden, CT 06518-1105
  166.  
  167. Electronic mail may be sent to userid 73250,2674 on CompuServe.
  168.