Kerning


In typography, kerning is the process of adjusting the space between two specific characters, or letterforms, in a font. It is not to be confused with tracking, by which spacing is adjusted uniformly over a range of characters.
In a well-kerned font, the two-dimensional blank spaces between each pair of characters all have a visually similar area. The term "keming" is sometimes used informally to refer to poor kerning.
The related term kern denotes a part of a typed letter that overhangs the edge of the type block.

Metal typesetting

The source of the word kern is from the French word carne, meaning "projecting angle, quill of a pen". The French term originated from the Latin cardo, cardinis, meaning "hinge". In the days when all type was cast metal, the parts of a typecasting sort that needed to overlap adjacent letters hung off the sort slug's edge. Those overhanging metal pieces were called kerns. At that time, the word kerning only referred to manufacturing the sorts with kerns, while adjusting space between letters during compositing was called inter-spacing or letter spacing.
Because this method was not well-suited to some pairs of letters, ligatures were supplied for those glyph combinations, such as the French L’, or the combinations ff, fi, fl, ffi, ffl, and others.

Digital typography

In metal typesetting, kerning was labor-intensive and expensive because the matrices had to be physically modified. It was therefore only employed on letter combinations that needed it the most, such as VA or AV. With the arrival of digital fonts, it became much easier to kern many glyph combinations.

Kerning values

In digital typography, kerning is usually applied to letter pairs as a number by which the default character spacing should be increased or decreased: a positive value for an increase, a negative value for a decrease. The number is expressed in font units, one unit being a certain fraction of an em. Different fonts may use other units, but common values are 1000 and 2048 units/em. Thus, for 1000 units/em, a kerning value of 15 means an increase in character spacing by 0.015 of the current type size.
Most kerning adjustments are negative, and negative adjustments are generally larger than positive ones. Adjustments for different pairs within a given font can range from a tiny 2 to over 100. The adjustments for a given pair vary greatly from one font to another.
Negative kerning is widely used to fit capital letters such as T, V, W, and Y closer to some other capital letters on either side, especially A, and to some lower case letters on the right side, such as the combinations Ta, Te, and To. It is also used to fit a period or a comma closer to these and to F and P and the lowercase letters r, v, w, and y. Some other combinations that use negative kerning are FA, LT, and LY, and letters like A, L, and h followed by a quotation mark.
Positive kerning is used mainly in conjunction with special characters and punctuation. Depending on the font, some small positive kerning may also be required for accented letters and pairs like Bo, Dw, and TY.
The table below contains a few exemplifying kerning pairs and their values. These values are based on 1000 units/em and the kerning pairs are ordered from the most negative to the most positive kerning value. The samples are taken from the kerning tables of the Minion Pro font. In other fonts the kerning may be very different.
A” −146W. −144P, −139L” −135VA −123F. −110YA −104Te −98
AV −97Vr −86PA −85m” −82a” −79FA −78UA −78w. −73
Yt −72LT −64r, −63Xv −54Ku −46D, −40D” −36OA −36
Hv −33T: −32DY −30c” −25my −23Ru −21aj −19bv −16
Sp −14ro −13SR −12lp −12ot −11tt −10am −9fe −9
vo −8xc −8yo −8Ix −6e, −6st −5he −4Fw −3
us −3Ak +3la +3Oj +5il +5CO +7bc +9Xf +10
fr +10F” +12wb +12YW +13So +14Co +15VT +16cv +16
Dv +17OC +18Bc +20RX +20T” +22gy +24r: +24XA +25
ry +29w; +31f? +76f” +121

Which letters need to be kerned depends on which language the font is to be used with. Since some combinations of letters are not used in normal words in any language, kerning these is not necessary. Non-proportional fonts do not use kerning, since their characters always have the same spacing.

Kerning tables

In older font formats, such as Apple’s TrueType, the kerning values are specified in a simple kern table where each entry consists of a pair of characters and their kerning value. TrueType fonts typically have several hundred pairs, but some have more than a thousand.
Since OpenType is a superset of TrueType kern tables are still supported for TrueType fonts packed as OpenType; however, PostScript-based OpenType fonts do not have this option. OpenType introduced a new, uniform way of specifying, among other things, kerning, via the Glyph Positioning Table. The more recent font releases by Adobe no longer have kern tables at all, but only specify kerning via GPOS.
Since an OpenType font may include thousands of glyphs, and consequently a huge number of pairs of characters that need kerning, OpenType fonts may have an elaborate system of tables and subtables, designed to minimize the overall storage space. The system is based on the concept of glyph classes: instead of a one-dimensional table where each entry corresponds to a pair of characters, there are two-dimensional tables where each entry corresponds to a pair of classes of glyphs. A class includes several characters whose right-hand outline is identical for kerning purposes or several characters whose left-hand outline is identical. All pairs of characters where the first one is from the first class and the second one is from the second class will require the same kerning value, so this value needs to be specified only once in the table. The rows in the two-dimensional table correspond to first-character classes, and the columns correspond to second-character classes. The kerning value for a given pair of characters is found in the table at the intersection of the classes to which they belong.
This system is very economical, but is necessarily limited. For example, many of the classes may be quite small. Also, a font with many types of glyphs may require several such tables. Finally, many pairs remain that cannot be represented through classes. For them, simpler, one-dimensional tables are provided: each table is for a particular character that is the first in many pairs, and the entries contain the characters that are the second in these pairs, together with the corresponding kerning values.
Here are a few examples of glyph classes in the Minion Pro font for the first character in a kerning pair:,,,,,,, ; and for the second character in a pair:,,,,,,.
A category of letters that lend themselves well to class-based kerning is those with diacritical marks. These letters can be added to the class of the base letter, and can stay together whether they are the first or second character in a pair:,, etc. A letter cannot be included in the class if its kerning is different from the others in certain pairs.
Most modern office and desktop publishing systems support OpenType features, and hence class-based kerning.

Automatic and manual kerning

Automatic kerning refers to the kerning applied automatically by a program, as opposed to no kerning at all, or the kerning applied manually by the user. There are two types of automatic kerning: metric and optical. With metric kerning, the program directly uses the values found in the kerning tables included in the font file. Most systems with typographic features today provide this type of kerning. Optical kerning, on the other hand, is available only in the more advanced systems. With optical kerning, the program uses an algorithm to calculate, from their outlines, the optimal spacing for each pair of consecutive characters. With both types of automatic kerning, the system usually permits the user to specify a minimum font size for applying kerning, if the user feels that kerning is unnecessary for smaller font sizes.
With metric kerning, in a text that uses several fonts, the program must decide which kerning table to use when two consecutive characters belong to different the table from the font of the first character, or the second or to avoid kerning altogether. In this case, optical kerning is preferable. A common situation occurs when italic text ends with a roman symbol and the last letter's slant clashes with the symbol.
Manual kerning, available in some systems, permits the user to override the automatic kerning and to apply any kerning value directly to a pair of characters in a particular place in the text. When not available, this feature can be simulated by using, for those two characters, the function that modifies the space between characters in a block of text.
When employed by a skilled person, manual kerning will usually give better results than optical kerning; for example, some characters that may appear to an algorithmic comparison to be spaced very closely together may appear to a human reader too far apart, especially when the only element of a glyph that is “too close” is a diacritic mark. Manual kerning may even be better than the metric kerning built into the kerning table by the font's designer, since these tables often have errors or omissions, or the difference may simply be a matter of personal preference.