Type Specimen Generator

2026

  • RoleDesign and development
  • TypePersonal project, Figma plugin

1.A problem only type designers have

When you finish a typeface, or when you're presenting one that isn't yours in a brand manual, there's one piece you have to make: the character grid. A sample of glyphs laid out in the right weight and size.

It's usually done by hand, character by character. You type a, b, c, and so on until you finish basic Latin. Then extended Latin begins, and that's where the real problem shows up: there are characters you don't know how to type. Diacritics (À Á Â Ã Ä Å), for example, aren't usually within reach on a normal keyboard. It's not just slow: you also have to look up how to type each one.

2.The first version

Since the job was tedious and I ran into it every time I designed a typeface, I made a tool to solve it. That was about two years ago, when vibe coding was starting to be a talking point, and I built it with ChatGPT.

It half worked. The window asked for three decisions: the typeface, the size and the scope of the set, Basic or Extended. With that it generated the glyphs, and nothing else.

What you noticed when using it:

  • The font field was free text. You had to type the exact name of the typeface and, if it didn't match, nothing was drawn. In a tool meant to spare you typing what you can't type, that friction was out of place.
  • Auto layout didn't adjust. The specimen landed on the canvas with no structure and had to be rearranged by hand.
  • One weight, Latin only and a fixed layout. You couldn't decide how uppercase, lowercase, numbers and punctuation were grouped.
  • Only glyphs. A specimen is more than an alphabet, and the tool didn't know that.
On the left, the v1 panel, labelled as the original published plugin, with font and size fields and the Basic Set and Extended Set buttons. On the right, the v2 panel, labelled as the redesign, with a brown header, a font selector, weights, sizes, the Grid, Showcase and Cascade types, with Grid ticked, and a Create specimen button.
The v1 panel and the v2 panel.

3.What the second version generates

v2 generates a single frame with auto layout on the canvas, editable afterwards like any other. At the top it has a compact header with the family and a summary of the chosen weights and sizes, and below it the blocks you tick. You can tick more than one at a time.

  • Grid. The full character set, glyph by glyph, in a grid.
  • Showcase. The family name set large and one line for each selected weight.
  • Cascade. A sample text repeated at every chosen size, from smallest to largest.

For now I think these three use cases make up a generic specimen good enough to start with, though other options will come in the future.

A specimen generated by v2.

4.The panel

The panel has four controls: a font, the weights, the sizes and the specimen type.

The font is a single selector with search, because anyone working with type may have hundreds of families installed, and typing the exact name is no longer needed. Weights and sizes are multi- select, and the three specimen types are checkboxes you can combine.

The interface uses IBM Plex Sans, a warm brown header (#5f533f) and the same brown on the main button and on ticked checkboxes.

5.How I built it

I built v2 with Claude Code, giving it narrow instructions and reviewing each step. Design and architecture decisions were made before asking for code, and the code followed them.

There was a Svelte project already started, but it was scaffolding with no generation logic, so v2 was written from scratch. Colours, type, radii and spacing come from the Figma mockup, not by eye. v1 was kept in one branch and v2 was built in another, with small commits at each milestone.

A Figma plugin has two halves that run in different places. The interface lives in an iframe, with a DOM. The logic that writes to the document lives in a sandbox, with no DOM. That's why there are two builds and two TypeScript configs.

So that v2 would replace the published version instead of showing up as a new plugin, the manifest carries the real id of the Community listing.

  • Svelte + Vite

    A dual build: one bundle for the UI, one for the Figma sandbox.

  • Figma Plugin API

    Grid, Showcase and Cascade generated with auto-layout, straight on the canvas.

  • Typed per environment

    A split TypeScript config, because the plugin sandbox isn't a DOM context.

  • A known limit

    Figma's API won't expose font metadata or apply OpenType features.

How the plugin is built.

6.What Figma's API won't let you do

I wanted to take the plugin further: read the font's metadata (designer, foundry, version) and show its OpenType features and alternates. I hit a limit in Figma's API.

The API only exposes each font's family and style, not data from the file. And OpenType features are read-only: a plugin can query them, but it can't apply them to text.

Doing it properly means reading the font files themselves with libraries like opentype.js or fontkit, and that doesn't fit in a Figma plugin's sandbox. I left it out: it's work for a tool that doesn't live inside Figma.

Three-column diagram. On the left, what a font file contains: family, style, OpenType features, designer, foundry and version, and glyph outlines. In the middle, Figma's API. On the right, what the plugin sees: family and style come through; OpenType features come through read-only; metadata and glyph outlines don't come through.
What the API exposes and what it does not.

7.What I take away

A tool that saves work can't add friction at the first step. v1 asked you to type the typeface's exact name by hand, exactly what the plugin exists to avoid. In v2 it's a selector with search.

A platform's ceiling decides what fits in it. Font metadata and OpenType features don't fit in a Figma plugin, and knowing that early meant not chasing a version of the plugin that couldn't be built.

Rebuilding isn't improving. v1 had little worth keeping, so v2 was written from scratch, with the Figma mockup's values as the source of truth rather than by eye.

Back to top