{
  "id": "kerning",
  "title": "Kerning",
  "lang": "en",
  "source_lang": "en",
  "summary": "Kerning is the adjustment of spacing between particular pairs of glyphs to create visually balanced text.",
  "category": "arts",
  "subcategory": "visual-arts",
  "type": "concept",
  "aliases": [
    "Pair kerning",
    "pair spacing adjustment"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/kerning/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/kerning/",
      "json": "https://aiwiki.page/zh/kerning.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Kerning is the adjustment of spacing between particular pairs of glyphs in typography, usually to make the spaces between their visible shapes appear more consistent. Unlike a uniform change to letter spacing, kerning responds to the forms and arrangement of specific characters. It commonly brings combinations such as “AV,” “To,” and “Wa” closer together, but it can also increase spacing where adjacent forms would otherwise appear crowded. Kerning may be built into a font, calculated by software, or applied manually."
    },
    {
      "heading": "Visual principles",
      "text": "Letters occupy spaces that are not identical to their visible outlines. In a typical digital font, each glyph has an advance width: the distance by which the text position moves after that glyph is set. Its outline also has side bearings, the spaces between the outline’s horizontal limits and the boundaries defined by its origin and advance width. These default measurements establish the font’s general spacing.\n\nDefault spacing cannot account equally well for every combination of shapes. Diagonal letters, overhanging strokes, rounded forms, and punctuation produce different patterns of empty space. For example, the diagonals in “AV” can leave a conspicuous gap if the letters are positioned solely according to their individual advance widths. Moving them closer together allows their surrounding spaces to interlock without their outlines touching.\n\nThe aim is generally optical balance rather than equal measured distances. A mathematically identical gap can look different between two vertical stems, two curved letters, or a vertical stem and a diagonal. The surrounding letters also affect perception, so a pair that appears balanced in isolation may require reconsideration within a word.\n\nFor a simplified left-to-right line, glyph positioning can be expressed as:\n\n\\[x_{i+1}=x_i+a_i+k(g_i,g_{i+1}),\\]\n\nwhere \\(x_i\\) is the origin of glyph \\(g_i\\), \\(a_i\\) is its advance width, and \\(k(g_i,g_{i+1})\\) is the pair adjustment. In this convention, a negative value tightens the pair and a positive value opens it. Actual text-layout systems may also apply placement adjustments, tracking, and script-specific positioning."
    },
    {
      "heading": "Kerning and related spacing operations",
      "text": "Kerning is one part of a larger system of typographic spacing.\n\n- Default spacing establishes the ordinary relationship between glyphs through their advance widths and side bearings. Good default spacing reduces the number of exceptional combinations requiring adjustment.\n- Tracking, also called letterspacing, changes spacing across a selected range of text rather than correcting individual pairs.\n- Word spacing controls the separation between words, principally through space characters and layout adjustments.\n- Justification adjusts a line to fit a prescribed measure, often by distributing changes among word spaces and, in some systems, letter spaces or other typographic opportunities.\n- Ligature substitution replaces a sequence of glyphs with another glyph, such as an “fi” ligature. Kerning ordinarily changes positioning rather than substituting a new form.\n\nThese operations can interact. A widely tracked heading may still contain pair-specific kerning, while justified text may combine font kerning with changes imposed by the line-layout system."
    },
    {
      "heading": "Historical development",
      "text": "The term originates in metal printing. A kern was a portion of a printing type’s face that projected beyond the body supporting it. Such projections allowed parts of adjacent letterforms to occupy space that the rectangular type bodies would otherwise keep apart. They were useful for overhanging forms but were physically vulnerable to damage.\n\nThe historical meaning is therefore more specific than the modern digital one: a kern was a projecting part of a piece of type, not simply a numerical spacing adjustment.\n\nPhototypesetting removed many constraints imposed by solid metal bodies. Letter images could be positioned with greater freedom, including closer fitting and overlapping where appropriate. Digital typography subsequently made pair adjustments programmable and reproducible. Font designers could supply spacing data, while typesetting and design applications could provide automatic or manual controls."
    },
    {
      "heading": "Methods of kerning",
      "text": "Font-based kerning\n\nFont-based kerning uses positioning information supplied with the font. Applications may describe this as metrics kerning, although interface terminology varies.\n\nA font can contain adjustments for individual pairs. For example, the spacing between “T” and “o” may be reduced because the upper horizontal stroke of the “T” leaves open space beneath it. Adjustments are specific to a font’s design: a value appropriate for one typeface, weight, or italic style may be unsuitable for another.\n\nFonts can also use class kerning. Glyphs with similar relevant shapes are grouped so that an adjustment applies to combinations of groups rather than requiring every pair to be specified separately. Exceptions accommodate glyphs that need different treatment. This approach makes extensive character sets more manageable.\n\nOptical kerning\n\nOptical kerning is calculated by an application from glyph shapes rather than relying solely on the font’s supplied kerning data. Its implementation varies between programs.\n\nIt can be useful when font kerning is absent or when text combines fonts or sizes whose spacing relationships were not designed together. It is not inherently superior to font-based kerning: geometric calculations may miss relationships deliberately established by a type designer, and results can differ between applications.\n\nManual kerning\n\nManual kerning allows a compositor or designer to alter particular pairs directly. It is especially relevant in short, prominent text such as headlines, book covers, and logos, where individual spacing relationships are conspicuous.\n\nManual adjustment involves the whole word or line as well as the selected pair. Excessively tightening one combination can create an uneven pattern elsewhere. Large amounts of manual correction may also conceal problems in the underlying font spacing or in the chosen tracking."
    },
    {
      "heading": "Digital implementation",
      "text": "Digital fonts have used several mechanisms to store kerning. The legacy kern table records adjustments in formats supported by various font technologies. In OpenType, kerning is commonly implemented through the Glyph Positioning table, or GPOS, particularly through pair-positioning lookups. These can encode individual pairs and class-based adjustments.\n\nA text-shaping engine interprets font data and turns character sequences into positioned glyphs. Kerning operates on glyphs rather than simply on written character codes. This distinction matters because glyph substitution may select a ligature, contextual form, or stylistic alternate before positioning is finalized.\n\nFont adjustments are generally expressed in design units and scaled to the requested type size. Applications may present manual values in other units, including fractions of an em. Consequently, a displayed kerning value must be interpreted according to the application’s conventions.\n\nOn the web, CSS provides the font-kerning property to control the use of font kerning. The separate letter-spacing property controls additional letter spacing. The rendered result also depends on the browser, shaping engine, font, and other text-layout settings."
    },
    {
      "heading": "Applications and limitations",
      "text": "Kerning is particularly noticeable in large display text, where gaps become prominent visual features. In body text, it contributes to a consistent typographic texture, although its effect operates alongside type size, line length, word spacing, and the design’s overall proportions.\n\nKerning is not a universal solution to uneven text. A font with poorly designed side bearings cannot necessarily be repaired efficiently through a growing list of pair adjustments. Excessive tightening can make letter boundaries ambiguous or cause collisions, while excessive opening can weaken the visual unity of a word.\n\nIts role also varies by writing system. Joining scripts require contextual shaping and positioning rules that cannot be reduced to familiar Latin-letter examples. Mark attachment, cursive attachment, and contextual positioning are distinct operations, even when they also affect the spatial relationship between glyphs.\n\nThe same text can appear differently across applications because of differences in shaping support, kerning settings, font versions, or rendering. In editable documents, manual adjustments may also cease to suit the text after changes to the font, wording, size, or layout. Converting lettering to fixed outlines preserves its arrangement but removes ordinary text-editing and text-layout behavior."
    }
  ],
  "links": [
    "glyph",
    "typography",
    "font",
    "printing",
    "cascading-style-sheets"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}