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

# Importing from Another Project

Copying glyphs out of another project file into the open font: choosing them, bringing their component glyphs along, and how they are rescaled between EM sizes.

A glyph in a project is more than an outline: it has the shape it was imported with, the transforms that fit it, and its components. Importing from another project file copies glyphs with all of that into the open font, without opening the other project. Taking outlines from a font file is a different import, on [Importing from a Font File](https://mkfont.gitbook.io/mkfont-docs/import-and-export/importing-from-a-font-file.md).

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-82ffb3d7d5765cdf9aafb33ce8cb0cea63de1853%2Fimporting-from-another-project-dialog.png?alt=media" alt="STILL | id: importing-from-another-project-dialog | SHOWS: The Import glyphs from another font project dialog as it opens: every glyph of the file selected, and a dot on the ones the open font already has | FRAME: One font open. Glyphs from another .mkfont chosen in the Import menu and the fixture picked. Dialog open with the file name under its title, the summary line with the All, None and Only missing here buttons, Existing on its keep option, Also import component glyphs missing here checked, and the glyph list with every cell highlighted, some of them carrying the dot | CROP: dialog | NEEDS: glyphs for some of the characters of the fixture project file, and none for others | SOURCE: Sample font + fixture: a second project file, browser build | NOTE: The fixture project file has the same EM size as the open font, letters with outlines, and at least two accented letters built from components"><figcaption><p>Everything is selected to start with. The dots are the glyphs both fonts have.</p></figcaption></figure>

## Picking the file

*From the Import menu or the File menu, while a font is open.*

**Import › Glyphs from another .mkfont** in the title bar and **File › Import glyphs from another .mkfont** open a file dialog titled **Import glyphs from .mkfont**, which lists **MkFont project** files. Pick one project file, and the dialog opens on it.

* **The file is read as it was last saved.** If that project is open in another tab with unsaved changes, the import does not see them.
* **The other project is left as it is.** Nothing is written to it, and it does not open in a tab.
* **Dropping a project file on the window opens it.** A drop is never an import from another project: the file gets a tab of its own.
* **A project file saved by MkFont 1 is picked the same way.** The format is the same one. What else carries over from MkFont 1 is on [Coming from MkFont 1](https://mkfont.gitbook.io/mkfont-docs/coming-from-mkfont-1.md).

## The dialog

*A summary of the file, a rule for the glyphs the font already has, and a list where each glyph is switched on or off.*

| Part                                          | What it is                                                                                                                                                                                                                       |
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title                                         | **Import glyphs from another font project**, with the name of the file under it.                                                                                                                                                 |
| The summary                                   | The number of glyphs in the file and its EM size, such as `86 glyphs · EM 1000`. When the open font has another EM size, the factor follows: `(rescaled ×0.488)`. See [Rescaling between EM sizes](#rescaling-between-em-sizes). |
| **All**                                       | Selects every glyph in the list.                                                                                                                                                                                                 |
| **None**                                      | Clears the selection.                                                                                                                                                                                                            |
| **Only missing here**                         | Selects the glyphs for characters and ligatures the open font has no glyph for, and deselects the others.                                                                                                                        |
| **Existing**                                  | A list that decides what happens to selected glyphs the open font already has. See [Glyphs the font already has](#glyphs-the-font-already-has).                                                                                  |
| **Also import component glyphs missing here** | A checkbox, on to start with. See [Component glyphs](#component-glyphs).                                                                                                                                                         |
| The glyph list                                | Every glyph of the file: the characters in Unicode order, then the ligatures. See below.                                                                                                                                         |
| **Cancel**                                    | Closes the dialog and imports nothing. The close button and `Esc` do the same.                                                                                                                                                   |
| **Import 86 glyphs**                          | Runs the import. The number is how many glyphs it will create or replace, component glyphs included. Disabled at zero.                                                                                                           |

### The glyph list

Each cell shows a glyph as the other project draws it, components included, with its character under it. Click a cell to select or deselect it. A selected cell is highlighted, and the others are dimmed.

A dot in the corner of a cell marks a glyph the open font already has, and the cell's tooltip then adds **(exists here)** after the character.

From the keyboard, the arrow keys, `Home` and `End` move from cell to cell, and `Space` or `Enter` switches the cell in focus.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-57cdb7f8045d93e6224e5160acff5c67b72f8efb%2Fimporting-from-another-project-exists-mark.png?alt=media" alt="STILL | id: importing-from-another-project-exists-mark | SHOWS: The dot that marks a glyph the open font already has, and the tooltip that says so | FRAME: Same dialog and file as importing-from-another-project-dialog. Pointer resting on a cell that carries the dot, its tooltip showing the character followed by the words exists here. A neighbor cell without the dot in the same crop | CROP: region: a few cells of the glyph list around the hovered one, with the tooltip | NEEDS: glyphs for some of the characters of the fixture project file, and none for others | SOURCE: Sample font + fixture: a second project file, browser build"><figcaption><p>A dot means the slot is taken in this 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-ba0a93a039b554240213ba03b91a1d267af8fb0b%2Fimporting-from-another-project-only-missing.png?alt=media" alt="STILL | id: importing-from-another-project-only-missing | SHOWS: After Only missing here, the cells with a dot are dimmed and the rest stay selected | FRAME: Same dialog and file as importing-from-another-project-dialog, after a click on Only missing here. Every cell that carries the dot is dimmed, every other cell is highlighted, and the Import button carries the count of the highlighted cells | CROP: dialog | NEEDS: glyphs for some of the characters of the fixture project file, and none for others | SOURCE: Sample font + fixture: a second project file, browser build"><figcaption><p>One click takes the glyphs both fonts have out of the selection.</p></figcaption></figure>

The summary counts the glyphs in the file. The button counts the glyphs the import will make, which depends on the selection, on **Existing** and on the checkbox.

### Glyphs the font already has

**Existing** applies to the selected glyphs that carry the dot.

| Option                                     | Does                                                                                                                      |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| **Keep glyphs that already exist here**    | Leaves them out of the import, selected or not. The choice to start with.                                                 |
| **Replace glyphs that already exist here** | Replaces each of them with the glyph from the file, whole: shape, transforms, components, **Name** and **Export** switch. |

As the dialog opens, every glyph is selected and **Existing** is on its first option, so the button counts the glyphs the open font lacks.

{% hint style="warning" %}

## Replace discards the glyph that was there

Nothing of the replaced glyph is merged: its shape, its transforms and its components all give way to the ones from the file. The import is one step in the history, so **Undo** brings the glyphs back for as long as the font stays open.
{% endhint %}

Kerning pairs of the open font that use a replaced glyph are left as they are.

### Component glyphs

A glyph built from components draws other glyphs. A component glyph is **missing here** when the open font has no glyph for the character or the ligature that component places.

With **Also import component glyphs missing here** checked, each imported glyph brings those glyphs with it, and the glyphs they use in turn, whether or not they are selected in the list.

* **A component glyph the open font already has is left alone**, under either option of **Existing**, unless it is selected itself and **Existing** is on replace. The imported glyph then draws this font's version of it, which can differ from the one in the file.
* **Only imported glyphs are followed.** A glyph that **Existing** keeps out brings nothing with it.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-c5f2e986bb504ae32742744e94648e8d2fdc8ca8%2Fimporting-from-another-project-components-on.png?alt=media" alt="STILL | id: importing-from-another-project-components-on | SHOWS: One glyph selected in the list and a higher count on the button: its component glyphs come with it | FRAME: Same dialog and file as importing-from-another-project-dialog. None clicked, then one cell selected: an accented letter built from components whose glyphs the open font does not have. Also import component glyphs missing here checked. Import button carrying a count greater than one | CROP: dialog | NEEDS: no glyph for at least one accented letter of the fixture project file, nor for the base letter and the accent it is built from | SOURCE: Sample font + fixture: a second project file, browser build | NOTE: The fixture project file has an accented letter with no outline of its own, built from two components: its base letter and an accent"><figcaption><p>One cell selected, and the button counts the glyphs it is built from as well.</p></figcaption></figure>

With the box unchecked, the glyph is imported with its components as they are. A component whose glyph the open font lacks carries the **missing** badge and draws nothing until that glyph exists. The badges are described on [Components](https://mkfont.gitbook.io/mkfont-docs/building-a-font/glyph-inspector/components.md).

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-f17bb59f0caed4ced2211d8fd6dad9896184bac3%2Fimporting-from-another-project-components-off.png?alt=media" alt="STILL | id: importing-from-another-project-components-off | SHOWS: A glyph imported without its component glyphs: its components are listed with the missing badge and the glyph view draws nothing | FRAME: Same file as importing-from-another-project-components-on, imported with the same single cell selected and Also import component glyphs missing here unchecked. The imported glyph selected in the grid. Inspector showing an empty glyph view and the Components section with both components carrying the missing badge | CROP: inspector | NEEDS: no glyph for at least one accented letter of the fixture project file, nor for the base letter and the accent it is built from | SOURCE: Sample font + fixture: a second project file, browser build | NOTE: The fixture project file has an accented letter with no outline of its own, built from two components: its base letter and an accent"><figcaption><p>The components came along. The glyphs they place did not.</p></figcaption></figure>

### Unreadable files

A file that is not a project file still opens the dialog, with one line in place of its contents: **Not a valid .mkfont file**, with the reason in parentheses. The button is disabled.

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-6c61445b87d8b1a9691c721c4d5f76db4f6e48b4%2Fimporting-from-another-project-unreadable.png?alt=media" alt="STILL | id: importing-from-another-project-unreadable | SHOWS: The dialog on a file that is not a project file: one line of error, no list, and the Import button disabled | FRAME: One font open. Glyphs from another .mkfont chosen in the Import menu and the fixture picked. Dialog open with the file name under its title, the line that starts with Not a valid .mkfont file, and the Import button dimmed | CROP: dialog | NEEDS: any font | SOURCE: Sample font + fixture: a text file renamed to .mkfont, browser build"><figcaption><p>Nothing to choose from, and nothing imported.</p></figcaption></figure>

## What comes along

*The whole glyph, and nothing of the font around it.*

| Comes along                              | Stays in the other project    |
| ---------------------------------------- | ----------------------------- |
| The imported shape                       | The kerning pairs             |
| The **Transforms**, field by field       | **Font info** and **Metrics** |
| The glyph's own **Width** and **Height** | The **Default transforms**    |
| The **Export** and **Flatten** switches  | The selection slots           |
| The components, with every setting       |                               |
| The **Name**                             |                               |

The glyph is fitted again in its new font. A shape scaled **Baseline to cap height** takes this font's **Cap height**, a **Width** that follows the font takes this font's **Width**, and a transform field linked to the font default takes this font's **Default transforms**. Two fonts with different metrics therefore draw the same glyph at different sizes. How a shape is fitted is on [Fitting a Shape](https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/fitting-a-shape.md).

## Rescaling between EM sizes

*Measures written in font units are multiplied by the ratio of the two EM sizes.*

A **Shift** of 50 is a twentieth of an em in a font with an **EM size** of 1000, and a fortieth in a font of 2000. When the two fonts differ, the import multiplies every such measure by the open font's **EM size** divided by the other's, and the summary shows that factor.

| Rescaled                                 | Left as it is                                      |
| ---------------------------------------- | -------------------------------------------------- |
| **Shift**, **Push** and **Y offset**     | The imported shape                                 |
| The **Factor** of a **Manual** scale     | Rotation, skew and the **Margin** of **Normalize** |
| The glyph's own **Width** and **Height** | The **Scale** of a component                       |
| The **X** and **Y** of each component    |                                                    |

The shape itself needs no rescaling: its **Scale** fits it to this font's metrics, whatever size it 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-b3b115f22731cf36d47a513b281bdfb8a344daad%2Fimporting-from-another-project-rescaled.png?alt=media" alt="STILL | id: importing-from-another-project-rescaled | SHOWS: The summary line when the two fonts have different EM sizes: the EM size of the file, then the factor its measures are multiplied by | FRAME: One font open. Glyphs from another .mkfont chosen in the Import menu and the fixture picked. Dialog open, its summary line ending with the word rescaled and a factor | CROP: region: the summary line with its three buttons | NEEDS: any font | SOURCE: Sample font + fixture: a second project file, browser build | NOTE: This frame needs a fixture project file whose EM size differs from the one of the open font, unlike the other stills of the page"><figcaption><p>The factor is this font's EM size over the other's.</p></figcaption></figure>

{% hint style="warning" %}

## A shape on Scale None keeps its size in units

**None** draws one unit of the shape as one font unit, and the shape is not rescaled. A glyph set that way comes out larger or smaller against the em of its new font, by the inverse of the factor. Give it another **Scale**, or **Manual** with a **Factor** equal to the factor in the summary.
{% endhint %}

## After the import

*One step in the history, one toast, and the imported glyphs selected.*

The viewport shows **My glyphs** with the imported glyphs selected, the component glyphs that came with them included. A toast reads **Imported 86 glyphs from** and the name of the file.

The whole import is one step in the history, named **Import 86 glyphs from** and the name of the file. **Undo** takes all of it back, replaced glyphs included. Steps are described on [History](https://mkfont.gitbook.io/mkfont-docs/building-a-font/history.md).

<figure><img src="https://1675470811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwkWJ9v357hW91tto340i%2Fuploads%2Fgit-blob-a875f513a43509548c5d006661f7b570fcffe1c3%2Fimporting-from-another-project-result.png?alt=media" alt="STILL | id: importing-from-another-project-result | SHOWS: The font right after the import: My glyphs in the viewport, the imported glyphs selected among the ones the font had, and the toast | FRAME: One font open, the fixture imported with Only missing here clicked and the other controls as the dialog opens. Viewport on My glyphs with the imported glyphs selected and the glyphs the font had before left unselected between them. Toast that starts with Imported and ends with the name of the file | CROP: region: the viewport and the toast | NEEDS: glyphs for some of the characters of the fixture project file, and none for others | SOURCE: Sample font + fixture: a second project file, browser build | NOTE: The toast is part of the subject, so the frame is taken while it is on screen"><figcaption><p>The selection is what arrived.</p></figcaption></figure>

## Import, or copy between tabs

*Both move whole glyphs between two projects. They differ in where the choice is made.*

The other route is to open the second project in a tab of its own, select glyphs there, use **Copy glyphs**, then come back and use **Paste in place (same slots)**. It gives the same glyphs, rescaled the same way, with the component glyphs this font lacks, and it works from what is in that tab, unsaved changes included. It replaces whatever is in those slots without asking, where the dialog offers **Keep glyphs that already exist here**, and **Paste** onto a selection is the one way to put a glyph into another slot than its own. Both commands are on [Copy & Paste](https://mkfont.gitbook.io/mkfont-docs/import-and-export/copy-and-paste.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/importing-from-another-project.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.
