> For the complete documentation index, see [llms.txt](https://docs.usestencil.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usestencil.com/using-stencil/template-editor-1/using-custom-font.md).

# Using Custom Font

Using custom font in Stencil is really straight forward. You can manage all custom fonts directly from the template editor.

### Supported Format

* TTF (TrueType)
* WOFF
* WOFF2
* OTF

### Managing Font

Click on any text and under the ***Font family*** section you should see ***Manage custom fonts*** option. Click on it to manage your custom fonts.

![](/files/H6hvh9K3x0xK6Fo1Ad61)

A popup should come out and you should be able to upload a new custom font or remove existing custom fonts.

![](/files/DvJhOEqhEB2gP1TJewCu)

#### Updating Font

By default, Stencil will get the font family name and its format by reading the font metadata. If that is not available, it will use the filename and its extension to detect the font family and the format.

#### Scope

All uploaded fonts are available in all your projects and templates.

### Troubleshooting Issues

#### I uploaded my font but my text box doesn't change, what should I do?

1. You can try to refresh you browser and select the custom font again in the Font family section.
2. Make sure that the font family and its format are correct. For example, although the filename is *MetalsmithRegular.ttf,* the font family is actually *Metalsmith* instead of *Metalsmith Regular*.

#### I deleted my font. What happens to existing templates that are using the font?

They will fallback to the default font. Your image will be generated as usual without issue but without the font.

If you're still having trouble, please contact support.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.usestencil.com/using-stencil/template-editor-1/using-custom-font.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
