> ## Documentation Index
> Fetch the complete documentation index at: https://wonder.design/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Text and fonts

> Add and edit text on the canvas, set its typography and type settings, style a few words differently, put elements inline in text, and upload your own fonts for your workspace.

Text on the canvas is real HTML text: it wraps, flows and exports to code the way it renders. This page covers adding and styling text, and bringing your own fonts.

**Before you start** · Web and desktop · Free plan

## Add text

1. Click **Text** in the toolbar, or press <kbd>T</kbd>.
2. Click on the canvas to start a text that grows as you type, or drag to draw a text box of a set width that wraps your text onto new lines.
3. Type your text. Press <kbd>Esc</kbd> when you're done.

A text box you leave empty is removed.

## Edit text

Double-click a text layer, or select it and press <kbd>Enter</kbd>, to start editing it. Select words to style them, or use <kbd>⌘</kbd> <kbd>B</kbd> for bold and <kbd>⌘</kbd> <kbd>I</kbd> for italic.

To change the text's color, use the **Text Fill** section of the properties panel.

## Set typography

Select a text layer. The **Typography** section of the properties panel has:

* **Font family**: opens the font list. Search it, filter it by source, and click the star next to a font to add it to **Favorites**.
* **Weight and style**, and **Font size**. For a variable font, the weight list also shows its axes.
* **Line height** and **Letter spacing**.
* **Alignment**: horizontal and vertical. Use <kbd>⌘</kbd> <kbd>⌥</kbd> <kbd>L</kbd>, <kbd>T</kbd>, <kbd>R</kbd> or <kbd>J</kbd> to align left, center, right or justify.

When the font has OpenType features, such as tabular figures or ligatures, the **Font features** button in the section header lists them.

You can bind the font family, weight, size, line height and letter spacing to [variables](https://wonder.design/docs/variables.md).

## Change type settings

Click **Type settings** in the **Typography** header for the less common settings:

| Setting | What it does |
| - | - |
| **Case** | **None**, **Uppercase**, **Lowercase** or **Capitalize**. |
| **Wrap** | How lines break: **Auto**, **Pretty** (avoids a single word on the last line), **Balance** (lines of equal length) or **Stable** (no reflow while you edit). |
| **Whitespace** | Whether spaces and line breaks are kept and whether text wraps: **Normal**, **No Wrap**, **Pre**, **Pre Wrap** or **Pre Line**. |
| **Truncation** | **On** keeps the text on one line and ends it with an ellipsis (…) where it doesn't fit. |
| **Word Break** | Whether long words break to fit: **Off**, **All** or **Word**. |
| **Overflow wrap** | Where long words may wrap: **Default**, **Normal**, **Break word** or **Anywhere**. |
| **Indent** | Indents the first line. |
| **Smoothing** | How the font is smoothed on screen. |
| **Decoration** | **Underline** or **Strikethrough**, with its style, thickness and color. |

## Mix styles in one text

You can style a few words differently without splitting a sentence into separate layers.

1. Double-click the text to edit it, and select the words.
2. In the properties panel, change their font, weight, size, letter spacing, color, case or decoration.

Line height, alignment and most type settings apply to the whole text layer. While words are selected, those controls are greyed out; hover over a control's icon to see **Not available while styling a text selection**.

Once a text has styled words, the **Typography** section lists them under **Styles**. Click one to select those words again, click **−** next to it to remove its style, or click **Reset all** to remove them all. Changes to the whole layer still reach the styled words.

## Merge text layers

To turn text you split apart back into one layer, select the text layers, right-click and choose **Group text**. The words keep their own styles in the merged layer.

**Group text** is offered when the layers read as one line of text split apart:

* they sit on the same line and touch, or are a space apart where one ends or the next starts with a space;
* they are next to each other in the layer list, with no other layers between them;
* they differ only in the styles you can [mix in one text](#mix-styles-in-one-text), such as font, weight, size or color.

If Wonder can't merge them, it shows **These layers can't be grouped as text**.

## Put elements inline in text

A frame, such as a tag, a button or an icon, can sit inside a line of text and wrap with it.

1. Put the text and the frame in one frame. Select that frame and, in the **Layout** section, set **Flow** to **Block**.
2. Select the text and the frame.
3. In the **Layout** section header, click **Make inline**.

The text and the frame now flow on the same lines, like words in a paragraph. Inline elements can't be rotated or flipped. To make an element a separate block again, select it and click the same button.

## Use the fonts on your computer

In the desktop app, and in browsers that support it such as Chrome, the font list includes the fonts installed on your computer under **On this device**. Your browser asks for permission first.

When you set text in an installed font, Wonder keeps a copy with the file, so the text looks the same for everyone. To edit that text, other people need the font installed too, or must provide their own copy: the **Typography** section offers **Upload font**.

## Upload fonts to your workspace

Uploaded fonts are shared with everyone in your workspace, in every file.

1. Select a text layer and open the font list in the **Typography** section.
2. Click **Upload fonts** and pick one or more font files.
3. Check **I have the required rights and licenses, and accept responsibility for this use.**, then click **Add font** (or **Add fonts**).

The font is applied to the selected text and listed under **Shared in workspace**.

| | |
| - | - |
| Formats | `.ttf`, `.otf`, `.woff` and `.woff2` |
| Size | Up to 24 MB per file |
| Fonts per workspace | Up to 2,048 files, including removed ones |

Wonder serves uploaded fonts to your collaborators and to viewers of your public files. When you copy a design as code, font files are included only if you choose to include them and confirm your license allows it.

To remove an uploaded font, hover over it in the font list, click **Remove from workspace** (the trash icon), then **Remove font**. Text already using it keeps its look, but the font can no longer be applied to new text.

## If something goes wrong

* **Provide your own copy of … to edit this text, or choose another font.** The text uses a font you don't have. Click **Upload font** to provide your copy, or pick another font.
* **This font file is too large. Please upload a font under 24 MB.** Use a smaller file, such as a `.woff2` version or a subset of the font.
* **This file is not a supported font (TTF, OTF, WOFF, or WOFF2).** Convert the font to one of these formats and upload it again.
* **Your organization has reached the maximum number of uploaded fonts.** The workspace has 2,048 uploaded font files. Removed fonts still count toward the limit.
* **Can’t find a font you just installed? Restart Wonder to reload installed fonts.** Wonder reads your installed fonts when it starts.
* **Allow access to fonts in your browser’s site settings to show installed fonts.** You or your browser declined access. Allow it in the site settings, then reload.
* **These layers can't be grouped as text.** Select text layers that touch on one line (or are a space apart), with nothing between them and only word-level styles that differ. See [Merge text layers](#merge-text-layers).
* **Make inline is unavailable.** Its tooltip says why: the parent must be a **Block** frame (**To make this inline, its parent must be a Block container**), and the element must follow the layout, not be positioned on its own (**Only elements that follow the layout can be inline**).

## Related

* [Images and SVGs](https://wonder.design/docs/images-and-svgs.md)
* [Variables](https://wonder.design/docs/variables.md)
* [Shaders](https://wonder.design/docs/shaders.md)
* [Design with AI](https://wonder.design/docs/design-with-ai.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.