home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / Bonus / URDUSECTION / WP51 / TTINSTAL.TXT < prev    next >
Encoding:
Text File  |  1993-02-18  |  6.3 KB  |  201 lines

  1. This file describes the format and use of the TTINSTAL.INI file.
  2.  
  3.    You do NOT need this information in order to use TrueType for WordPerfect!
  4.    --------------------------------------------------------------------------
  5.  
  6. If, however, you need to customize the typface installation, modify this
  7. file as described below, then re-install the typefaces.
  8.  
  9.     +---------------------------------------------------------+
  10.     | You should be thorougly familiar with WordPerfect's PTR |
  11.     | program, and the innerworkings of WordPerfect printer   |
  12.     | drivers before attempting to modify this file.  You     |
  13.     | should also be familiar with the internal format of a   |
  14.     | TrueType font.  Contact WordPerfect and/or Microsoft for|
  15.     | more information on these subjects.              |
  16.     |                                  |
  17.     | Due to it's highly technical nature, LaserTools         |
  18.     | cannot provide support for modifications to this file.  |
  19.     +---------------------------------------------------------+
  20.  
  21. TTINSTAL.INI is a text file used by TTINSTAL.EXE to install typefaces
  22. into a WordPerfect .ALL file.  Each entry in TTINSTAL.INI consists of a
  23. heading in square brackets followed by information field, generally in
  24. the form <label>=<value>. There are two kinds of entry in this file:
  25. character maps, & Typeface records.
  26.  
  27. Character map
  28. -------------
  29. This large entry tells TTINSTAL which character in the typeface is
  30. assigned to each WordPerfect character.  The format is:
  31.  
  32.     uniXXXX=YY,ZZ
  33. where:
  34.     XXXX    is the unicode (or other charmap code) of the character
  35.         in the typeface file.
  36.     YY    is the WordPerfect character set number
  37.     ZZ    is the WordPerfect character code
  38.  
  39. There may be duplicates in this map.  If the same typeface character is
  40. assigned to more than one WordPerfect character, the typeface character
  41. will be used for each WordPerfect character assigned.  If the same
  42. WordPerfect charcter is assigned to more than one character in a
  43. typeface, the first assignment listed in TTINSTAL.INI will be used. (To
  44. keep things simple, don't list any duplicates.)
  45.  
  46. Note: The character map only affects printing.    The characters displayed
  47.       on screen within WordPerfect (for Windows or DOS) will remain
  48.       unchanged.
  49.  
  50. Typeface record
  51. ---------------
  52. These entries tell TTINSTAL how to install fonts into WordPerfect. If an
  53. entry for a font appears at all, it must be complete. (exceptions to
  54. this rule are described below).  When installing a font for which no
  55. entry exists, TTINSTAL does it's best to imitate WordPerfect for
  56. Windows' behavior when using the font with a Windows printer driver.
  57.  
  58. format:
  59.     [fontname]
  60.     Fn=xxxxxxxxxxx
  61.     Tn=xxxxxxxxxxx
  62.     Wt=x x
  63.     Wp=x x x x x
  64.     Mt=xxxx xxxx xxxx xxxx xxxx
  65.     Ia=xxxx
  66.     Cm=xxxxxxxxxxx
  67.  
  68. Description:
  69.  
  70.     [fontname]
  71.     The heading is the internal name of the font.  It is the same
  72.     name reported by the TTFSTATS utility.    (TTFSTATS works like the
  73.     DOS DIR command.)
  74.  
  75.     Fn=xxxxxxx
  76.     This is the name of the font (as it will appear in WordPerfect's
  77.     base font selection menu.)
  78.  
  79.     Tn=xxxxxxx
  80.     This is the name of the typeface record.
  81.  
  82.     Wt=x x
  83.     This field gives the stroke weight of the font.  The first
  84.     number is the weight used for WP 5.1, the second is used for WP
  85.     5.0.  Both numbers must appear here.
  86.  
  87.     WordPerfect 5.1:    WordPerfect 5.0:
  88.  
  89.        0 = Extra Light       0 = Extra Light
  90.        1 = Light           1 = Light
  91.        2 = Normal           2 = Normal
  92.        3 = Demi-Bold       3 = Bold
  93.        4 = Bold           4 = Extra Bold
  94.        5 = Heavy
  95.        6 = Black
  96.        7 = Ultra-Black
  97.  
  98.     Wp=xx xx xx xx xx
  99.     This field gives the typeface characteristics, expressed as a
  100.     hexadecimal number.
  101.  
  102.     Bits in the first byte (font attributes):
  103.  
  104.        00000001 small caps       
  105.            00000010 shadow font      
  106.            00000100 outline font     
  107.            00001000 italic
  108.  
  109.     Bits in the second byte (appearance):
  110.  
  111.        00000001 casual        
  112.            00000010 connecting    
  113.            00000100 decorative    
  114.            00001000 formal        
  115.            00010000 futuristic    
  116.            00100000 old_style     
  117.            01000000 script
  118.  
  119.     Bits in the third byte (serifs):
  120.  
  121.        00000001 cupped      
  122.            00000010 exaggerated 
  123.            00000100 hairline    
  124.            00001000 slab        
  125.            00010000 slanted     
  126.            00100000 transitional
  127.            01000000 triangular  
  128.            10000000 ball serifs
  129.  
  130.     Bits in the fourth byte (shape):
  131.  
  132.        00000001 curved           
  133.            00000010 nonconnecting    
  134.            00000100 round            
  135.            00001000 square
  136.  
  137.     Bits in the fifth byte (stress):
  138.  
  139.        00000001 angular           
  140.            00000010 exaggerated       
  141.            00000100 uniform
  142.  
  143.     To convert these bits to hexadecimal, first add all desired
  144.     attributes in a category together, then use the following table
  145.     to convert each set of 4 binary digits to to one hex digit.
  146.  
  147.         binary hex     binary hex   binary hex   binary hex
  148.         0000    0     0100     4    1000    8    1100    C
  149.         0001    1     0101     5    1001    9    1101    D
  150.         0010    2     0110     6    1010    A    1110    E
  151.         0011    3     0111     7    1011    B    1111    F
  152.  
  153.     Example:
  154.  
  155.         To assign the characteristics:
  156.  
  157.         italic attributes
  158.         decorative, formal, & script appearance
  159.         transitional & ball serifs
  160.         curved shape
  161.         uniform stress
  162.  
  163.         First combine the bits associated with each category:
  164.  
  165.         attributes    00001000
  166.         appearance    01001100
  167.         serifs        10100000
  168.         shape        00000001
  169.         stress        00000100
  170.  
  171.         Then find the hex digit associated with each sequence of
  172.         four binary digits:
  173.  
  174.         0000 1000    08
  175.         0100 1100    4C
  176.         1010 0000    A0
  177.         0000 0001    01
  178.         0000 0100    04
  179.  
  180.         Thus the entry becomes:
  181.  
  182.         Wp=8 4C A0 1 4
  183.  
  184.     Mt=xxxx xxxx xxxx xxxx xxxx
  185.     This field specifies the typeface's font metrics.  The five
  186.     numbers are expressed as percentages * 100 and represent Cap
  187.     height, Max descender, x height, t height, and    Max ascender
  188.     respectively.
  189.  
  190.     Ia=xxxx
  191.     This field specifies the italic angle of the font.  It is
  192.     expressed as the distance the characters are skewed from
  193.     vertical divided by the height of the font, times 100. (in other
  194.     words, the tangent of the italic angle times 100).
  195.  
  196.     Cm=xxxxxxxxxxx
  197.     This field specifies the character map entry that will be used
  198.     for this typeface.  If omitted, the ANSI-MAP character map will
  199.     be used.
  200.  
  201.