> 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/outline-editor.md). Agents can also search and read this documentation through its [MCP server](https://mkfont.gitbook.io/mkfont-docs/~gitbook/mcp).

# Outline Editor

Adjusting a glyph's imported shape in place: the editor window, its tools, points and contours, snapping, and what an edit does to the glyph.

An imported shape sometimes arrives with a point off its line, a kink in a curve, or a counter that fills in. The outline editor opens that shape inside MkFont, with its points and handles drawn where the font places them, so the correction is made in place. It works on the contours the shape already has: a new shape is drawn in a vector editor and imported.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-14d79aaae06c726c7a42997956fbbe153dc4de9e%2Foutline-editor-window.png?alt=media" alt="STILL | id: outline-editor-window | SHOWS: The outline editor on one glyph: title bar, toolbar, the shape with its points among the metric lines, and the status line | FRAME: One glyph selected in the grid and opened with Edit outline. Editor at its default size, view fitted, Select and move points active, Snap to the font metrics on, Snap to other points off, no point selected. Status line showing the double-click hint | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>The shape is drawn at its fitted size, on the lines it will sit on in text.</p></figcaption></figure>

## What the editor edits

*The glyph's own imported shape, one glyph at a time.*

The editor works on the imported shape of one glyph: the outline that came from its SVG, which the transforms then fit between the metric lines.

| It can                             | With                                                                        |
| ---------------------------------- | --------------------------------------------------------------------------- |
| Move points                        | A drag, the arrow keys, or the **X** and **Y** fields.                      |
| Reshape curves                     | The handles of a point, and the switch between a corner and a smooth point. |
| Add and delete points              | A double-click on the outline, and `Delete`.                                |
| Reverse or delete a contour        | `R`, and **Delete the contour**.                                            |
| Scale and rotate a group of points | The scale and rotate tool.                                                  |

What stays outside it:

* **New contours.** A point is only ever added on an outline that exists. A missing part is drawn in a vector editor and imported, and an import replaces the whole shape, edits made here included.
* **Components.** They are drawn behind the shape as a faint reference, and each one is edited in its own glyph.
* **The clipboard.** Points cannot be copied or pasted, and the editor holds one glyph at a time.

## Opening the editor

*Any glyph of the font opens in it, from the grid, the menus or the inspector.*

| From                        | Do                                                                   |
| --------------------------- | -------------------------------------------------------------------- |
| The glyph grid              | Double-click a glyph, or select it and press `Enter`.                |
| The menus                   | **Glyph › Edit outline**.                                            |
| The context menu of a glyph | **Edit outline**.                                                    |
| The inspector               | The **Edit outline** button, among the actions under the glyph view. |

Opened in one of these ways, the editor takes the keyboard: its keys act at once.

**Edit outline** needs a glyph, so it is unavailable on a slot that is not in the font, and in the pair views. Double-clicking such a slot creates the glyph.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-ddf140196f05c0f2a37f4091856d2d4d731916c8%2Foutline-editor-inspector-button.png?alt=media" alt="STILL | id: outline-editor-inspector-button | SHOWS: The Edit outline button among the actions under the glyph view of the inspector | FRAME: One glyph selected, outline editor closed. Pointer hovering the Edit outline button under the glyph view, its tooltip reading Edit outline (Enter) | CROP: region: the glyph view and the action buttons under it | NEEDS: a letter with an imported outline and no components | SOURCE: Sample font, browser build"><figcaption><p>The same command as a double-click in the grid.</p></figcaption></figure>

## The window

*A floating window: the grid, the sidebar and the inspector stay in use behind it.*

| Part                             | Does                                                                                                                                                          |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title                            | **Outline:** followed by the glyph's character, or by its Unicode value when the character would show nothing. **Outline editor** while no glyph is selected. |
| Title bar                        | Drag it to move the window. Double-click it to send the window back to its default place and size.                                                            |
| **Move the window (arrow keys)** | The grip at the left of the title. With the focus on it, the arrow keys move the window, and `Shift` moves it by larger steps.                                |
| **Stay on this glyph**           | Keeps the editor on its glyph. See [Following the selection](#following-the-selection).                                                                       |
| **Close**                        | Closes the window and returns the focus to where the editor was opened from.                                                                                  |
| Bottom-right corner              | Drag it to resize the window. `Tab` reaches it too: with the focus on it, the arrow keys resize the window, and `Shift` resizes it by larger steps.           |

The window opens the first time over the right side of the grid, clear of the inspector. After that it reopens where it was left, at the size it was left, from one session to the next. It has a minimum size, and it is held inside the MkFont window with its title bar in reach.

It stays open when another tab comes to the front, and shows that font.

If the editor itself fails, it closes with the toast **The outline editor ran into a problem and was closed**. The rest of the window keeps working, and every edit finished before that is in the font.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-c275d0c569cee3c39a425a3efca317b17da759d3%2Foutline-editor-title-bar.png?alt=media" alt="STILL | id: outline-editor-title-bar | SHOWS: The title bar of the editor: the grip, the title naming the glyph, the lock button and Close | FRAME: Outline editor open on one glyph, not locked. Pointer hovering the grip at the left of the title, its tooltip reading Move the window (arrow keys) | CROP: region: the title bar of the outline editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>The grip is the keyboard way to move the window. The whole bar drags.</p></figcaption></figure>

## Following the selection

*The editor shows the selected glyph, until it is told to stay on one.*

Select another glyph and the editor shows it, fitted in the view, with no point selected and the select tool active. Walking the grid with the arrow keys walks the font through the editor: the focus stays in the grid, and a click in the drawing area gives the keys to the editor.

**Stay on this glyph** locks the editor on the glyph it shows. The selection is then free to go elsewhere, and the grid and the inspector follow it while the editor stays put: lock the editor on a part, select a glyph that uses it as a component, and the inspector's glyph view shows that glyph change with each edit of the part.

| While locked                                                           | Result                                                            |
| ---------------------------------------------------------------------- | ----------------------------------------------------------------- |
| **Follow the selection again**                                         | Releases the lock. The editor goes to the selected glyph at once. |
| Another glyph is opened by a double-click, `Enter` or **Edit outline** | The lock moves to that glyph.                                     |
| The locked glyph is deleted                                            | The lock is released.                                             |

Each open font keeps its own lock.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-d8ecdb975c76f109989096870ab5cf9bc3ab5222%2Foutline-editor-locked.png?alt=media" alt="STILL | id: outline-editor-locked | SHOWS: The editor locked on one glyph while a different glyph is selected in the grid and shown in the inspector | FRAME: Outline editor opened on a base letter and Stay on this glyph turned on, its lock button lit. Then an accented letter built on that base letter selected in the grid. Editor still titled with the base letter, inspector showing the accented letter | CROP: window | NEEDS: a base letter and at least three accented letters built from it with components | SOURCE: Sample font, browser build"><figcaption><p>The editor holds the part. The inspector shows a glyph built on it.</p></figcaption></figure>

## The drawing area

*The shape where the font puts it, measured in font units.*

The glyph is drawn after its transforms, among the font's lines. What the lines stand for is on [Font Metrics](https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/font-metrics.md).

| Drawn                                                           | Is                                                                                                             |
| --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| Lines named along the left edge                                 | The metric lines: ascender, cap, x, baseline, descender.                                                       |
| Two faint unnamed lines                                         | The top and the bottom of the em box.                                                                          |
| A shaded box between two vertical lines, with a number under it | The advance, from the origin on the left. The number is the advance width in font units.                       |
| A dotted vertical line                                          | The font's **Width**, when the advance of the glyph differs from it.                                           |
| A faint fill                                                    | The final outline, components included.                                                                        |
| A stronger fill, a line and squares                             | The glyph's own shape, the part edited here. Each square is a point: light in its center, solid once selected. |
| Lines ending in a dot                                           | The handles of a selected point.                                                                               |

Positions are in font units, in the font's space. **X** is measured from the origin, the left edge of the advance. **Y** is the height above the baseline, so a point on the baseline is at `0` and a point under it is negative. The **X** and **Y** fields, the arrow keys and snapping all work in these units, whatever size the SVG was drawn at.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-517174b8749992f137a4653f3a7dbcbc7b46f8f4%2Foutline-editor-drawing-area.png?alt=media" alt="STILL | id: outline-editor-drawing-area | SHOWS: The drawing area: the own shape of the glyph with its points, a component as a faint fill behind it, the named metric lines and the advance number | FRAME: Outline editor open on a glyph that has an outline of its own and one component. View fitted, one curve point selected so its handles show. The component visible only as a faint fill, without points | CROP: region: the drawing area of the outline editor | NEEDS: a glyph with an imported outline and one component placed to the right of that outline | SOURCE: Sample font, browser build"><figcaption><p>Only the shape with points is edited. The component is there to adjust against.</p></figcaption></figure>

### Zoom and pan

| Input                                                       | Does                                                                                                         |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Wheel                                                       | Zooms around the pointer.                                                                                    |
| **Zoom in**, **Zoom out**, or `Ctrl` + `=` and `Ctrl` + `-` | Zoom by steps around the center of the view. The buttons sit in the bottom-right corner of the drawing area. |
| `Space` + drag, or a drag with the middle button            | Pans.                                                                                                        |
| **Fit the glyph in the view (F)**, or `F`                   | Shows the whole glyph again.                                                                                 |

The view zooms out to a quarter of the fitted size and in to 40 times it. It returns to the fitted view each time the editor shows another glyph.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-450004ebf23cfb2b647a7f0d2ccea6389df1129f%2Foutline-editor-zoomed.png?alt=media" alt="STILL | id: outline-editor-zoomed | SHOWS: The view zoomed in on a few points, with the zoom and fit buttons in the corner of the drawing area | FRAME: Outline editor open on one glyph, zoomed in several steps on a corner of the shape where it meets the baseline, two or three points in view, one of them selected. Fit the glyph in the view button enabled | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>Points and handles keep their size on screen at any zoom.</p></figcaption></figure>

## The toolbar

*Buttons in groups, left to right, each with its key in its tooltip.*

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-1cd615a09f24c8afd522e42237b092d0b184ca51%2Foutline-editor-toolbar.png?alt=media" alt="STILL | id: outline-editor-toolbar | SHOWS: The toolbar of the editor: the tool buttons, the point buttons, the contour buttons, the snapping toggles, and the X and Y fields at the right | FRAME: Outline editor open on one glyph with two points selected that share the same height, so every button is enabled. Select and move points active, Snap to the font metrics on, Snap to other points off. Y showing a value, X showing a dash | CROP: region: the toolbar of the outline editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>Left to right: tool, points, contours, snapping, position.</p></figcaption></figure>

| Group    | Button                                       | Key                   | Does                                                                                              |
| -------- | -------------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------- |
| Tool     | **Select and move points**                   |                       | The tool the editor starts with.                                                                  |
| Tool     | **Scale and rotate the selected points (T)** | `T`                   | Puts a box around the selected points. Available with two points or more selected.                |
| Points   | **Corner or smooth point (Enter)**           | `Enter`               | Switches the selected points between corner and smooth. Lit while every selected point is smooth. |
| Points   | **Delete the selected points (Delete)**      | `Delete`, `Backspace` | Removes the selected points.                                                                      |
| Contours | **Select the whole contour (C)**             | `C`                   | Selects every point of each contour that has a selected point.                                    |
| Contours | **Reverse the contour direction (R)**        | `R`                   | Reverses each contour that has a selected point.                                                  |
| Contours | **Delete the contour**                       |                       | Removes each contour that has a selected point.                                                   |
| Snapping | **Snap to the font metrics**                 |                       | On or off. On by default.                                                                         |
| Snapping | **Snap to other points**                     |                       | On or off. Off by default.                                                                        |
| Position | **X**, **Y**                                 |                       | The position of the selected points.                                                              |

The point and contour buttons, and the **X** and **Y** fields, are disabled until a point is selected.

Keys act while the drawing area has the focus. A click in it gives it the focus, and so does opening the editor on a glyph.

| Key          | Does                                                                                                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Escape`     | Backs out one thing at a time: a drag in progress, then the scale and rotate tool, then the selection. With none of them left, it hands the keyboard back to the grid and leaves the window open. |
| `Ctrl` + `A` | Selects every point.                                                                                                                                                                              |
| `Ctrl` + `D` | Deselects.                                                                                                                                                                                        |

Single keys belong to the editor while it has the focus: `Delete` removes points, and the glyphs in the grid are left alone. Undo, redo and save work from the editor as they do anywhere. The copy, cut and paste shortcuts do nothing there.

Every key of the editor is also listed on [Keyboard Shortcuts](https://mkfont.gitbook.io/mkfont-docs/reference/keyboard-shortcuts.md).

## Selecting points

*A click, `Shift` to add, a rectangle for several.*

| Input                                | Selects                                                            |
| ------------------------------------ | ------------------------------------------------------------------ |
| Click a point                        | That point alone.                                                  |
| `Shift` + click a point              | Adds it to the selection. On a point already selected, removes it. |
| Click the outline between two points | The point at each end of that stretch. With `Shift`, adds them.    |
| Drag from empty space                | The points inside the rectangle. With `Shift`, adds them.          |
| Click empty space                    | Nothing: the selection is cleared.                                 |
| `C`                                  | The whole contour of each selected point.                          |

The inside of the shape counts as empty space: only its outline and its points take a click.

A selected point shows its handles. With points selected, the status line reads how many are selected out of the total.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-7d4f3712449313cf83f46b44f385d5a51ac1d8e4%2Foutline-editor-select-rectangle.png?alt=media" alt="STILL | id: outline-editor-select-rectangle | SHOWS: A selection rectangle dragged across part of the shape, the points inside it turning solid | FRAME: Outline editor open on one glyph. A drag in progress from empty space above the shape down across its upper points, the rectangle drawn in the accent color, the points inside it solid and the others light. Pointer at the lower corner of the rectangle | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>The rectangle takes the points it covers, on every contour.</p></figcaption></figure>

## Moving points

*By hand, by one unit, or to a typed position.*

| Input                               | Does                                                                           |
| ----------------------------------- | ------------------------------------------------------------------------------ |
| Drag a selected point               | Moves every selected point. The point under the pointer is the one that snaps. |
| Drag the outline between two points | Moves that stretch by its two end points.                                      |
| `Shift` while dragging              | Keeps the move on one axis.                                                    |
| `Ctrl` while dragging               | Turns snapping off for that drag.                                              |
| Arrow keys                          | Move the selected points by 1 font unit. With `Shift`, by 10.                  |
| **X**, **Y**                        | Put every selected point at the typed position on that axis.                   |

The handles of a point travel with it.

The **X** and **Y** fields show the position the selected points share. Where they differ on an axis, that field shows a dash, and typing a value in it brings them all to that value: select the points along the foot of a letter, type `0` in **Y**, and they all sit on the baseline. Both are number fields, so they scrub when dragged sideways, step with the arrow keys and take expressions.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-05bfab41c9271f05e516d7b2c9b134b9ac552019%2Foutline-editor-xy-fields.png?alt=media" alt="STILL | id: outline-editor-xy-fields | SHOWS: The X and Y fields with several points selected that share a height: Y holds their value and X shows a dash | FRAME: Outline editor open on one glyph. The points along the bottom of the shape selected, all at the same height above the baseline and at different horizontal positions. Y showing their shared value, X showing a dash. Status line showing the count of selected points | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>A value in a field is a position all the selected points share.</p></figcaption></figure>

## Reshaping curves

*Handles bend the curve on each side of a point.*

Select a point to show its handles, then drag the dot at the end of one.

| Point              | Dragging a handle                                                                                               |
| ------------------ | --------------------------------------------------------------------------------------------------------------- |
| Smooth             | Turns the opposite handle to stay in line with it, at its own length. The curve stays smooth through the point. |
| Smooth, with `Alt` | Leaves the opposite handle where it is. The point becomes a corner.                                             |
| Corner             | Moves that handle alone.                                                                                        |

A point is smooth while its two handles are pulled out and in line. Break one with `Alt` and it behaves as a corner from then on.

<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="CLIP | id: outline-editor-drag-handle | SHOWS: Dragging a handle of a smooth point turns the opposite handle with it, and Alt breaks the point so one handle moves alone | BEATS: 1) Outline editor on one glyph, a smooth curve point selected, its two handles in line. 2) The pointer drags one handle and the opposite handle turns to stay in line, the curve changing on both sides of the point. 3) The handle comes back. 4) The pointer drags the same handle again with Alt held: the opposite handle stays where it is and the curve takes a kink at the point | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build | LENGTH: 8 seconds, loops"><figcaption><p>One drag bends both sides of a smooth point. With Alt, only one.</p></figcaption></figure>

### Corner or smooth

**Corner or smooth point (Enter)**, or `Enter`, converts the selected points. A double-click on a point selects it alone and converts it.

| Converted to | Result                                                                                                                                      |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Corner       | The handles of the point are removed.                                                                                                       |
| Smooth       | The two handles are brought in line, each at its own length. A point that lacks a handle gets a pair worked out from the points next to it. |

With several points selected, a single corner among them makes them all smooth. They all become corners only when they are all smooth.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-9a0fd5f8db866964005f7e7ae34456437c7bbee6%2Foutline-editor-corner-before.png?alt=media" alt="STILL | id: outline-editor-corner-before | SHOWS: A corner point selected, the outline meeting at an angle, the Corner or smooth point button unlit | FRAME: Outline editor open on one glyph, zoomed on a corner of the shape. That corner point selected, no handles on it. Corner or smooth point button unlit | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>A corner: the outline changes direction at the point.</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-5eceda6ae28e0f3de1306e9aab59583d60971616%2Foutline-editor-smooth-after.png?alt=media" alt="STILL | id: outline-editor-smooth-after | SHOWS: The same point turned smooth: two handles in line and the outline rounded through it, the button lit | FRAME: Same glyph, zoom and point as outline-editor-corner-before, after Enter. The point shows two handles in line, the outline curves through it, and the Corner or smooth point button is lit | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>The same point after Enter.</p></figcaption></figure>

### Adding a point

Double-click the outline between two points. A point is added there and selected, and the shape stays as it was: the new point takes the handles that keep the curve in place.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-70f270777a8ab3d2915e5890a3441fa462873aac%2Foutline-editor-point-added.png?alt=media" alt="STILL | id: outline-editor-point-added | SHOWS: A point added in the middle of a curve by a double-click, selected, with handles that keep the curve as it was | FRAME: Outline editor open on one glyph, zoomed on one long curve of the shape. A new point halfway along it, selected, its two handles lying along the curve. Status line showing 1 point selected | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>A new point changes nothing until it is moved.</p></figcaption></figure>

### Deleting points

`Delete`, `Backspace` or **Delete the selected points (Delete)** removes the selected points, and the outline joins the points on each side of the gap. A contour left with fewer than two points is removed with them.

Deleting the last contour leaves the glyph with no outline, and the editor shows its [message](#messages-in-place-of-the-shape) for that case. Undo brings the shape back.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-af3719576559608fd554c51bdecc2aa1ed36b604%2Foutline-editor-delete-before.png?alt=media" alt="STILL | id: outline-editor-delete-before | SHOWS: Two points selected on a bump of the outline, before they are deleted | FRAME: Outline editor open on one glyph, zoomed on a part of the shape that juts out. The two points that form the jut selected | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>Two points hold this part of the outline out.</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-608d70762ba1f5b54874bdbadbd687f68802a4d1%2Foutline-editor-delete-after.png?alt=media" alt="STILL | id: outline-editor-delete-after | SHOWS: The same place after Delete: the two points are gone and the outline joins their neighbors | FRAME: Same glyph and zoom as outline-editor-delete-before, after Delete. No point selected, the outline joining the two neighboring points, status line showing the double-click hint | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>The outline closes over the gap.</p></figcaption></figure>

## Contours

*Whole contours are selected, deleted and reversed from any one of their points.*

A shape is made of one or more contours: the outside of a letter is one, each counter inside it is another. The contour commands act on every contour that has a selected point, so one point is enough to name a contour.

| Command                               | Key | Does                                                                            |
| ------------------------------------- | --- | ------------------------------------------------------------------------------- |
| **Select the whole contour (C)**      | `C` | Selects all its points, ready to be moved, or scaled and rotated, as one piece. |
| **Reverse the contour direction (R)** | `R` | Reverses the order of its points. No point moves.                               |
| **Delete the contour**                |     | Removes it.                                                                     |

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-abd9415b87776f4d24e267c1f60e5869db3c4255%2Foutline-editor-contour-selected.png?alt=media" alt="STILL | id: outline-editor-contour-selected | SHOWS: One contour selected whole with C: every point of the inner contour solid, the points of the outer contour light | FRAME: Outline editor open on a letter with a counter. One point of the inner contour clicked, then C pressed. All points of the inner contour solid, all points of the outer contour light. Status line showing the count | CROP: outline-editor | NEEDS: a letter with a counter, such as an O, with an imported outline | SOURCE: Sample font, browser build"><figcaption><p>One click and C: the counter is selected, the outside is left alone.</p></figcaption></figure>

### Direction and holes

A font fills a shape by the direction of its contours. A contour inside another cuts a hole only when it runs the opposite way around. When both run the same way, the inner one is filled over, and the counter shows solid in the grid and in text.

Select a point of the inner contour and press `R`. The editor fills the shape by the same rule as the font, so the hole opens as the key is pressed.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-a98b1c5e726dee1e798ce92dbf7f1711d22f129c%2Foutline-editor-reverse-before.png?alt=media" alt="STILL | id: outline-editor-reverse-before | SHOWS: A letter whose inner contour runs the same way as its outer contour: the counter is filled | FRAME: Outline editor open on a letter with a counter whose two contours run in the same direction. One point of the inner contour selected. The fill covers the counter, the inner contour visible only as a line with points across the fill | CROP: outline-editor | NEEDS: a letter with a counter, such as an O, whose inner contour runs in the same direction as its outer contour | SOURCE: Sample font, browser build"><figcaption><p>Two contours running the same way: the inner one cuts nothing.</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-1436e95ff798bfeb62df03d1c0dd838b7e142da5%2Foutline-editor-reverse-after.png?alt=media" alt="STILL | id: outline-editor-reverse-after | SHOWS: The same letter after R on the inner contour: the counter is a hole, and no point has moved | FRAME: Same glyph and selection as outline-editor-reverse-before, after R. The counter is clear of fill, every point where it was | CROP: outline-editor | NEEDS: a letter with a counter, such as an O, whose inner contour runs in the same direction as its outer contour | SOURCE: Sample font, browser build"><figcaption><p>Reversed, the inner contour cuts its hole.</p></figcaption></figure>

## Scale and rotate

*A box around the selected points, with handles to scale them and a knob to turn them.*

**Scale and rotate the selected points (T)**, or `T`, draws a dashed box around the selected points, with a handle on each corner and on the middle of each edge, and a knob above it. The tool needs two points or more selected. `T` again, `Escape` or **Select and move points** leaves it, and it ends by itself when fewer than two points stay selected.

| Input                 | Does                                                                 |
| --------------------- | -------------------------------------------------------------------- |
| Drag a corner handle  | Scales on both axes. The opposite corner stays in place.             |
| Drag an edge handle   | Scales on one axis. The opposite edge stays in place.                |
| `Shift` while scaling | Keeps the proportions.                                               |
| `Alt` while scaling   | Scales from the center of the box.                                   |
| Drag the knob         | Rotates around the center of the box. With `Shift`, in steps of 15°. |
| Drag inside the box   | Moves the selected points. With `Shift`, on one axis.                |

The handles of each point scale and turn with it, and are hidden while the tool is active. Scaling, rotating and a drag inside the box never snap.

The box is measured on the points themselves, so a curve can bulge past its edge. Points that all lie on one horizontal or vertical line give a box with no extent on the other axis, and are left alone on that axis.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-b1fed8f99d38033f50042e96b259d1c7e12864a2%2Foutline-editor-transform-box.png?alt=media" alt="STILL | id: outline-editor-transform-box | SHOWS: The scale and rotate tool on one contour: a dashed box around its points, handles on the corners and edges, and the knob above | FRAME: Outline editor open on a letter with a counter. The inner contour selected whole with C, then T pressed. Dashed box around the points of the inner contour with its handles and its knob, the Scale and rotate the selected points button lit, no point handles showing | CROP: outline-editor | NEEDS: a letter with a counter, such as an O, with an imported outline | SOURCE: Sample font, browser build"><figcaption><p>The box frames the selected points, here one whole contour.</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-308dc31d5c6138d10eea6d9a40dbc0f883c812f0%2Fplaceholder-wide.jpg?alt=media" alt="CLIP | id: outline-editor-scale-rotate | SHOWS: The scale and rotate tool in use: a corner handle scales the selected contour, the knob turns it | BEATS: 1) Outline editor on a letter with a counter, the inner contour selected, the dashed box around it. 2) The pointer drags a corner handle outward with Shift held and the contour grows in proportion, the opposite corner in place. 3) The pointer drags the knob and the contour turns around the center of the box. 4) Both changes are undone and the contour is back | NEEDS: a letter with a counter, such as an O, with an imported outline | SOURCE: Sample font, browser build | LENGTH: 8 seconds, loops"><figcaption><p>Corners and edges scale. The knob turns.</p></figcaption></figure>

To scale, turn or mirror a whole glyph and leave its points as they were imported, use the fields of the **Transforms** section: see [Transforms](https://mkfont.gitbook.io/mkfont-docs/building-a-font/glyph-inspector/transforms.md).

## Snapping

*A dragged point lands on the font's lines, and on the positions of other points.*

| Toggle                       | Default | A dragged point snaps to                                                                                                                                      |
| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Snap to the font metrics** | On      | In height: the baseline, the x-height, the cap height, the ascender, the descender, and the top and bottom of the em box. Across: the origin and the advance. |
| **Snap to other points**     | Off     | The horizontal position and the height of every point that is not selected, each on its own.                                                                  |

Each axis snaps separately, so a point can land on the baseline and under another point in one drag. A line in the accent color shows what it has snapped to. With both toggles on and two targets equally near, the metric wins.

A point snaps when it comes within 6 pixels of a target on screen, so zooming in makes snapping finer.

| Case                                                                         | Snapping                                                       |
| ---------------------------------------------------------------------------- | -------------------------------------------------------------- |
| The point under the pointer                                                  | Snaps. The other selected points follow it by the same amount. |
| `Ctrl` held during the drag                                                  | Off for that drag.                                             |
| `Shift` held during the drag                                                 | The axis the move is kept on is left alone.                    |
| Handles, the arrow keys, the **X** and **Y** fields                          | Never snap.                                                    |
| A drag of the outline between two points, or inside the scale and rotate box | Never snaps.                                                   |
| Scaling and rotating                                                         | Never snap.                                                    |

Both toggles are remembered from one session to the next, for every font.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-ddd8625974bded235bdfbea7e29929c9764258a0%2Foutline-editor-snap-metrics.png?alt=media" alt="STILL | id: outline-editor-snap-metrics | SHOWS: A point dragged near the baseline lands on it, and a line in the accent color marks the snap | FRAME: Outline editor open on one glyph, zoomed on the foot of the shape. Snap to the font metrics on, Snap to other points off. A drag in progress on a bottom point, the point on the baseline, an accent line running along the baseline across the drawing area. Pointer on the point. Y showing 0 | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>On the line, with Y at 0.</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-d2f5fac7737c6b207d21bf15fd2c04904c36cd0d%2Foutline-editor-snap-points.png?alt=media" alt="STILL | id: outline-editor-snap-points | SHOWS: With Snap to other points on, a dragged point lines up with another point of the shape on both axes at once | FRAME: Outline editor open on one glyph. Snap to the font metrics off, Snap to other points on. A drag in progress on one point, snapped under one unselected point and level with another: a vertical and a horizontal accent line cross at the dragged point, each passing through the point it snapped to. Pointer on the dragged point | CROP: outline-editor | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>Two lines, two targets: one for each axis.</p></figcaption></figure>

## The status line

*The bottom of the window: what is selected, or what a double-click does.*

| Shows                                                                              | When                                                                                                                                                                                                                                   |
| ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Double-click the outline to add a point, a point to make it smooth or a corner** | No point is selected.                                                                                                                                                                                                                  |
| The number of selected points, out of the number of points in the shape            | Points are selected.                                                                                                                                                                                                                   |
| An information mark at the right                                                   | The glyph's **Bounds** is anything other than **Imported bounds**. Its tooltip reads **This glyph is placed by its outline: moving an outer point shifts the shape when released**. See [Edits and transforms](#edits-and-transforms). |

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-dc336e2aba785e4e7a93b75f400189bf7f72b914%2Foutline-editor-status-line.png?alt=media" alt="STILL | id: outline-editor-status-line | SHOWS: The status line with points selected, and the information mark with its tooltip about a glyph placed by its outline | FRAME: Outline editor open on a glyph whose Bounds is Mixed bounds vertical, three points selected. Status line showing the count of selected points. Pointer hovering the information mark at the right of the line, its tooltip showing | CROP: region: the bottom of the outline editor, with the status line and the tooltip | NEEDS: a letter with an imported outline, its transforms unchanged from the defaults of a new font | SOURCE: Sample font, browser build"><figcaption><p>The mark is there with the Bounds a new font uses.</p></figcaption></figure>

## Messages in place of the shape

*What the window says when the glyph has no shape of its own to edit, and what it offers.*

| Message                                                                  | When                                                                                              | Offers                                                                       |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| **Select a glyph to edit its outline.**                                  | Nothing is selected, and the editor is not locked.                                                | Nothing. The title reads **Outline editor** and the lock button is disabled. |
| The glyph, then **is not in the font yet.**                              | The editor follows the selection to a slot with no glyph, or a tile led to one.                   | **Create empty glyph**.                                                      |
| **This glyph has no outline. Import an SVG, then adjust it here.**       | The glyph has no shape of its own and no components.                                              | **Import SVG**, which asks for a file.                                       |
| **This glyph is drawn by its components only. Edit the glyphs it uses.** | The glyph has components and no shape of its own.                                                 | A tile for each glyph it uses.                                               |
| **This outline is scaled to nothing. Check the glyph’s scale.**          | The transforms scale the shape to zero, as **Scale** on **Manual** with a **Factor** of `0` does. | Nothing. Correct the scale in the **Transforms** section.                    |

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-ad8ec3d49c2a22739c0cc4750eaaa3349cf1d699%2Foutline-editor-state-none.png?alt=media" alt="STILL | id: outline-editor-state-none | SHOWS: The editor with nothing selected: the title Outline editor, the message asking for a glyph, the lock button disabled | FRAME: Outline editor open and not locked, then the selection cleared. Title reading Outline editor, message Select a glyph to edit its outline centered in the window, lock button dimmed | CROP: outline-editor | NEEDS: any font | SOURCE: Sample font, browser build"><figcaption><p>The window waits for a selection.</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-d43f3e75055a80ba3d33998bb8c86356998e93b2%2Foutline-editor-state-missing.png?alt=media" alt="STILL | id: outline-editor-state-missing | SHOWS: The editor following the selection to a slot with no glyph: the message that it is not in the font yet, and the Create empty glyph button | FRAME: Outline editor open and not locked. A slot with no glyph selected in the grid. Editor titled with that character, message naming it as not in the font yet, Create empty glyph button under the message | CROP: window | NEEDS: a Unicode block in which some characters have glyphs and others do not, both kinds visible without scrolling | SOURCE: Sample font, browser build"><figcaption><p>A slot with no glyph has nothing to edit yet.</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-de2c1c6503c5aa9838c9233e983d8668b7cc85de%2Foutline-editor-state-empty.png?alt=media" alt="STILL | id: outline-editor-state-empty | SHOWS: The editor on a glyph with no outline and no components: the message and the Import SVG button | FRAME: Outline editor open on a glyph that has no outline and no components. Message This glyph has no outline. Import an SVG, then adjust it here, with the Import SVG button under it | CROP: outline-editor | NEEDS: a glyph with no outline and no components, next to a glyph with an outline | SOURCE: Sample font, browser build"><figcaption><p>The button imports a shape into this glyph.</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-e555e29a09064c227a7fe4f3e43898ff3b5a0bf8%2Foutline-editor-state-components.png?alt=media" alt="STILL | id: outline-editor-state-components | SHOWS: The editor on a glyph drawn only by components: the message, and one tile for each glyph it uses | FRAME: Outline editor open on an accented letter that has no outline of its own. Message This glyph is drawn by its components only. Edit the glyphs it uses, and under it two tiles, one for the base letter and one for the accent, each with a thumbnail and the character | CROP: outline-editor | NEEDS: an accented lowercase letter with no outline of its own, built from two components: its base letter as control component, and an accent | SOURCE: Sample font, browser build"><figcaption><p>The shapes live in the parts. Each tile opens one.</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-9b41b0ecc72aa2020f9e861c3389a2cd8ffc0d87%2Foutline-editor-state-unfit.png?alt=media" alt="STILL | id: outline-editor-state-unfit | SHOWS: The editor on a glyph whose transforms scale its shape to zero: the message pointing at the scale | FRAME: One glyph selected, Scale on Manual and Factor set to 0 in the Transforms section. Outline editor open on it, showing the message that the outline is scaled to nothing, with no button. Inspector visible beside it with the Factor field at 0 | CROP: window | NEEDS: a glyph with an imported outline | SOURCE: Sample font, browser build"><figcaption><p>A shape with no size has no points to place.</p></figcaption></figure>

### Component tiles

A glyph drawn only by components has no points of its own: its shapes belong to the glyphs it places. The editor shows one tile for each of those glyphs, in the order of the components, each glyph once.

Click a tile and the editor shows that glyph, which is also selected in the grid. If the editor was locked, the lock moves with it. A tile whose glyph is drawn only by components leads to its own tiles.

A dimmed tile is a glyph that is not in the font yet. It leads to the message for that case, and to **Create empty glyph**.

What a component is, and why an edit to a part shows in every glyph that places it, is on [Building with Components](https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/building-with-components.md). The fields of a component are on [Components](https://mkfont.gitbook.io/mkfont-docs/building-a-font/glyph-inspector/components.md).

## History and undo

*Each finished gesture is one step.*

An edit reaches the font when its gesture ends: on the release of a drag, on the press of a key. The grid, the inspector and the text preview update at that moment, and the step is added to the history under one of these names, followed by the glyph.

| Step                     | Made by                                                                                               |
| ------------------------ | ----------------------------------------------------------------------------------------------------- |
| **Move points of**       | A drag of points, the arrow keys, the **X** and **Y** fields, a drag inside the scale and rotate box. |
| **Reshape a curve of**   | A drag of a handle.                                                                                   |
| **Add a point to**       | A double-click on the outline.                                                                        |
| **Delete points of**     | `Delete`.                                                                                             |
| **Convert points of**    | A switch between corner and smooth.                                                                   |
| **Transform points of**  | A scale or a rotation with the scale and rotate tool.                                                 |
| **Reverse a contour of** | `R`.                                                                                                  |
| **Delete a contour of**  | **Delete the contour**.                                                                               |

Presses of the arrow keys that follow each other closely, on the same selection, make one step. So does scrubbing or stepping the **X** or the **Y** field. A gesture that ends where it began adds no step.

{% columns %}
{% column %}
`Ctrl` + `Z` works from the editor. The shape is drawn again as it was, and the selection stays on the same points when the contours still have the same number of points. The steps are listed with the others in the **History** panel: see [History](https://mkfont.gitbook.io/mkfont-docs/building-a-font/history.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-0a5603f1dfa6c9b15612b5ec2a90e8a2a588065f%2Foutline-editor-history-steps.png?alt=media" alt="STILL | id: outline-editor-history-steps | SHOWS: The History panel after a few edits in the outline editor, each step named after what it did and the glyph it did it to | FRAME: Sidebar on the History panel. In the outline editor, on one glyph, in this order: a point dragged, a handle dragged, a point added by a double-click, a point turned smooth with Enter. History panel listing Move points of, Reshape a curve of, Add a point to and Convert points of, each followed by the glyph | CROP: sidebar | NEEDS: a letter with an imported outline that has both curves and corners | SOURCE: Sample font, browser build"><figcaption><p>One gesture, one named step.</p></figcaption></figure>

{% endcolumn %}
{% endcolumns %}

## Linked glyphs

*The first edit ends the link to the SVG file.*

A glyph linked to an SVG file reloads from that file each time the file is saved, and a reload would replace the edit. Links are described on [Linked Files & External Editing](https://mkfont.gitbook.io/mkfont-docs/import-and-export/linked-files-and-external-editing.md). So the first edit made here ends the link. A toast says so: **Unlinked**, the glyph, **from** and the file name, with the detail **Its outline was edited here: the file no longer replaces it.** The slot stops reading "linked to a file".

Undo brings the shape back as it was. The link stays ended.

{% hint style="warning" %}

## An external editor session ends the same way

A glyph opened with **Edit in external editor** is linked to the file that editor has open. An edit made in the outline editor ends that link too, and later saves in the external editor stop reaching the glyph. Run **Edit in external editor** again to continue there, from the shape as it is now.
{% endhint %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-85dcb2d40ba9c956e87bc179d0189efcac43c02c%2Foutline-editor-unlinked-toast.png?alt=media" alt="STILL | id: outline-editor-unlinked-toast | SHOWS: The toast that follows the first edit of a linked glyph: the glyph was unlinked from its file | FRAME: A glyph linked to an SVG file, opened in the outline editor, one of its points moved a moment before. Toast reading Unlinked, the glyph, from and the file name, with the detail line Its outline was edited here: the file no longer replaces it. Pointer away from the toast | CROP: window | NEEDS: a glyph linked to an SVG file | SOURCE: Sample font + fixture: an SVG file saved from a vector editor, desktop"><figcaption><p>The edit is kept. The file stops replacing it.</p></figcaption></figure>

## Edits and transforms

*The editor shows the fitted shape and stores the edit in the imported shape, which the transforms then fit again.*

The points are drawn where the transforms put them: scaled, placed, and mirrored, rotated or skewed if the glyph is. An edit is converted back into the imported shape's own space before it is stored, so it holds when a transform or a metric changes later. The imported box, the frame the SVG came with, is kept as it was. The outline box, the tight rectangle around the shape, is measured again.

With **Imported bounds**, a point stays where it is dropped. With any other **Bounds** option, the outline box is fitted on one axis or on both, and moving an outermost point changes that box: on release the shape is fitted again.

| Bounds                      | Moving an outermost point                                                                                         |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **Imported bounds**         | The point stays where it is dropped.                                                                              |
| **Mixed bounds vertical**   | Left or right: the shape is placed again from its new side edge, and its advance follows if **Auto width** is on. |
| **Mixed bounds horizontal** | Up or down: the shape is scaled and placed again from its new height.                                             |
| **Glyph bounds**            | Both of the above.                                                                                                |

The information mark in the status line is the reminder that the glyph is in one of these cases.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-f1c868cd4409f94b3cc851c91611cc4cdbd1f794%2Foutline-editor-refit-before.png?alt=media" alt="STILL | id: outline-editor-refit-before | SHOWS: The leftmost point of a shape dragged to the left of the origin, before the button is released | FRAME: Outline editor open on a glyph whose Bounds is Mixed bounds vertical, Horizontal on Min x, Shift at 0. A drag in progress on the leftmost point of the shape, the point well to the left of the origin line, the rest of the shape where it was. Pointer on the point | CROP: outline-editor | NEEDS: a letter with an imported outline, its transforms unchanged from the defaults of a new font | SOURCE: Sample font, browser build"><figcaption><p>During the drag, the point leaves the advance.</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-407b2e1ac6272d3049cf93411ba46ca8353c8330%2Foutline-editor-refit-after.png?alt=media" alt="STILL | id: outline-editor-refit-after | SHOWS: The same shape after the release: the whole shape has moved right so its new left edge sits on the origin, and the advance is wider | FRAME: Same glyph as outline-editor-refit-before, after the button is released. The moved point on the origin line, every other point further right than before, the advance number under the glyph larger | CROP: outline-editor | NEEDS: a letter with an imported outline, its transforms unchanged from the defaults of a new font | SOURCE: Sample font, browser build"><figcaption><p>On release the shape is fitted again from its new edge.</p></figcaption></figure>

A transform changed while the editor is open redraws the shape at its new place. The points are read again from the refitted shape, and their number can change with it, so the selection may be dropped.

How a box is fitted between the metric lines, as a model, is on [Fitting a Shape](https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/fitting-a-shape.md).


---

# 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/outline-editor.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.
