![]() |
|
<?tk> |
Longname: | t k erning | ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Released: | not available | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created: | not available | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also: | tkdis tkfirst <?tkfnt> <?tkusr> <?tkfnt> <?tkusr> tload |
Summary |
Sets the name of the kerning table that you wish to use to control the automatic kerning of text. 3B2 SmartFonts have kerning information built into them and do not need this attribute. Normal fonts can make use of a kerning table which tells 3B2 about the character pairs that would look better when kerned. A kerning table can be created within a document using the ttagmk macro with a .ke extension, or loaded into a document using tload or tdldtab. Kerning tables can also be added to a font using the lig3b2.exe program supplied with 3B2. |
Example extract |
Arbortext APP is supplied with a basic kerning table called kern.3t, containing around 110 of the most common kerning pairs (some fonts, particularly Arbortext APP SmartFonts, use over 6000!) You can load kern.3t into your document with and apply it to your text with the macro.
|
Syntax
|
table name:t |
The name of any valid kerning table in the document. |
char on left:n |
The first character in the kerning pair. Entering a #
128 character in this position represents the start of a line (it will look like Many accented characters are, by default, ligaturised into two separate characters; the unaccented character and the accent itself. The kerning code is intelligent enough to ignore the internal ligature codes that produce the accent and then continue to treat the character as though it were unaccented. 3B2 does not have any restrictions on the characters used in a kerning table. Characters above # 128 are treated normally as far as the kerning table is concerned. |
group number:n |
|
char on right:n |
The second character in the kerning pair. Entering the #
128 character in this position represents the end of a line (it will look like |
kern amount:n |
The amount of space to insert between the two characters char on left and char on right, measured in ⅟₉₆ of an em. Positive values bring the characters closer together. Negative values move the characters further apart. |
Kerning tables |
A kerning table can have up to 4 separate groups of kerning pairs. The maximum number of kerning pairs is 10,000. Kerning pairs that appear in more than one 'enabled' group are cumulative, allowing a group or user table to be used for extra kerning. These groups, numbered 1 to 4, can be individually controlled by the user with the <?tkfnt> and <?tkusr> macros. |
Characters can also be kerned with the beginning or end of a line, providing an extremely flexible implementation of hanging punctuation. |
![]() |
In order to establish the level of kerning required for hanging punctuation, you can use fmg3b2.exe to get individual character widths from a .fnt file. Simply open the .fnt file with fmg3b2 and type in gw followed by the numeric code of the letter you are interested in (without a space after gw). |
Document created on 08-Feb-2003 (revision 1)