> For the complete documentation index, see [llms.txt](https://mkfont.gitbook.io/mkfont-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mkfont.gitbook.io/mkfont-docs/building-a-font/kerning.md). Agents can also search and read this documentation through its [MCP server](https://mkfont.gitbook.io/mkfont-docs/~gitbook/mcp).

# Kerning

What a kerning pair is, the states it can be in, how accented letters take their kerning from their base letter, and where pairs are created and edited.

A glyph has one advance, so it leaves the same room whatever follows it. Some shapes need less room next to one particular neighbor: a capital A followed by a capital V leaves a wedge of white that the other letters beside the A do without. **Kerning** changes the space between two given glyphs and leaves every other meeting alone.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-308dc31d5c6138d10eea6d9a40dbc0f883c812f0%2Fplaceholder-wide.jpg?alt=media" alt="DIAGRAM | id: kerning-why-a-pair | SHOWS: Why the gap between two particular shapes cannot be closed by changing an advance | ELEMENTS: Four rows of capital letters on a shared baseline, each glyph drawn inside its advance box. Row 1, labelled even spacing: H H, the white between the two stems marked. Row 2, labelled same advances: A V, the advance boxes touching and the wedge of white between the two diagonals shaded, visibly wider than the white in row 1. Row 3, labelled narrower advance for A: on the left A V now closer, on the right A H with the stem of the H running into the foot of the A, the collision marked. Row 4, labelled kerning pair A V: on the left A V closer with the two advance boxes overlapping and the overlap marked as the value, on the right A H unchanged from its normal spacing | MUST BE CLEAR: An advance belongs to one glyph and moves every neighbor, while a kerning pair moves one meeting of two glyphs and leaves the others where they were"><figcaption><p>An advance is shared with every neighbor. A pair is not.</p></figcaption></figure>

## What spacing leaves open

*The advance is one number per glyph. The gap between two particular shapes needs a number of its own.*

{% columns %}
{% column %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-ff974ae035a0747f4cdf06ccea7903d954e131cb%2Fkerning-text-before.png?alt=media" alt="STILL | id: kerning-text-before | SHOWS: A word set with advances alone, with a visible hole where A meets V | FRAME: Sidebar on the Text preview panel, its text replaced by one short word in capitals in which A is directly followed by V, set large enough to fill the width of the panel. No pair between A and V | CROP: sidebar | NEEDS: the capitals of a short word in which A is directly followed by V, all with outlines, no pair between A and V yet | SOURCE: Sample font, browser build"><figcaption><p>Every letter at its advance. The hole between the two diagonals is the widest gap in the word.</p></figcaption></figure>
{% endcolumn %}

{% column valign="middle" %}
Spacing is set per glyph, with **Shift** and **Push**, and it has to hold for every neighbor at once. Some meetings fall outside it: two diagonals that open toward each other, an overhang above a short letter, a capital before a period. Take space off the A to close A V, and every other letter moves into the A as well. A kerning pair closes that one meeting and nothing else.

A pair is measured from the advances: its value is added on top of the spacing the two glyphs already have. Change the **Shift** or **Push** of a glyph and every pair it is in moves with it. How the advance is set is on [Fitting a Shape](https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/fitting-a-shape.md).

{% endcolumn %}

{% column %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-cdd0455205163a71ff3b600ea4c277cdaebed54c%2Fkerning-text-after.png?alt=media" alt="STILL | id: kerning-text-after | SHOWS: The same word once the pair A V has a negative value, the other letters where they were | FRAME: Same frame as kerning-text-before, after the pair A V was given a negative value that evens the word | CROP: sidebar | NEEDS: the capitals of a short word in which A is directly followed by V, all with outlines, no pair between A and V yet | SOURCE: Sample font, browser build"><figcaption><p>One pair, one value. Nothing else in the word moved.</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

## A pair

*Two glyphs in text order, and a value in font units.*

A **kerning pair** is two glyphs in the order they are read, and a **value**. The value is added to the space between them when the second directly follows the first: a negative value brings them closer, a positive one sets them further apart. It is counted in font units, like every measure of the font, so `-50` in a font with an **EM size** of `1000` is a twentieth of the em. Font units are explained on [Font Metrics](https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/font-metrics.md).

* **Order counts.** A followed by V and V followed by A are two pairs, each with its own value.
* **Either glyph can be a ligature.** The pair then reads `fi x`: the ligature, and the glyph after it. Ligatures are on [Ligatures](https://mkfont.gitbook.io/mkfont-docs/building-a-font/ligatures.md).
* **The font file holds whole units.** A value with decimals is kept as typed in the project and rounded when the font is exported.
* **Values follow the em.** Changing **EM size** while **Rescale metrics & glyphs with EM** is on scales every pair by the same factor, with the rest of the font.

## The states of a pair

*A pair is kerned, kept at 0, inherited, or still to do. Only a value other than 0 reaches the font file.*

| State      | The pair has                                                                        | In the font file                                        |
| ---------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------- |
| Kerned     | A value of its own, other than 0.                                                   | Written, when both glyphs are exported.                 |
| No kerning | A value of its own that is 0: it was looked at and needs nothing.                   | Left out.                                               |
| Inherited  | No value of its own. It uses the value of another pair, the one of its base letter. | Written with that value, when both glyphs are exported. |
| To do      | No value of its own, none inherited, and no decision to keep it at 0.               | Left out.                                               |

No kerning and to do set the two glyphs the same way, at their advances. What differs is the record: a pair kept at 0 is a decision, and it stops counting as work left in the pair views. A pair to do is the absence of one.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-c8defd6829916fc4ffc1b937251d3d82dedc5eb2%2Fkerning-state-kerned.png?alt=media" alt="STILL | id: kerning-state-kerned | SHOWS: A kerned pair: the two glyphs closer than their advances, a solid bar under the baseline as wide as the value, and the Kerned chip | FRAME: Kerning selected in the Browse panel, the pair A V selected in the grid. Pair inspector showing the proof and, under it, the two glyph tiles, the name of the pair and its chips | CROP: region: the proof and the identity line of the pair inspector | NEEDS: capital A, capital V and capital H with outlines, and the pair A V kerned with a negative value | SOURCE: Sample font, browser build"><figcaption><p>Kerned. The bar under the baseline is the value, at the scale of the glyphs.</p></figcaption></figure>

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-f139608355041b1ef8543e83207d8c1a61bf3c6d%2Fkerning-state-no-kerning.png?alt=media" alt="STILL | id: kerning-state-no-kerning | SHOWS: A pair kept at 0: the glyphs at their advances, nothing under the baseline, and the No kerning chip | FRAME: Kerning selected in the Browse panel, the pair A V selected in the grid. Pair inspector showing the proof and, under it, the two glyph tiles, the name of the pair and its chips | CROP: region: the proof and the identity line of the pair inspector | NEEDS: capital A, capital V and capital H with outlines, and the pair A V kept at 0 | SOURCE: Sample font, browser build"><figcaption><p>No kerning. The pair is in the project, with nothing to write to the font file.</p></figcaption></figure>

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-4a980e890a3b8989985f64b753aa336405a098f7%2Fkerning-state-inherited.png?alt=media" alt="STILL | id: kerning-state-inherited | SHOWS: An inherited pair: the glyphs set with the value of the base letter pair, a lighter bar under the baseline, and the Inherited chip | FRAME: A pair view with the pair of T followed by the accented A selected. Pair inspector showing the proof and, under it, the two glyph tiles, the name of the pair and its chips | CROP: region: the proof and the identity line of the pair inspector | NEEDS: capital T, capital A, capital H and capital A with an acute accent, all with outlines, the pair T A kerned with a negative value, and no value of its own for T followed by the accented A | SOURCE: Sample font, browser build | NOTE: The Kerning view lists only pairs with a value of their own. Select the inherited pair from a Common pairs list that has it, or from the Inherited list in the Kerning section of the accented letter"><figcaption><p>Inherited. The lighter bar says the value belongs to another pair.</p></figcaption></figure>

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-ad8bc020c5ec7ebc3b60bfb395b8e9e6a7693835%2Fkerning-state-to-do.png?alt=media" alt="STILL | id: kerning-state-to-do | SHOWS: A pair to do: the glyphs at their advances, a dashed bar as wide as the suggested value, and the Not kerned chip | FRAME: Detected selected in the Browse panel, the pair A V selected in the grid. Pair inspector showing the proof and, under it, the two glyph tiles, the name of the pair and its chips | CROP: region: the proof and the identity line of the pair inspector | NEEDS: capital A, capital V and capital H with outlines that leave a visible gap between A and V, no pair between A and V yet | SOURCE: Sample font, browser build"><figcaption><p>To do. The dashed bar is a suggestion, and nothing has been applied.</p></figcaption></figure>

## Accented letters follow their base letter

*An accented letter uses the pairs of its base letter until one of its own pairs is given a value.*

A font that kerns T followed by A needs the same value for T followed by Á, À, Â and the rest. With **Accented letters follow their base letter** on, those pairs need no entry: each one is inherited from the pair of the base letter. The option is in the **Kerning** group of the **Font** panel, on in every new font, and is described on [Font Info & Metrics](https://mkfont.gitbook.io/mkfont-docs/building-a-font/font-info-and-metrics.md).

The **base letter** is the letter left once Unicode's decomposition of the character has its accents removed: A for Á. It comes from the character, whatever components the glyph is built from. A ligature has no base letter.

A pair with no value of its own looks for a pair to follow, in this order, and takes the first that has a value of its own:

1. The base letter of its first glyph, then its second glyph as it is. Á followed by V follows A V.
2. Its first glyph as it is, then the base letter of its second glyph. T followed by Á follows T A.
3. Both base letters. Á followed by Ä follows A A.

The pair that is followed is the **base pair**.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-308dc31d5c6138d10eea6d9a40dbc0f883c812f0%2Fplaceholder-wide.jpg?alt=media" alt="DIAGRAM | id: kerning-inheritance-order | SHOWS: Which pair an accented letter inherits from, and in what order the candidates are tried | ELEMENTS: Three numbered rows. Each row has, on the left, a pair with no value of its own drawn as two letters with an empty value tag, and on the right the pair it follows drawn with a filled value tag, an arrow running from left to right. Row 1: A with an acute accent followed by V, arrow to A followed by V, the first glyph highlighted and labelled base letter of the first glyph. Row 2: T followed by A with an acute accent, arrow to T followed by A, the second glyph highlighted and labelled base letter of the second glyph. Row 3: A with an acute accent followed by A with a dieresis, arrow to A followed by A, both glyphs highlighted and labelled both base letters, annotated as reached only when rows 1 and 2 found nothing. Under the rows, a fourth pair drawn apart: T followed by A with an acute accent carrying a filled value tag of its own and no arrow, labelled own value | MUST BE CLEAR: The first glyph is replaced by its base letter first, then the second, then both, the first candidate that has a value of its own wins, and a pair with a value of its own follows nothing"><figcaption><p>Three candidates, tried in order. A value of the pair's own ends the search before it starts.</p></figcaption></figure>

Three things follow from that order:

* **A value of its own wins.** Give T followed by Á a value and it stops following T A. Remove that value and it follows again.
* **A pair kept at 0 is followed too.** If T A is no kerning, T followed by Á inherits its 0, and nothing is written for either.
* **The font file gets the inherited pairs.** Each one is written with the value it follows, for the accented letters the font has.

With the option off, accented letters kern on their own. Every inherited pair goes back to to do, nothing is written for it, and the outlines of accented letters are measured for suggested values like any other.

## Suggested values

*MkFont measures the white between two outlines and suggests a value where a pair is looser than the font's normal spacing.*

For a pair of glyphs the font draws, MkFont measures the white between the two outlines at many heights between the baseline and the cap height, and keeps the narrowest. It compares that with the font's normal spacing: the white beside an H for a capital, beside an n for a lowercase letter, and the glyph's own sides for a figure or a punctuation mark. Where the pair is looser, half of the extra white becomes the **suggested value**.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-308dc31d5c6138d10eea6d9a40dbc0f883c812f0%2Fplaceholder-wide.jpg?alt=media" alt="DIAGRAM | id: kerning-suggestion-measure | SHOWS: What a suggested value is measured from | ELEMENTS: Two panels on shared baseline and cap height lines, the band between the two lines lightly shaded. Left panel: capital A followed by capital V at their advances, thin horizontal lines crossing the white between the two outlines at regular heights inside the band, the shortest of them emphasized and labelled closest approach. Right panel: capital H followed by capital H, the same thin lines between the two stems, their length labelled normal spacing. Under the panels, the two lengths drawn as two bars one above the other, the part of the first that exceeds the second labelled extra white, and half of that part marked off and labelled suggested value with a minus sign | MUST BE CLEAR: The measure is the narrowest white between the two outlines within the band from baseline to cap height, compared with the white between two H, and only half of the difference is suggested"><figcaption><p>Half of what the pair has over the font's normal spacing.</p></figcaption></figure>

* **A suggestion only tightens.** A suggested value is always negative. A pair that is too tight gets none.
* **It is a starting point.** The measure knows where the outlines are closest and nothing about how the pair reads. Check each value by eye.
* **Nothing is applied until asked.** A suggestion is drawn as a dashed bar and offered by an **Apply** button. Applying fills a pair that is to do, and leaves alone a pair that is kerned, inherited, or kept at 0.
* **It follows the outlines.** Change a shape or its spacing and the suggestions are measured again.

Suggestions are listed in the **Detected** range, offered in the pair inspector, and listed per glyph in [Kerning in the glyph inspector](#kerning-in-the-glyph-inspector).

<details>

<summary>Which pairs get a suggestion</summary>

* Only characters that occur in the common pairs are measured, and of those, letters, figures and the punctuation that sits next to letters. A glyph with nothing in its outline is skipped.
* In a font without an H, capitals are compared with their own sides. The same goes for lowercase letters in a font without an n.
* The two outlines have to face each other over at least half the height of the shorter one, between the baseline and the cap height. An apostrophe followed by a lowercase x share no height, so the pair gets nothing.
* A suggestion never brings the two outlines closer than half the normal spacing at any height, descenders and ascenders included.
* Values are rounded to 5 units, and a suggestion smaller than 2.5% of the **EM size** is dropped.
* Accented letters are skipped while they follow their base letter, and so is a pair that a ligature replaces.

</details>

## Missing glyphs and ligatures

*A pair outlives its glyphs. It is kept in the project, and left out of the font file until both are there.*

### A glyph that is deleted or left out of the export

Deleting a glyph leaves its pairs in the project. Each one is drawn faded, with the character of the missing glyph in a system font, and comes back into use when the glyph is created again.

A pair is written to the font file only when both of its glyphs are. It is skipped while one of them is not in the font, has its **Export** switch off, or is out of bounds. The export then reports a warning that gives the number of pairs it skipped, followed by **kerning pairs skipped: a glyph is missing or not exported**. Pairs kept at 0 and pairs to do are not counted, since they had nothing to write.

### A ligature for the same two glyphs

When the font has a ligature for the two glyphs of a pair in the same order, text shows the ligature and the two glyphs never meet. The pair is kept and still written to the font file, and it is never applied while ligatures are on. Kern the ligature with its own neighbors instead. Such a pair gets no suggested value.

Both cases are flagged where the pair is edited: by a notice in the pair inspector, and by a warning icon in the **Kerning** section of the glyph inspector.

## Where pairs are created and edited

*Every place edits the same pairs. Use the one closest to what is on screen.*

| Place                                          | Reached by                                                                                                                                                                         | Good for                                                                                                 | Described on                                                                                                              |
| ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| The pair views                                 | **Kerning**, **Detected** or a **Common pairs** list in the **Browse** panel.                                                                                                      | Working through many pairs: typing a new pair, sorting what is left to do, applying suggestions in bulk. | [Pair Views](https://mkfont.gitbook.io/mkfont-docs/building-a-font/kerning/pair-views.md)                                 |
| The pair inspector                             | Selecting one pair or several in a pair view.                                                                                                                                      | Judging one pair in its proof and setting its value.                                                     | [Pair Inspector](https://mkfont.gitbook.io/mkfont-docs/building-a-font/kerning/pair-inspector.md)                         |
| The **Kerning** section of the glyph inspector | Selecting one glyph in the glyph grid.                                                                                                                                             | Seeing and editing every pair of one glyph without leaving it.                                           | [Kerning in the glyph inspector](#kerning-in-the-glyph-inspector)                                                         |
| **Kern pair**                                  | Selecting two glyphs: the button is in the inspector. The same command is **Glyph › Kern the two selected glyphs**, and **Kern** followed by the two glyphs in their context menu. | Making the pair of two glyphs that are in front of you. The first one selected comes first.              | [Editing Several Glyphs](https://mkfont.gitbook.io/mkfont-docs/building-a-font/glyph-inspector/editing-several-glyphs.md) |
| **Kern** in the **Text preview** panel         | Selecting two characters in the preview.                                                                                                                                           | Fixing a pair where it was noticed, in running text.                                                     | [Text Preview](https://mkfont.gitbook.io/mkfont-docs/building-a-font/text-preview.md)                                     |

**Kern pair** and **Kern** both end in the same place: the pair selected in a pair view, with the cursor in the **Value** field of the pair inspector. That view is **Kerning**, unless the viewport is on another pair view already.

{% hint style="warning" %}

## A new pair starts at 0

A pair that is typed, or made with **Kern pair** or **Kern**, is added with a value of 0. Left as it is, it is a pair kept at 0. For a pair that was inherited, that 0 replaces the value it was following: type the value it should have, or empty the field to follow the base pair again.
{% endhint %}

## Kerning in the glyph inspector

*The pairs of one glyph, on each side of it, editable in place.*

{% columns %}
{% column valign="middle" %}
With one glyph selected, the inspector has a **Kerning** section between **Components** and **Details**. It lists the pairs the glyph is part of, the pairs it inherits, and the pairs its outlines suggest. This is the section of the inspector: the **Kerning** range in the **Browse** panel lists the pairs of the whole font, and the **Kerning** group of the **Font** panel holds the option for accented letters.

The number beside the section title counts the pairs of the glyph, inherited ones included and suggested ones left out. Once the glyph has pairs of its own, a button at the right of the header, **Show these pairs in the Kerning view**, opens the **Kerning** view with those pairs selected, ready to be edited together in the pair inspector.

A glyph that is in no pair shows **No kerning pairs with**, the glyph, then **yet**, above the row that adds one.

{% endcolumn %}

{% column %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-1a9af6990e783c1e40df3d3ce101460dc072df11%2Fkerning-section.png?alt=media" alt="STILL | id: kerning-section | SHOWS: The Kerning section on one glyph: its pairs in two lists by side, each with a drawing, a value field and a remove button, and the row that adds a pair | FRAME: Capital A selected in My glyphs. Inspector scrolled so the whole Kerning section is visible: its header with the count and the Show these pairs in the Kerning view button, the list headed A + …, the list headed … + A, the closed Suggested from the outlines line, and the add row at the bottom | CROP: region: the Kerning section of the inspector | NEEDS: capital A with an outline, at least two kerned pairs in which it comes first and two in which it comes second, and outlines that suggest a value for at least one more common pair with it | SOURCE: Sample font, browser build"><figcaption><p>One list for each side of the glyph. The values are fields.</p></figcaption></figure>

{% endcolumn %}
{% endcolumns %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-08d2af6e4ee49283b31a7e85a389ba1e03908239%2Fkerning-section-empty.png?alt=media" alt="STILL | id: kerning-section-empty | SHOWS: The Kerning section of a glyph that is in no pair: one line of text and the add row | FRAME: One glyph selected that is in no kerning pair and has no suggested pair. Kerning section open, showing the No kerning pairs line and the add row under it | CROP: region: the Kerning section of the inspector | NEEDS: a glyph with an outline that is in no kerning pair and for which the outlines suggest none | SOURCE: Sample font, browser build"><figcaption><p>Before the first pair.</p></figcaption></figure>

### The lists

Pairs are split by the side the glyph is on. With A selected, **A + …** lists the pairs in which A comes first, and **… + A** the pairs in which it comes second. The pair of a glyph with itself is in both.

| Part of a row         | Does                                                                                                                                                                                                                                                       |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The drawing           | Sets the two glyphs with the kerning applied, with a bar under the baseline as wide as the value. Its color tells a negative value from a positive one. Click it to open the pair in the **Kerning** view: its tooltip reads **Show in the Kerning view**. |
| The pair              | Its two glyphs, as text.                                                                                                                                                                                                                                   |
| A count such as `+3`  | The number of accented pairs that follow this one. Hover it for the list.                                                                                                                                                                                  |
| The warning icon      | One of the two glyphs is not in the font, or a ligature replaces the pair. Hover it for which. The drawing of a pair with a missing glyph is faded.                                                                                                        |
| The value field       | The pair's own value.                                                                                                                                                                                                                                      |
| The **Remove** button | Removes the pair's own value, and the pair leaves the list. If it has a base pair to follow, it is inherited from then on. A toast confirms it, with an **Undo** button.                                                                                   |

The value is edited in place: type a number and press `Enter`, or step it with the arrow keys. Setting it to `0` makes the pair no kerning. Like every number field, it takes expressions and the wheel, as listed on [Keyboard Shortcuts](https://mkfont.gitbook.io/mkfont-docs/reference/keyboard-shortcuts.md).

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-427305adf64a657740c95688d80cc0a735fb55f7%2Fkerning-section-row-marks.png?alt=media" alt="STILL | id: kerning-section-row-marks | SHOWS: Two rows of the Kerning section side by side: one followed by accented pairs, with its count, and one with the warning icon and a faded drawing | FRAME: Capital A selected in My glyphs. Kerning section showing at least two rows: a pair that accented pairs follow, with its +n count, and a pair whose other glyph has been deleted, with a faded drawing and the warning icon. Pointer hovering the warning icon so its tooltip is shown | CROP: region: the lists of the Kerning section | NEEDS: capital A with an outline, a kerned pair of A with a letter that has accented forms in the font, and a kerned pair of A with a glyph that has been deleted | SOURCE: Sample font, browser build"><figcaption><p>The count says who else uses the value. The icon says why a pair is not doing anything.</p></figcaption></figure>

### Inherited pairs

While **Accented letters follow their base letter** is on, an accented letter has one more line under its lists: **Inherited from** followed by its base letter and the number of pairs it takes from it. Click the line to open the list. It also holds the pairs where both letters are accented, so it can be longer than the base letter's own list.

An inherited row shows the value it follows in italics, with the link button of the field lit, and its **Remove** button is disabled: there is nothing of its own to remove. Type a value and the pair gets its own, and moves to the lists above.

The reverse is in the lists above. A pair with a value of its own that has a base pair to follow shows the link button unlit. Click it, or empty the field, and the pair drops its value and follows the base pair again: it leaves the list it was in, and on the accented letter it is back in the inherited list.

{% columns %}
{% column %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-8f1a987f158b6e4d5d09024b877132279987f5b5%2Fkerning-section-inherited.png?alt=media" alt="STILL | id: kerning-section-inherited | SHOWS: The inherited list of an accented letter: values in italics with the link button lit, and disabled remove buttons | FRAME: Capital A with an acute accent selected in My glyphs. Kerning section with the Inherited from A line open, listing at least two pairs with italic values and lit link buttons | CROP: region: the Kerning section of the inspector | NEEDS: capital A with an acute accent, with an outline and no pair of its own, in a font where capital A has at least two kerned pairs and Accented letters follow their base letter is on | SOURCE: Sample font, browser build"><figcaption><p>Nothing here was entered for this letter. Every value is the base letter's.</p></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-da8dd19803930a566a91af7011551552604e45b0%2Fkerning-section-own-over-inherited.png?alt=media" alt="STILL | id: kerning-section-own-over-inherited | SHOWS: An accented letter after one of its inherited pairs was given a value: the pair now in the list above, with its link button unlit, and one pair fewer in the inherited list | FRAME: Same glyph as kerning-section-inherited, after a value was typed into one inherited row. The pair shown in the list for its side with a plain value and an unlit link button, the Inherited from A line still open with the remaining pairs | CROP: region: the Kerning section of the inspector | NEEDS: capital A with an acute accent, with an outline and no pair of its own, in a font where capital A has at least two kerned pairs and Accented letters follow their base letter is on | SOURCE: Sample font, browser build"><figcaption><p>One pair now has its own value. The link button takes it back.</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Suggested pairs

**Suggested from the outlines** appears, with a count, when the outlines suggest a value for common pairs of this glyph that are still to do. A dot marks the line while it is closed. Click it to open the list.

| Part of a row    | Does                                                                                                                                                                                        |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The drawing      | Sets the two glyphs at their advances, with a dashed bar as wide as the suggested value. Click it to open the pair in the **Detected** range: its tooltip reads **Show in Detected pairs**. |
| The pair         | Its two glyphs, as text.                                                                                                                                                                    |
| `≈` and a number | The suggested value.                                                                                                                                                                        |
| **Apply**        | Gives the pair that value. The pair moves to the lists above.                                                                                                                               |

The list shows up to 12 pairs, the most common first. Two buttons under it act on all of them, the ones past the last row included:

| Button                               | Does                                                                                                                                                                                 |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Apply all**, followed by the count | Gives every suggested pair of the glyph its value, as one step in the history. A toast confirms it, with an **Undo** button. With one pair suggested, the button reads **Apply it**. |
| **Show in Detected pairs**           | Opens the **Detected** range with these pairs selected.                                                                                                                              |

Only pairs from the common pairs are listed here. The others are in the **Detected** range, described on [Pair Views](https://mkfont.gitbook.io/mkfont-docs/building-a-font/kerning/pair-views.md).

{% columns %}
{% column %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-f5df97e63e05043bebf2d01ebc26c60e2de152b7%2Fkerning-section-suggested.png?alt=media" alt="STILL | id: kerning-section-suggested | SHOWS: The suggested list open: each pair drawn at its advances with a dashed bar, its suggested value and an Apply button, above Apply all and Show in Detected pairs | FRAME: One capital letter selected in My glyphs. Kerning section with the Suggested from the outlines line open, listing at least three pairs, and the two buttons under the list | CROP: region: the Kerning section of the inspector | NEEDS: a capital letter with an outline for which the outlines suggest values for at least three common pairs that are still to do | SOURCE: Sample font, browser build"><figcaption><p>Measured, and waiting. Nothing in this list is in the font yet.</p></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-2220323f04044b8495de4b3d7034e2afde594fb4%2Fkerning-section-suggested-applied.png?alt=media" alt="STILL | id: kerning-section-suggested-applied | SHOWS: The same section after Apply on one row: the pair has left the suggested list and sits in the list for its side with the value as its own | FRAME: Same glyph as kerning-section-suggested, after Apply was clicked on the first suggested row. The pair shown in the list for its side with a solid bar and its value in the field, the suggested list one row shorter and its count one lower | CROP: region: the Kerning section of the inspector | NEEDS: a capital letter with an outline for which the outlines suggest values for at least three common pairs that are still to do | SOURCE: Sample font, browser build"><figcaption><p>Applied. The value is now an ordinary one, to adjust like any other.</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Adding a pair

The last row of the section adds a pair with the selected glyph.

| Control          | Does                                                                                                                                                                                                      |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The side toggle  | Sets whether the selected glyph comes first or second in the new pair. With A selected, it reads **A +** and **+ A**.                                                                                     |
| The field        | Takes the other glyph: a character, a Unicode value such as `U+0041`, or the characters of a ligature such as `fi`. Four to six hexadecimal digits on their own are read as a Unicode value: `0041` is A. |
| **Add the pair** | Adds the pair. `Enter` in the field does the same.                                                                                                                                                        |

The pair appears in its list at 0, with the cursor in its value field, so the next thing typed is its value. If the pair exists already, a toast says so and the cursor goes to its field. If the field names no glyph, a toast reads **Type the other glyph**.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-3ce77514b59b0281aa31c9a2fc314cc7e1a9b066%2Fkerning-section-add-pair.png?alt=media" alt="STILL | id: kerning-section-add-pair | SHOWS: The row that adds a pair: the side toggle set to put the selected glyph second, and the other glyph typed in the field | FRAME: Capital A selected in My glyphs. In the add row of the Kerning section, the side toggle on + A, a capital V typed in the field, the Add the pair button enabled | CROP: region: the add row of the Kerning section, with the list above it | NEEDS: capital A and capital V with outlines, and no pair of V followed by A yet | SOURCE: Sample font, browser build"><figcaption><p>The toggle decides the order. The pair made here is V followed by A.</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://mkfont.gitbook.io/mkfont-docs/building-a-font/kerning.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
