home *** CD-ROM | disk | FTP | other *** search
- This file describes the format and use of the TTINSTAL.INI file.
-
- You do NOT need this information in order to use TrueType for WordPerfect!
- --------------------------------------------------------------------------
-
- If, however, you need to customize the typface installation, modify this
- file as described below, then re-install the typefaces.
-
- +---------------------------------------------------------+
- | You should be thorougly familiar with WordPerfect's PTR |
- | program, and the innerworkings of WordPerfect printer |
- | drivers before attempting to modify this file. You |
- | should also be familiar with the internal format of a |
- | TrueType font. Contact WordPerfect and/or Microsoft for|
- | more information on these subjects. |
- | |
- | Due to it's highly technical nature, LaserTools |
- | cannot provide support for modifications to this file. |
- +---------------------------------------------------------+
-
- TTINSTAL.INI is a text file used by TTINSTAL.EXE to install typefaces
- into a WordPerfect .ALL file. Each entry in TTINSTAL.INI consists of a
- heading in square brackets followed by information field, generally in
- the form <label>=<value>. There are two kinds of entry in this file:
- character maps, & Typeface records.
-
- Character map
- -------------
- This large entry tells TTINSTAL which character in the typeface is
- assigned to each WordPerfect character. The format is:
-
- uniXXXX=YY,ZZ
- where:
- XXXX is the unicode (or other charmap code) of the character
- in the typeface file.
- YY is the WordPerfect character set number
- ZZ is the WordPerfect character code
-
- There may be duplicates in this map. If the same typeface character is
- assigned to more than one WordPerfect character, the typeface character
- will be used for each WordPerfect character assigned. If the same
- WordPerfect charcter is assigned to more than one character in a
- typeface, the first assignment listed in TTINSTAL.INI will be used. (To
- keep things simple, don't list any duplicates.)
-
- Note: The character map only affects printing. The characters displayed
- on screen within WordPerfect (for Windows or DOS) will remain
- unchanged.
-
- Typeface record
- ---------------
- These entries tell TTINSTAL how to install fonts into WordPerfect. If an
- entry for a font appears at all, it must be complete. (exceptions to
- this rule are described below). When installing a font for which no
- entry exists, TTINSTAL does it's best to imitate WordPerfect for
- Windows' behavior when using the font with a Windows printer driver.
-
- format:
- [fontname]
- Fn=xxxxxxxxxxx
- Tn=xxxxxxxxxxx
- Wt=x x
- Wp=x x x x x
- Mt=xxxx xxxx xxxx xxxx xxxx
- Ia=xxxx
- Cm=xxxxxxxxxxx
-
- Description:
-
- [fontname]
- The heading is the internal name of the font. It is the same
- name reported by the TTFSTATS utility. (TTFSTATS works like the
- DOS DIR command.)
-
- Fn=xxxxxxx
- This is the name of the font (as it will appear in WordPerfect's
- base font selection menu.)
-
- Tn=xxxxxxx
- This is the name of the typeface record.
-
- Wt=x x
- This field gives the stroke weight of the font. The first
- number is the weight used for WP 5.1, the second is used for WP
- 5.0. Both numbers must appear here.
-
- WordPerfect 5.1: WordPerfect 5.0:
-
- 0 = Extra Light 0 = Extra Light
- 1 = Light 1 = Light
- 2 = Normal 2 = Normal
- 3 = Demi-Bold 3 = Bold
- 4 = Bold 4 = Extra Bold
- 5 = Heavy
- 6 = Black
- 7 = Ultra-Black
-
- Wp=xx xx xx xx xx
- This field gives the typeface characteristics, expressed as a
- hexadecimal number.
-
- Bits in the first byte (font attributes):
-
- 00000001 small caps
- 00000010 shadow font
- 00000100 outline font
- 00001000 italic
-
- Bits in the second byte (appearance):
-
- 00000001 casual
- 00000010 connecting
- 00000100 decorative
- 00001000 formal
- 00010000 futuristic
- 00100000 old_style
- 01000000 script
-
- Bits in the third byte (serifs):
-
- 00000001 cupped
- 00000010 exaggerated
- 00000100 hairline
- 00001000 slab
- 00010000 slanted
- 00100000 transitional
- 01000000 triangular
- 10000000 ball serifs
-
- Bits in the fourth byte (shape):
-
- 00000001 curved
- 00000010 nonconnecting
- 00000100 round
- 00001000 square
-
- Bits in the fifth byte (stress):
-
- 00000001 angular
- 00000010 exaggerated
- 00000100 uniform
-
- To convert these bits to hexadecimal, first add all desired
- attributes in a category together, then use the following table
- to convert each set of 4 binary digits to to one hex digit.
-
- binary hex binary hex binary hex binary hex
- 0000 0 0100 4 1000 8 1100 C
- 0001 1 0101 5 1001 9 1101 D
- 0010 2 0110 6 1010 A 1110 E
- 0011 3 0111 7 1011 B 1111 F
-
- Example:
-
- To assign the characteristics:
-
- italic attributes
- decorative, formal, & script appearance
- transitional & ball serifs
- curved shape
- uniform stress
-
- First combine the bits associated with each category:
-
- attributes 00001000
- appearance 01001100
- serifs 10100000
- shape 00000001
- stress 00000100
-
- Then find the hex digit associated with each sequence of
- four binary digits:
-
- 0000 1000 08
- 0100 1100 4C
- 1010 0000 A0
- 0000 0001 01
- 0000 0100 04
-
- Thus the entry becomes:
-
- Wp=8 4C A0 1 4
-
- Mt=xxxx xxxx xxxx xxxx xxxx
- This field specifies the typeface's font metrics. The five
- numbers are expressed as percentages * 100 and represent Cap
- height, Max descender, x height, t height, and Max ascender
- respectively.
-
- Ia=xxxx
- This field specifies the italic angle of the font. It is
- expressed as the distance the characters are skewed from
- vertical divided by the height of the font, times 100. (in other
- words, the tangent of the italic angle times 100).
-
- Cm=xxxxxxxxxxx
- This field specifies the character map entry that will be used
- for this typeface. If omitted, the ANSI-MAP character map will
- be used.
-
-