A color font lets glyphs carry their own colors—emoji are the most familiar example. OpenType has four color formats: COLR/CPAL, which describes glyphs with layers and palettes; OpenType-SVG, which embeds vector images; and sbix and CBDT/CBLC, which embed bitmaps.
W3C’s CSS Fonts Module Level 4 describes color fonts like this:
Color fonts allow for font files to describe, not just the contours describing the edges of glyphs, but also the colors present inside the glyphs.
In other words, besides contours, the font file records the colors inside each glyph. In the OpenType spec, the COLR table defines how glyphs are rendered in color, and the CPAL table stores one or more palettes. On the web, the CSS font-palette property switches between palettes.
This tutorial uses the grinning face emoji (U+1F600) to walk through building a color font in fontion, from palette to export. For the history of each format and how they differ, see the TwinType blog post A Rainbow of Type: Color Fonts (in Chinese).
- Add a glyph
- Create a palette and choose which color tables to export
- Create color layers
- Draw on each layer
- Preview
- Export
Key concepts
| Term | Description |
|---|---|
| Palette | A list of colors shared by the whole font. Each color has an index (0, 1, 2…) |
| Color layer | A layer in a glyph mapped to one palette color. Named COLR_NN, where NN is the color index |
| Draft layer | A layer with no color assigned yet. Not exported |
| Master layer | The monochrome contours. On export, the monochrome contours are automatically the union of all color layers |
Layers are listed top to bottom; the higher a layer is in the list, the further back it is drawn.
Add a glyph
In the add-glyph field on the Glyphs overview, enter U+1F600 and click + Add glyph. For creating a new font, see Making a variable font.

Create a palette
- Open Font Info and scroll down to Color font.

- Click Add palette. A default set of six colors is created.

- Edit colors: click a swatch to open the color picker, or type a hex code. Click ✕ to the right of a color to delete it, or + at the top right of the palette to add one.
This example uses three colors:
| Index | Hex | Use |
|---|---|---|
| 0 | #FFCC33 |
Face |
| 1 | #FF8A80 |
Cheeks |
| 2 | #4A2F1B |
Eyes and mouth |

Choose color tables
Check the color tables to write into the font. You can check more than one.
| Color table | Type | Supported in |
|---|---|---|
| COLR / CPAL | Vector | Windows, Chromium |
| SVG table | Vector | Firefox, Adobe |
| sbix | Bitmap | Apple |
| CBDT / CBLC | Bitmap | Android |
This example checks COLR / CPAL and SVG table.

- A font can have multiple palettes. The COLR palette and SVG palette settings decide which one each format uses on export.
- sbix and CBDT require the sizes (ppem) to generate under Bitmap strikes, separated by commas.
- COLR / CPAL can only be exported as TTF, not OTF.
Create color layers
- Open the smiley’s glyph editor.

- Under Layers on the left, click Add layer. A draft layer appears.

- Click the color dot on the right of the layer row and pick a color from the palette that pops up.

- The layer is renamed
COLR_00and becomes a color layer.

| Layer row button | Function |
|---|---|
| Color dot | Assign or change the color |
| Eye | Show or hide the layer’s underlay |
| ✕ | Delete the layer |
Double-click a layer name to rename it. Renaming it to anything other than COLR_NN turns it back into a draft.
Draw the face
- Select the
COLR_00layer. - Right-click the Rectangle tool and switch to the Ellipse tool.

- Hold
Shiftand drag to draw a perfect circle. The contour is shown in the layer’s color.

Draw the cheeks
- Click Add layer and choose
#FF8A80from the color dot. The layer becomesCOLR_01. - Select
COLR_01and draw an ellipse on each side with the Ellipse tool.

Draw the eyes and mouth
- Click Add layer and choose
#4A2F1Bfrom the color dot. The layer becomesCOLR_02. - Select
COLR_02and draw two eyes with the Ellipse tool.

- Press
Pto switch to the Pen tool and draw the mouth:- Click at the left corner of the mouth.
- At the lowest point of the mouth, click and drag to the right to pull out a horizontal handle.
- Click at the right corner of the mouth.
- Press
Ctrl + Eto close the path.

You now have three color layers.

Hold Space to see the result.

Preview
Glyph cells on the Glyphs overview show the colors directly.

Open the Preview page and paste 😀. The Color button at the bottom toggles between color and monochrome; the dots next to it are the current palette.

Export
- Go back to the Glyphs overview and click Export font.
- Choose TTF as the format.

- Click Start export. When it’s done, click the download icon in the Versions list.

The exported file name comes from the Family Name in Font Info, so set it before exporting.
Keyboard shortcuts
| Action | Function |
|---|---|
| Right-click the Rectangle tool | Switch between Rectangle and Ellipse |
Shift + drag (Ellipse tool) |
Perfect circle |
P |
Pen tool |
Ctrl + E |
Close path |
Hold Space
|
Fill preview |
For the full list, see Features & keyboard shortcuts.
Further reading
- A Rainbow of Type: Color Fonts (in Chinese): how sbix, CBDT/CBLC, OpenType-SVG, COLR/CPAL and COLR/CPAL v1 differ.
- Making a variable font
- Stroke templates