字距调整
为视觉美观而调整特定字符对(如AV、To、LT)之间间距的操作,是字体特性而非Unicode概念,但会影响Unicode文本的渲染。
What is Kerning?
Kerning is the typographic process of adjusting the horizontal spacing between specific pairs of characters to achieve visually consistent spacing. Unlike tracking (which adjusts spacing uniformly across all characters) or word spacing, kerning is targeted — it corrects for the optical illusion that certain character combinations appear to have more or less space between them than they actually do.
The classic example is "AV": the diagonal strokes of A and V create a large visual gap when they sit at their default spacing, even though no extra space was added. Kerning pulls them closer together so the gap looks similar to the spacing between, say, "nn."
Why Kerning is Necessary
Characters are designed in isolation but read in combination. A letter's bounding box (the rectangle enclosing its glyph) doesn't account for the white space created by its specific shape. Pairs that frequently require kerning include:
| Pair | Problem | Solution |
|---|---|---|
| AV | A's right diagonal + V's left diagonal create gap | Reduce space |
| To | T's horizontal arm overhangs lowercase letters | Reduce space |
| LT | L's wide base + T's serif/stem create gap | Reduce space |
| ff | f hooks can collide | Increase or use ligature |
| r. | r's arm leaves gap before period | Reduce space |
Font Kerning Tables
Professional fonts include kern tables (or the more modern GPOS table in OpenType) that specify adjustments for hundreds or thousands of character pairs. A typical professional typeface might contain 5,000–20,000 kern pairs.
The adjustment is measured in font units (usually 1/1000 or 1/2048 of an em). Negative values bring characters closer; positive values push them apart.
Kerning vs. Tracking vs. Leading
| Term | Scope | Purpose |
|---|---|---|
| Kerning | Between specific character pairs | Correct optical unevenness |
| Tracking (letter-spacing) | Uniform across all characters | Stylistic spacing adjustment |
| Word spacing | Between words | Justify text, improve readability |
| Leading (line-height) | Between lines | Vertical rhythm and readability |
Kerning in Practice
CSS provides two mechanisms:
/* Enable font's built-in kerning tables (recommended) */
p {
font-kerning: normal; /* default in modern browsers */
}
/* Disable kerning */
p {
font-kerning: none;
}
/* Manual letter-spacing (tracking, not true kerning) */
h1 {
letter-spacing: 0.05em;
}
Manual kerning in design tools like Adobe Illustrator or InDesign: place the cursor between two characters, then use Alt/Option + Arrow keys to adjust. InDesign shows the kern value in the Character panel.
Optical vs. Metric Kerning
Most professional design software offers two kerning modes: - Metric kerning: uses the kern pairs built into the font file (fastest, most consistent) - Optical kerning: software analyzes the actual glyph shapes and calculates spacing algorithmically (better for fonts with sparse kern tables, especially display sizes)
Quick Facts
| Property | Value |
|---|---|
| Definition | Spacing adjustment between specific character pairs |
| Measured in | Font units (per-em fractions) or points |
| OpenType table | GPOS (newer), kern (legacy) |
| CSS property | font-kerning: normal / none / auto |
| Common bad kern pairs | AV, AW, AT, WA, To, Tr, Ta, Ve, Vo, LT, PA |
| Design tool shortcut (Mac) | Option + Left/Right Arrow |
| Design tool shortcut (Win) | Alt + Left/Right Arrow |
相关术语
排版印刷 中的更多内容
CSS @font-face descriptor specifying which Unicode code points a font should cover. …
The mechanism by which a rendering engine substitutes glyphs from a secondary …
Modern font format developed by Microsoft and Adobe supporting up to 65,535 …
字符从右向左流动的文本方向,用于阿拉伯语、希伯来语、塔阿纳等文字,正确显示需要双向算法。
Fonts downloaded by the browser to render text, declared via CSS @font-face. …
U+00A0,防止在该位置换行的空格。HTML中为 ,用于数字与单位之间(100 km)、专有名词(Mr. Smith)和缩写之后。
全角(Em):等于字号的宽度;半角(En):全角的一半,用于定义全角破折号宽度、全角空格、半角空格和CSS单位(1em、0.5em)。
附加在字母上以改变发音或意义的符号,可以是预组合形式(é U+00E9)或组合形式(e + ◌́ U+0065+U+0301),包括重音、变音符、软音符和波浪号等。
特定大小、字重和样式的字型实现,在数字排版中指包含字形定义和度量的字体文件(TTF、OTF、WOFF2)。
字体渲染的字符视觉表现形式。一个字符可有多个字形(连字、上下文形式),一个字形也可表示多个字符。