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

# How MkFont Works

The handful of models behind MkFont: what a font holds, how a shape becomes a glyph, how glyphs are built from each other, and where it all is saved.

A font file is the end of a short path. A shape arrives from an SVG, settings fit it between the lines of the font, glyphs borrow each other as parts, and the whole is written out. Each stage has one idea behind it, and most of the interface follows from those ideas.

<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: how-mkfont-works-path | SHOWS: The path from an SVG file to a font file, and what is added at each stage | ELEMENTS: Five stages left to right joined by arrows. Stage 1, an SVG file icon with a letter shape on an artboard, labelled SVG. Stage 2, the same shape alone, labelled imported shape. Stage 3, the shape standing between horizontal metric lines inside a box with space on each side, labelled glyph, with a small tag reading transforms on the arrow leading to it. Stage 4, several glyphs in a row, one of them drawn as two parts borrowed from two others with thin reference lines, labelled font, with small tags reading components, ligatures and kerning. Stage 5, a font file icon labelled font file, with a tag reading export on the arrow leading to it. Under stages 2 to 4, a bracket labelled project file | MUST BE CLEAR: The shape is kept as imported and everything after it is settings held in the project file, and the font file is produced from the project, never edited"><figcaption><p>Everything between the SVG and the font file lives in the project, and stays editable.</p></figcaption></figure>

## The models

*In reading order: each page leans only on the ones above it.*

<table data-card-size="large" data-view="cards"><thead><tr><th>Page</th><th>Answers</th></tr></thead><tbody><tr><td><a data-mention href="https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/fonts-glyphs-and-slots.md">Fonts, Glyphs &amp; Slots</a></td><td>What a font holds, and how a character, a glyph and a slot differ.</td></tr><tr><td><a data-mention href="https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/font-metrics.md">Font Metrics</a></td><td>What the lines of a font are for, and what follows when one moves.</td></tr><tr><td><a data-mention href="https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/fitting-a-shape.md">Fitting a Shape</a></td><td>How a shape drawn at any size is scaled, placed and spaced.</td></tr><tr><td><a data-mention href="https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/building-with-components.md">Building with Components</a></td><td>How a glyph places other glyphs inside itself.</td></tr><tr><td><a data-mention href="https://mkfont.gitbook.io/mkfont-docs/how-mkfont-works/saving-and-files.md">Saving &amp; Files</a></td><td>What is saved where, and what is not.</td></tr></tbody></table>


---

# 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/how-mkfont-works.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.
