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

# Copy & Paste

What a copied glyph carries, where each paste command puts it, within a font or between two open ones, and what MkFont exchanges with the system clipboard.

A copied glyph carries its shape, its transforms, its width settings and its components. **Paste** gives all of it to other slots, and the narrower paste commands give one part of it. The same commands move glyphs between two open fonts, and take SVG markup copied in a vector editor.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-7e97aae96ff8eaede6deb0fb5b81d3c36c1a6e60%2Fcopy-and-paste-edit-menu.png?alt=media" alt="STILL | id: copy-and-paste-edit-menu | SHOWS: The clipboard commands of the Edit menu, with their shortcuts | FRAME: My glyphs, one glyph selected. Edit menu open in the title bar, no entry hovered, showing Undo, Redo, Copy glyphs, Paste, Paste in place (same slots), Paste transforms and Delete, each with its shortcut | CROP: region: the Edit menu and the title bar above it | NEEDS: a glyph with an outline | SOURCE: Sample font, browser build"><figcaption><p>One copy command, and a paste for each amount of the copy to apply.</p></figcaption></figure>

## Copying glyphs

*Copy takes every selected glyph whole, and puts the first one on the system clipboard as SVG markup.*

| Control                              | Where                                                         |
| ------------------------------------ | ------------------------------------------------------------- |
| `Ctrl` + `C`, **Edit › Copy glyphs** | Any range that lists glyphs.                                  |
| **Copy glyph**                       | The action buttons of the inspector, with one glyph selected. |
| **Copy**                             | A slot's context menu, and **More actions** in the inspector. |

Each copies the selected slots that have a glyph, in the order they were selected. Slots that are not in the font are left out, and the commands are dimmed when no selected slot has a glyph. How a selection gets its order is on [Search & Selection](https://mkfont.gitbook.io/mkfont-docs/building-a-font/search-and-selection.md).

| Copied                                                      | As                                                                                                                                                      |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The imported shape                                          | The shape as it was imported. The transforms travel beside it and fit it again where it is pasted.                                                      |
| The **Transforms** section                                  | Every field, each one linked to the font default or overridden as it was.                                                                               |
| **Width**, **Height**, **Export**, **Flatten** and its mode | The values of the **Glyph** section.                                                                                                                    |
| The components                                              | Each one with all its settings. A component names the character whose glyph it draws, and only **Paste in place (same slots)** brings that glyph along. |
| **Name**                                                    | Pasted in one case, described under [What a slot receives](#what-a-slot-receives).                                                                      |

The kerning pairs a glyph is in and its link to an SVG file are not part of the copy.

A toast confirms: **Copied A** for one glyph, **Copied 3 glyphs** for several.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-4a38c0fa507645fc0ea4d57c76a62591a9160650%2Fcopy-and-paste-copied-toast.png?alt=media" alt="STILL | id: copy-and-paste-copied-toast | SHOWS: The toast that confirms a copy of several glyphs, with their count | FRAME: My glyphs. Three glyphs selected one after the other with Ctrl and a click, then Ctrl+C pressed a moment before. Toast reading Copied 3 glyphs on screen | CROP: region: the viewport and the toast | NEEDS: at least three glyphs with outlines | SOURCE: Sample font, browser build | NOTE: The toast is the subject, so it is on screen"><figcaption><p>The count is the number of glyphs taken, which can be lower than the number of slots selected.</p></figcaption></figure>

The copy is a snapshot. Editing or deleting the original afterwards changes nothing in what is pasted, and the copied glyphs stay available after the font they came from is closed. The next **Copy** replaces them.

### What reaches the system clipboard

MkFont holds the copied glyphs itself. The system clipboard receives text: the SVG markup of the first copied glyph.

| In the markup                                            | Is                                                                                                                           |
| -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| A path                                                   | The imported shape, before its transforms.                                                                                   |
| The `viewBox`                                            | The imported box, starting at `0 0`.                                                                                         |
| A second path, a rectangle stroked in the **Mark color** | The same box, drawn so that MkFont reads it back as the marked box.                                                          |
| The glyph's settings                                     | The **Transforms** fields, **Width**, **Height**, **Export**, and **Flatten** with its mode, written on the `<svg>` element. |

The components, the **Name** and the other copied glyphs are not in the markup. The **Mark color** is set in **Preferences**, on [Preferences](https://mkfont.gitbook.io/mkfont-docs/reference/preferences.md), and the marked box is explained on [Preparing SVGs](https://mkfont.gitbook.io/mkfont-docs/import-and-export/preparing-svgs.md).

### When the keys copy text

While text is selected in the window, `Ctrl` + `C` copies that text and leaves the copied glyphs as they were. Text can be selected by dragging across the **Text preview** panel, which also selects the slots of its characters: to copy those glyphs, use **Copy glyph** or **Copy**.

While the cursor is in a field, `Ctrl` + `C` and `Ctrl` + `V` act on the text of the field. When keys go to a field is on [Keyboard Shortcuts](https://mkfont.gitbook.io/mkfont-docs/reference/keyboard-shortcuts.md).

## Pasting onto the selection

*Paste deals the copied glyphs out to the selected slots, in the order the slots were selected.*

Select the slots to fill, then press `Ctrl` + `V`, or choose **Edit › Paste** or **Paste** in a slot's context menu. The first selected slot takes the first copied glyph, the second slot the second glyph, and so on.

| Selection                      | Result                                                                                                                 |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| As many slots as copied glyphs | One glyph in each slot.                                                                                                |
| More slots than copied glyphs  | The copied glyphs start over from the first. Three glyphs over five slots land as first, second, third, first, second. |
| Fewer slots than copied glyphs | The first copied glyphs are pasted, one per slot. The others are not pasted.                                           |
| One glyph copied               | Every selected slot takes it.                                                                                          |
| Nothing selected               | Nothing is pasted. A toast reads **Select where to paste**, with **Pasted glyphs are distributed over the selection.** |

<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: copy-and-paste-distribution | SHOWS: How copied glyphs are dealt out to the selected slots, when there are more slots than glyphs and when there are fewer | ELEMENTS: Two rows. Top row, labelled more slots than glyphs: three copied glyphs numbered 1 to 3 on the left, five selected slots on the right numbered in the order they were selected, arrows from glyph 1 to slots 1 and 4, from glyph 2 to slots 2 and 5, from glyph 3 to slot 3. Bottom row, labelled fewer slots than glyphs: the same three copied glyphs, two selected slots, arrows from glyph 1 to slot 1 and from glyph 2 to slot 2, glyph 3 greyed with no arrow | MUST BE CLEAR: Slots are filled in the order they were selected, the copied glyphs start over when they run out, and a copied glyph with no slot left is not pasted"><figcaption><p>The order of the selection decides which slot gets which 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-c6f44bc3d34c09907a2a40e2f887c5bb9e668a99%2Fcopy-and-paste-paste-before.png?alt=media" alt="STILL | id: copy-and-paste-paste-before | SHOWS: Five slots that are not in the font selected as the target of a paste, with three glyphs copied | FRAME: A Unicode block as the range. Three glyphs with outlines copied with Ctrl+C, then five slots with no glyph selected one after the other with Ctrl and a click. Header status line ending with 5 selected | CROP: region: the viewport header and the rows holding the selected slots | 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>Before: five slots waiting, three glyphs copied.</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-4b5616cb9fca4206d934300203577d665c3456b9%2Fcopy-and-paste-paste-after.png?alt=media" alt="STILL | id: copy-and-paste-paste-after | SHOWS: After Paste the five slots hold the three copied glyphs in order, then the first two again | FRAME: Same block and selection as copy-and-paste-paste-before, after Ctrl+V. The five slots now draw glyphs: the three copied shapes in the order they were copied, followed by the first and the second again | CROP: region: the viewport header and the rows holding the selected slots | 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>After: the first two glyphs come round again.</p></figcaption></figure>

### What a slot receives

| The selected slot  | After **Paste**                                                                                                                                                                                                                                |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Is not in the font | A glyph is created there with the copied shape, transforms, **Width**, **Height**, **Export**, **Flatten** and components. Its **Name** is left unset, unless the slot is for the same character as the copied glyph: then the name comes too. |
| Has a glyph        | Its imported shape, every field of its **Transforms** section, its **Width**, **Height**, **Export** and **Flatten**, and its whole list of components are replaced by the copied ones. Its **Name** is kept.                                  |

Kerning pairs are untouched by a paste: the pairs of the slot's character stay as they are, and none comes with the copied glyph.

A paste is one step of the history, named **Paste onto A** or **Paste onto 5 glyphs**, and `Ctrl` + `Z` takes it back whole. See [History](https://mkfont.gitbook.io/mkfont-docs/building-a-font/history.md).

{% hint style="warning" %}

## Paste follows the system clipboard

`Ctrl` + `V` pastes the copied glyphs while the system clipboard still holds the markup that **Copy** put there. Copy anything else as text, in another application or with one of MkFont's own text copies such as **Copy unicode value**, and **Paste** goes by the new content. SVG markup is pasted as a shape into the slot selected last. Any other text gives a toast, **Nothing to paste**, with **Copy glyphs, or SVG markup from a vector editor.**

The copied glyphs are still held: **Paste in place (same slots)**, **Paste transforms** and the component entries of **Paste special** keep working from them. To paste them whole again, copy the glyphs again.
{% endhint %}

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-a7860e4cb68f2882c4bb96059a0d8fbb348c33ae%2Fcopy-and-paste-nothing-to-paste-toast.png?alt=media" alt="STILL | id: copy-and-paste-nothing-to-paste-toast | SHOWS: The toast Paste gives once the system clipboard holds text other than the copied glyphs | FRAME: My glyphs. One glyph copied with Ctrl+C, then its Unicode value copied from the identity line of the inspector, then another slot selected and Ctrl+V pressed. Toast reading Nothing to paste over the line Copy glyphs, or SVG markup from a vector editor | CROP: region: the viewport and the toast | NEEDS: at least three glyphs with outlines | SOURCE: Sample font, browser build | NOTE: The toast is the subject, so it is on screen. The toast of the Unicode value copy is gone before the capture"><figcaption><p>A text copy made after the glyph copy takes over Ctrl + V.</p></figcaption></figure>

## Pasting in place

*Paste in place (same slots) puts each copied glyph in the slot of its own character, in another open font.*

Copy glyphs in one font, show the tab of another, then press `Ctrl` + `Shift` + `V`, or choose **Edit › Paste in place (same slots)** or **Paste special › Paste in place (same slots)** in a slot's context menu. The glyph copied from the slot of A goes to the slot of A, and a ligature to the slot of the same sequence. The selection plays no part, and nothing has to be selected.

| In the font pasted into                                  | After                                                                                     |
| -------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| The slot is not in the font                              | The glyph is created, with the **Name** it had.                                           |
| The slot has a glyph                                     | The glyph is replaced as by **Paste**, and keeps its own **Name**.                        |
| A glyph that a copied component draws is not in the font | That glyph is pasted too, in its own slot, and so are the glyphs its own components draw. |
| A glyph that a copied component draws is in the font     | It is left as it is, and the pasted component draws it.                                   |

The pasted glyphs become the selection. The glyphs brought along for their components are not selected. The step is named **Paste 3 glyphs in place**.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-d29e5e340b21f9159111de28b7939c11909c768f%2Fcopy-and-paste-in-place-before.png?alt=media" alt="STILL | id: copy-and-paste-in-place-before | SHOWS: A second font that lacks the glyphs copied in the first, before Paste in place | FRAME: Two tabs. In the first, the sample font, three glyphs were copied with Ctrl+C. The second tab is active and shows the Unicode block of the three copied characters, their three slots not in the font. Nothing selected | CROP: window | NEEDS: at least three glyphs with outlines | SOURCE: Sample font + fixture: a second project file, browser build | NOTE: The second project file has no glyph for the three characters copied"><figcaption><p>Before: the second font, with nothing selected.</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-bf91c0d7b2acd7e1ba5946801a7e490cb655f7a8%2Fcopy-and-paste-in-place-after.png?alt=media" alt="STILL | id: copy-and-paste-in-place-after | SHOWS: After Paste in place the three glyphs sit in the slots of their own characters in the second font, and are selected | FRAME: Same two tabs as copy-and-paste-in-place-before, after Ctrl+Shift+V in the second tab. The three slots now hold the copied glyphs and are selected, the header status line ends with 3 selected, and the second tab shows the dot of its unsaved changes | CROP: window | NEEDS: at least three glyphs with outlines | SOURCE: Sample font + fixture: a second project file, browser build | NOTE: The second project file has no glyph for the three characters copied"><figcaption><p>After: each glyph found its own slot.</p></figcaption></figure>

| Toast                                                                                            | When                                                   |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------ |
| **Paste in place copies glyphs between fonts**, with **Open another font, then paste in place.** | The font shown is the one the glyphs were copied from. |
| **Nothing to paste**, with **Copy glyphs first.**                                                | No glyph has been copied yet.                          |

In the context menu the entry is dimmed until glyphs have been copied.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-5f39106e1cebe18a60131304a8ff6201a9243f42%2Fcopy-and-paste-in-place-same-font-toast.png?alt=media" alt="STILL | id: copy-and-paste-in-place-same-font-toast | SHOWS: The toast Paste in place gives in the font the glyphs were copied from | FRAME: My glyphs. One glyph copied with Ctrl+C, then Ctrl+Shift+V pressed in the same font. Toast reading Paste in place copies glyphs between fonts over the line Open another font, then paste in place | CROP: region: the viewport and the toast | NEEDS: a glyph with an outline | SOURCE: Sample font, browser build | NOTE: The toast is the subject, so it is on screen"><figcaption><p>In the font of the copy, every glyph is already in its own slot.</p></figcaption></figure>

To bring in glyphs from a project file without opening it in a tab, see [Importing from Another Project](https://mkfont.gitbook.io/mkfont-docs/import-and-export/importing-from-another-project.md).

## Pasting part of a glyph

*Paste transforms and the component entries of Paste special each give one part of the copied glyphs to the selected glyphs.*

**Paste special** is a submenu of a slot's context menu and of **More actions** in the inspector.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-734ae75f42645cef82cf2e06f58361f18cf4ab36%2Fcopy-and-paste-paste-special-menu.png?alt=media" alt="STILL | id: copy-and-paste-paste-special-menu | SHOWS: The Paste special submenu, every entry available once glyphs are copied and a glyph is selected | FRAME: A glyph built from components copied with Ctrl+C, then another glyph selected. Context menu open on it, Paste special hovered, its submenu open showing Paste in place (same slots) and Paste transforms only with their shortcuts, then Replace components, Add components and Copy component transforms | CROP: region: the context menu and its open submenu | 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, desktop | NOTE: Shot in the desktop app, where Edit in external editor is part of the menu"><figcaption><p>The first entry moves whole glyphs. The others take a part.</p></figcaption></figure>

| Entry                           | Keys                                  | Step in the history                |
| ------------------------------- | ------------------------------------- | ---------------------------------- |
| **Paste in place (same slots)** | `Ctrl` + `Shift` + `V`                | **Paste 3 glyphs in place**        |
| **Paste transforms only**       | `Ctrl` + `Alt` + `V`, or `Ctrl` + `T` | **Paste transforms onto 3 glyphs** |
| **Replace components**          |                                       | **Replace components**             |
| **Add components**              |                                       | **Paste components**               |
| **Copy component transforms**   |                                       | **Paste component transforms**     |

**Paste transforms only** is the command **Edit › Paste transforms**. The component entries are also in the **Components** section of the inspector, under **Paste components from copied glyphs**: see [Components](https://mkfont.gitbook.io/mkfont-docs/building-a-font/glyph-inspector/components.md).

What each entry changes in a selected glyph, next to **Paste**. A blank cell is left as it is.

| In the selected glyph    | **Paste**     | **Paste transforms only** | **Replace components** | **Add components**                                            | **Copy component transforms**                                                                      |
| ------------------------ | ------------- | ------------------------- | ---------------------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| Imported shape           | Replaced      |                           |                        |                                                               |                                                                                                    |
| **Transforms** section   | Replaced      | Replaced                  |                        |                                                               |                                                                                                    |
| **Width**, **Height**    | Replaced      | Replaced                  |                        |                                                               |                                                                                                    |
| **Flatten** and its mode | Replaced      | Replaced                  |                        |                                                               |                                                                                                    |
| **Export**               | Replaced      |                           |                        |                                                               |                                                                                                    |
| Components               | List replaced |                           | List replaced          | Copies added after the list, up to 50 components in the glyph | Each component whose **Glyph** field reads the same as a copied one takes the settings of that one |
| **Name**                 |               |                           |                        |                                                               |                                                                                                    |

When no component matches, **Copy component transforms** changes nothing and adds no step to the history.

### Which copied glyph goes to which selected glyph

These entries act on the selected slots that have a glyph. A slot that is not in the font is passed over, where **Paste** would fill it. The remaining glyphs are matched as for **Paste**: the first selected glyph takes from the first copied glyph, the second from the second, and the copied glyphs start over when the selection is longer. With one glyph copied, every selected glyph takes from it.

**Paste transforms only** and the component entries are dimmed until glyphs have been copied and at least one selected slot has a glyph. **Edit › Paste transforms** and its keys are available as soon as a selected slot has a glyph. With nothing copied, a toast reads **Copy a glyph first**.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-deb630ac219ef0c94c727472711dea2a8ecd2d9e%2Fcopy-and-paste-transforms-before.png?alt=media" alt="STILL | id: copy-and-paste-transforms-before | SHOWS: Three selected glyphs scaled to the ascender, with the transforms of a glyph scaled to the x-height copied | FRAME: My glyphs. One glyph whose Scale is Baseline to x-height copied with Ctrl+C. Three other glyphs selected, each drawn at its full size in its slot. Inspector showing the Transforms section of the three, Scale reading Baseline to Ascender | CROP: region: the rows holding the selected slots, and the inspector | NEEDS: at least four letters with imported outlines | SOURCE: Sample font, browser build"><figcaption><p>Before: three glyphs with the scale of a new font.</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-089253fa63ba7173b42b92fac50dcc69a690e2ce%2Fcopy-and-paste-transforms-after.png?alt=media" alt="STILL | id: copy-and-paste-transforms-after | SHOWS: After Paste transforms the three glyphs keep their shapes and take the scale of the copied glyph | FRAME: Same selection as copy-and-paste-transforms-before, after Ctrl+T. The three slots draw the same shapes visibly smaller. Inspector showing the Transforms section of the three, Scale reading Baseline to x-height | CROP: region: the rows holding the selected slots, and the inspector | NEEDS: at least four letters with imported outlines | SOURCE: Sample font, browser build"><figcaption><p>After: same shapes, fitted the way the copied glyph is.</p></figcaption></figure>

{% hint style="warning" %}

## Paste transforms sets the width too

Along with the fields of the **Transforms** section, the selected glyphs take the copied glyph's **Width** and **Height**, linked to the font or overridden as they were, and its **Flatten** switch and mode. A copied glyph with a **Width** of its own gives that width to every glyph it is pasted onto.
{% endhint %}

{% hint style="warning" %}

## Replace components takes an empty list too

When the copied glyph has no components, **Replace components** still removes every component of the selected glyphs, and adds nothing in their place.
{% endhint %}

## Between two fonts

*The copied glyphs outlast a change of tab, and their measures are rescaled when the two fonts differ in EM size.*

Every paste command works from one open font to another: copy in one tab, show the other with a click on its tab or `Ctrl` + `Tab`, and paste. Each tab keeps its own selection, so the target slots are selected in the tab pasted into.

### When the EM sizes differ

Values measured in font units are multiplied by the **EM size** of the font pasted into, divided by the **EM size** of the font copied from. A glyph copied from a font of 1000 units into a font of 2000 has them doubled.

| Rescaled                                           | Left as copied                  |
| -------------------------------------------------- | ------------------------------- |
| **Width** and **Height** of the glyph              | The imported shape              |
| **Shift**, **Push** and **Y offset**               | Every option, switch and angle  |
| **Factor**, the multiplier of the **Manual** scale | **Margin**                      |
| **X** and **Y** of each component                  | The other fields of a component |

A field linked to the font default has no value to rescale: it stays linked, and follows the default of the font pasted into. The same holds for **Paste transforms**, the component entries, and MkFont's own markup pasted as SVG.

The imported shape needs no rescaling, because the transforms fit it to the metric lines of the font it is pasted into: a glyph scaled **Baseline to cap height** is scaled to that font's cap height. With **Scale** on **None**, one unit of the shape is one font unit, so the shape is drawn smaller or larger against an em of another size. The **EM size** itself is on [Font Metrics](https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/font-metrics.md).

### Components whose glyphs are missing

A component names the character whose glyph it draws. **Paste** and the component entries copy the component and leave that glyph behind. In a font that has no glyph for the character, the pasted component carries the **missing** badge and draws nothing until the glyph exists. Where the font has its own glyph for the character, the component draws that one.

**Paste in place (same slots)** brings the glyphs of the components along, as described under [Pasting in place](#pasting-in-place).

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-866f820ab68b7e6f64c51f88296aee6d22047611%2Fcopy-and-paste-missing-component.png?alt=media" alt="STILL | id: copy-and-paste-missing-component | SHOWS: A glyph built from components pasted with Paste into a font that lacks its parts: both components carry the missing badge and nothing is drawn | FRAME: Two tabs. A glyph built from two components copied in the first font, then pasted with Ctrl+V onto a slot of the second font, which has no glyph for either part. Second tab active, the pasted glyph selected. Glyph view showing no outline. Components section open, both rows collapsed, each with the missing badge, the row of the base letter also with the control (inactive) badge | CROP: inspector | 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 + fixture: a second project file, browser build | NOTE: The second project file has no glyph for the base letter or for the accent"><figcaption><p>The components arrived. The glyphs they draw stayed in the first font.</p></figcaption></figure>

The badges are listed on [Components](https://mkfont.gitbook.io/mkfont-docs/building-a-font/glyph-inspector/components.md).

## SVG markup from a vector editor

*MkFont reads the clipboard as text, and pastes the SVG markup it finds there as the imported shape of one glyph.*

| Control                                 | Where                                                                                                              | Pastes into                                               |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- |
| **Paste SVG**                           | The inspector of a slot that is not in the font.                                                                   | That slot, creating its glyph.                            |
| **Paste SVG markup from the clipboard** | The action buttons of the inspector, with one glyph selected.                                                      | That glyph.                                               |
| `Ctrl` + `V`, **Paste**                 | Any range that lists glyphs, while the clipboard holds SVG markup other than the markup of the glyphs last copied. | The slot selected last, whether or not it is in the font. |

The clipboard counts as holding SVG markup when its text contains an `<svg` tag.

| The slot           | After the paste                                                                                   |
| ------------------ | ------------------------------------------------------------------------------------------------- |
| Is not in the font | A glyph is created with the pasted shape, fitted by the font's **Default transforms**.            |
| Has a glyph        | Its imported shape is replaced. Its transforms, its components and the rest of its settings stay. |

The markup is read the way an SVG file is, marked box included. What MkFont takes from an SVG is on [Preparing SVGs](https://mkfont.gitbook.io/mkfont-docs/import-and-export/preparing-svgs.md), and importing files on [Importing SVGs](https://mkfont.gitbook.io/mkfont-docs/import-and-export/importing-svgs.md). The step is named **Paste SVG into A**.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-6af46ad69f1f3f74a676a743db0c9804f7be1c3e%2Fcopy-and-paste-svg-pasted.png?alt=media" alt="STILL | id: copy-and-paste-svg-pasted | SHOWS: A slot that was not in the font, filled by Ctrl+V from SVG markup on the clipboard | FRAME: A Unicode block as the range. The markup of the SVG file on the clipboard as text. One slot with no glyph selected, then Ctrl+V pressed. The slot now draws the shape, and the inspector shows the glyph view with the outline fitted between the metric lines | CROP: region: the viewport and the inspector | NEEDS: a Unicode block where at least one common Latin letter has no glyph | SOURCE: Sample font + fixture: an SVG file of one letter, browser build | NOTE: The markup of the fixture file is put on the clipboard as text before the frame"><figcaption><p>Markup on the clipboard, one slot selected, one paste.</p></figcaption></figure>

Markup copied from MkFont carries the glyph's settings. Pasted this way, it sets the **Transforms** fields, **Width**, **Height**, **Export** and **Flatten** of the glyph as well as its shape. Components and **Name** are not in the markup.

| Toast                                                                                      | When                                                                |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| **No SVG markup in the clipboard**, with **Copy paths from your vector editor first.**     | **Paste SVG**, and the text of the clipboard holds no SVG markup.   |
| **No SVG markup in the clipboard**                                                         | **Paste SVG markup from the clipboard**, in the same case.          |
| **Select a glyph to paste the SVG into**                                                   | `Ctrl` + `V` with SVG markup on the clipboard and nothing selected. |
| **Could not paste the SVG**, with **It has no usable paths.**                              | The markup holds no path that can be imported.                      |
| **Could not paste the SVG**, with a reason such as **The SVG is incomplete or malformed.** | The markup cannot be read.                                          |
| **Nothing to paste**, with **Copy glyphs, or SVG markup from a vector editor.**            | `Ctrl` + `V` while the clipboard holds neither.                     |

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-4a9c27ffd7354f5bf2cf37636b538e9c5f16c548%2Fcopy-and-paste-no-svg-toast.png?alt=media" alt="STILL | id: copy-and-paste-no-svg-toast | SHOWS: The toast Paste SVG gives when the clipboard holds no SVG markup, with its hint line | FRAME: A Unicode block as the range, one slot with no glyph selected. Plain text on the clipboard. Paste SVG clicked in the inspector. Toast reading No SVG markup in the clipboard over the line Copy paths from your vector editor first | CROP: region: the inspector and the toast | NEEDS: a Unicode block in which some characters have glyphs and others do not, both kinds visible without scrolling | SOURCE: Sample font, browser build | NOTE: The toast is the subject, so it is on screen. The clipboard holds a few words of plain text"><figcaption><p>The button on a slot that is not in the font adds the hint.</p></figcaption></figure>

## Copying as text

*Characters, Unicode values and the final outline go to the system clipboard as plain text.*

These copies leave the copied glyphs alone and replace the text on the system clipboard, with the effect on `Ctrl` + `V` described under [Pasting onto the selection](#pasting-onto-the-selection). They work on characters, so a slot that is not in the font is copied like any other.

| Copies                                      | Entry                                                                                                        | Where                                                                                               |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- |
| The selection as characters                 | **Copy as text › Characters**                                                                                | A slot's context menu, **More actions** in the inspector.                                           |
|                                             | **Copy selection as characters**                                                                             | The **Glyph** menu.                                                                                 |
|                                             | **Copy characters**, under **Selection**                                                                     | **More actions** in the viewport header.                                                            |
| The selection as Unicode values             | **Copy as text › Unicode values**                                                                            | A slot's context menu, **More actions** in the inspector.                                           |
|                                             | **Copy selection as unicode values**                                                                         | The **Glyph** menu.                                                                                 |
|                                             | **Copy unicode values**, under **Selection**                                                                 | **More actions** in the viewport header.                                                            |
| Every slot the view lists                   | **Copy characters**, **Copy unicode values**, under **Everything in view**                                   | **More actions** in the viewport header.                                                            |
| One slot                                    | The character and the Unicode value of the identity line, **Copy unicode value** on a slot under the pointer | The inspector, the glyph grid.                                                                      |
| The final outline of the slot selected last | **Copy as text › Outline as SVG**                                                                            | A slot's context menu, **More actions** in the inspector. Dimmed when that slot is not in the font. |

The viewport's menu is on [Browsing Glyphs](https://mkfont.gitbook.io/mkfont-docs/building-a-font/browsing-glyphs.md), and the identity line on [Glyph Inspector](https://mkfont.gitbook.io/mkfont-docs/building-a-font/glyph-inspector.md).

### Characters and Unicode values

Both are written one slot per line, in the order the slots were selected, or in the order the view lists them for **Everything in view**.

| Form           | A character                                                         | A ligature                                                                          |
| -------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| Characters     | The character itself.                                               | Its characters run together: `fi`.                                                  |
| Unicode values | `U+` and the code in hexadecimal, on four digits or more: `U+0041`. | The values of its sequence run together, with nothing between them: `U+0066U+0069`. |

The letters of a hexadecimal code are copied in lowercase. The inspector shows `U+00E9`, and the copy reads `U+00e9`.

```
U+0041
U+00e9
U+0066U+0069
```

The toast counts the lines: **Copied 3 characters**, **Copied 3 unicode values**.

### Outline as SVG

**Outline as SVG** copies the final outline of one glyph, components included, as a standalone SVG: one `<path>` in an `<svg>` element that has a `viewBox` and no other size.

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 1050"><path d="…"/></svg>
```

|                                         | In the copied SVG                                                                                                                                        |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Units                                   | One unit is one font unit. Coordinates are rounded to three decimals.                                                                                    |
| Width of the box                        | The advance width of the glyph, rounded to a whole unit. The left edge of the box is the start of the advance, so the outline keeps its place inside it. |
| Height of the box                       | From the top of the em box or the ascender line, whichever is higher, down to the bottom of the em box or the descender line, whichever is lower.        |
| An outline that reaches higher or lower | The box grows to hold it.                                                                                                                                |
| An empty glyph                          | The path is empty.                                                                                                                                       |

With the metrics of a new font, the box is 1050 units tall: 800 above the baseline and 250 below it.

<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: copy-and-paste-outline-svg-box | SHOWS: The box of the SVG that Outline as SVG copies, drawn against the glyph and its metric lines | ELEMENTS: Left, a letter with a descender on its metric lines: ascender, baseline, descender, and the two lines of the em box. A rectangle labelled viewBox, as wide as the advance from its start to its end, running from the higher of the ascender line and the top of the em box down to the lower of the descender line and the bottom of the em box. Right, a capital with an accent that rises above the ascender line, the rectangle stretched up to the top of the accent and labelled grows to hold the outline | MUST BE CLEAR: The box is as wide as the advance and covers the em box and the ascender and descender lines, and it grows only where the outline reaches past them"><figcaption><p>The box is the space the glyph takes in a line of text.</p></figcaption></figure>

A toast reads **Copied the outline of A as SVG**. The copy is SVG markup like any other: pasted onto a slot in MkFont with `Ctrl` + `V`, it becomes the imported shape of that slot's glyph, and is fitted again by its transforms.

### In the pair views

A pair view selects pairs, and the glyph clipboard is off there: **Copy glyphs**, **Paste**, **Paste in place (same slots)** and **Paste transforms** are dimmed in the **Edit** menu, and their keys do nothing. Pairs are copied as text.

| Form           | Entry                                                                                                                                                                            | One pair per line, as                                                |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| Characters     | **Copy as text › Characters** in a pair's context menu, **Copy selection as characters** in the **Glyph** menu, **Copy as characters** in the viewport header's **More actions** | The characters of its two glyphs run together: `TA`.                 |
| Unicode values | **Copy as text › Unicode values**, **Copy selection as unicode values** and **Copy unicode values**, in the same menus                                                           | The values of its two glyphs, separated by a space: `U+0054 U+0041`. |

A toast reads **Copied 3 pairs**. The menus of the pair views are on [Pair Views](https://mkfont.gitbook.io/mkfont-docs/building-a-font/kerning/pair-views.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/import-and-export/copy-and-paste.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.
