Hazel reports · ^report(59) · interface font · 2026-11-19, revised 2026-11-19 11:27 MST · work in progress · after ^report(58)

An Open Font for Hazel’s Interface

Hazel’s interface font was Helvetica Neue, a commercial typeface, from a copy Hazel served with every build, with no license for it on record. Since hazelgrove/hazel#2837, Hazel ships no copy: the interface takes Helvetica Neue from the reader’s own machine if it has one (a Mac does), and otherwise Helvetica or Arial’s stand-ins, so it looks different on Linux and Windows. Matthew Hammer asked, on 2026-11-19, for an open font Hazel can ship with itself, so the interface looks the same everywhere: a choice for the team. This page lays out 11 candidates, all under the SIL Open Font License 1.1, side by side in pieces of Hazel’s interface, measured against Helvetica Neue.

Outline#

  1. The candidates, side by side: each font drawing the same pieces of Hazel’s interface, with your own text if you like.
  2. How each measures against Helvetica Neue: the width it sets Hazel’s words at, its x-height, and its files’ size.
  3. Our lean: Inter; Roboto for the least change; Source Sans 3 to match the code font.
  4. What adopting one takes: two files, two rules, one variable, and the license.
  5. What next, and how this was put together.

The candidates, side by side#

Each card draws the same pieces of Hazel’s interface in one font: a right-click menu, a panel’s heading and text, a type error, two buttons and a line of numbers, with a line of code in Source Code Pro, Hazel’s code font, under them. The first card is what Hazel showed until #2837: Helvetica Neue, here only if your machine has it. Each candidate loads from Fontsource under a name of its own, so a copy installed on your machine is never used instead.

Helvetica Neue, from your machine #

What Hazel showed until #2837, where it shipped the file; a Mac has its own copy. Without one, this card falls back to Helvetica, Arial or sans-serif.

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

The fallback alone: sans-serif#

What a card would show if its font had not loaded: your browser’s default sans-serif. Every candidate below should look, and measure, unlike it.

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Inter#

designed for screens and interfaces (Rasmus Andersson) · SIL OFL 1.1 · width 1.05, x-height 1.06 · 47 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Roboto#

Android's interface font (Christian Robertson, Google) · SIL OFL 1.1 · width 0.98, x-height 1.02 · 43 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

IBM Plex Sans#

IBM's grotesque (Mike Abbink, Bold Monday) · SIL OFL 1.1 · width 0.99, x-height 1.00 · 44 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Arimo#

set to Arial's widths (Steve Matteson) · SIL OFL 1.1 · width 0.99, x-height 1.02 · 22 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Public Sans#

the US Web Design System's font, after Libre Franklin · SIL OFL 1.1 · width 1.04, x-height 1.00 · 29 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Figtree#

friendly, geometric (Erik Kennedy) · SIL OFL 1.1 · width 1.00, x-height 0.97 · 22 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Noto Sans#

Google's, for nearly every writing system · SIL OFL 1.1 · width 1.03, x-height 1.04 · 26 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Geist#

Swiss in style (Vercel) · SIL OFL 1.1 · width 1.05, x-height 1.02 · 67 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Atkinson Hyperlegible#

for readers with low vision (Braille Institute) · SIL OFL 1.1 · width 0.98, x-height 0.96 · 34 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Source Sans 3#

Adobe's companion to Source Code Pro, Hazel's code font (Paul D. Hunt) · SIL OFL 1.1 · width 0.92, x-height 0.94 · 31 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

Work Sans#

wide, for display (Wei Huang) · SIL OFL 1.1 · width 1.10, x-height 0.97 · 40 KB

Settings

Show each step of the evaluation, and keep the probes’ samples.

Expected Int but found Bool

12 samples · 3.5 ms · 1,024 steps

Rag 1Il Qy G&t
let area : Shape -> Float = fun s -> ...

measuring… (needs JavaScript)

17 px is about Hazel’s own interface size (its base size is 13 pt). The code line is the same in every card; the menu, panel, buttons and large letters are in the card’s font.

How each card proves its font. A browser does not say which font file drew a piece of text, so each card measures it. Under each card: what its CSS asks for; whether that font’s two files loaded; and the width of a hidden line of Hazel’s interface words, drawn by the card’s own CSS at 40 px with no kerning or ligatures, against two others: the width the font’s own advance widths predict (from its file, as in the table), and the width your browser’s default sans-serif gives. A card drawn in its font measures within a fraction of a percent of its prediction, and unlike the fallback. The large letters (Rag 1Il Qy G&t) show the same by eye: the tail of the R, the shape of the a and the g, the 1 and l and I, the Q’s tail. To look for yourself: in Firefox, the Inspector’s Fonts panel, beside Layout and Computed, names the fonts used for the selected element and where each came from; in Chrome, the Elements panel’s Computed tab ends with Rendered Fonts. If every card says not its font and measures like the fallback, your browser is not loading web fonts for this page: an extension (uBlock Origin’s switch for blocking remote fonts, for one) or a setting (Firefox’s “Allow pages to choose their own fonts”, under Settings, Fonts, Advanced).

How each measures against Helvetica Neue#

IBM Plex Sans, Roboto and Arimo set Hazel’s interface words within 2% of Helvetica Neue’s width, with x-heights within 2% of its own; Inter sets them 5% wider and looks about 6% larger. Every candidate’s regular and bold, for the Latin alphabet, are 22 to 67 KB together, where Helvetica Neue’s two files were 258 KB. Width decides whether a label still fits where it fit; x-height, the height of small letters, decides how large text looks at the same size.

0.920.961.001.041.081.120.940.981.021.06width of Hazel’s interface words, against Helvetica Neue’sx-height, against Helvetica Neue’sHelvetica NeueInterRobotoIBM Plex SansArimoPublic SansFigtreeNoto SansGeistAtkinson HyperlegibleSource Sans 3Work Sans
Each candidate, by the width it sets a sample of Hazel’s interface words at (across) and its x-height, how tall its small letters are (up), both against Helvetica Neue’s. The green band is within 2% of Helvetica Neue in both: the fonts there would change the interface’s layout least.
FontWidthx-heightCap heightRegular and bold, LatinLicenseVersionWhat it is
Helvetica Neue (until #2837)1.001.001.00258 KB, whole fontcommercial; no license on record10.0d40e1Linotype’s
IBM Plex Sans0.991.000.9844 KBSIL OFL 1.1@fontsource/ibm-plex-sans@5.3.0IBM's grotesque (Mike Abbink, Bold Monday)
Arimo0.991.020.9622 KBSIL OFL 1.1@fontsource/arimo@5.3.0set to Arial's widths (Steve Matteson)
Public Sans1.041.001.0129 KBSIL OFL 1.1@fontsource/public-sans@5.3.0the US Web Design System's font, after Libre Franklin
Figtree1.000.970.9822 KBSIL OFL 1.1@fontsource/figtree@5.3.0friendly, geometric (Erik Kennedy)
Roboto0.981.021.0043 KBSIL OFL 1.1@fontsource/roboto@5.3.0Android's interface font (Christian Robertson, Google)
Atkinson Hyperlegible0.980.960.9434 KBSIL OFL 1.1@fontsource/atkinson-hyperlegible@5.3.0for readers with low vision (Braille Institute)
Noto Sans1.031.041.0026 KBSIL OFL 1.1@fontsource/noto-sans@5.3.0Google's, for nearly every writing system
Geist1.051.020.9967 KBSIL OFL 1.1@fontsource/geist-sans@5.3.0Swiss in style (Vercel)
Inter1.051.061.0247 KBSIL OFL 1.1@fontsource/inter@5.3.0designed for screens and interfaces (Rasmus Andersson)
Work Sans1.100.970.9240 KBSIL OFL 1.1@fontsource/work-sans@5.3.0wide, for display (Wei Huang)
Source Sans 30.920.940.9231 KBSIL OFL 1.1@fontsource/source-sans-3@5.3.1Adobe's companion to Source Code Pro, Hazel's code font (Paul D. Hunt)

Width is the advance widths of a sample of Hazel’s interface words (menu items, panel names, an error message), summed; x-height and cap height are the fonts’ own (OS/2 table); all three against Helvetica Neue’s, so 1.00 is the same. The sizes are Fontsource’s Latin files, enough for Hazel’s English interface; a whole font, with other alphabets, is larger.

Our lean#

Inter: a neutral grotesque in Helvetica’s line, designed for screens and interfaces, and among the most used open fonts for them; its cost is text about 5% wider, so a tight label or button may need a look. Three others, each for a reason the team may weigh more:

The choice is the team’s, and the cards are the way to make it: the numbers say what will shift, not what reads well.

What adopting one takes#

Four small changes on top of #2837, in one pull request.

  1. The font’s two files (regular and bold), in src/web/www/style/fonts/: Fontsource’s Latin .woff2, or the font’s own release, for more alphabets.
  2. Two @font-face rules in style/fonts.css, as Source Code Pro has.
  3. The variable, in style/variables.css: for Inter, --ui-font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif, so a page that cannot load the file still falls back as it does now.
  4. The licenses, in licenses/: the SIL Open Font License’s text, for the new font and for Source Code Pro, whose copy Hazel already ships without it.

hazelgrove/hazeljs, whose package now holds Hazel’s editor (hazelgrove/hazeljs#2), takes the same files with its next build.

What next#

  1. The team chooses a font, with the cards above.
  2. A pull request adds it, on top of hazelgrove/hazel#2837: the files, the rules, the variable and both licenses.
  3. hazeljs’s package and the Hazel build on fumola.org follow with their next builds.

How this was put together#

On 2026-11-19. The candidates are the sans-serif fonts on Fontsource that are common choices for interfaces, each under the SIL Open Font License 1.1 as its npm package (@fontsource/<name>) declares, at the versions in the table. 059/drivers/measure059.py fetches each one’s Latin regular and bold .woff2 from jsDelivr and reads them with fontTools: x-height and cap height from the OS/2 table, and the width of a fixed sample of Hazel’s interface words from the advance widths; Helvetica Neue’s numbers come from the file Hazel shipped until #2837, read locally and not kept here. The page loads each candidate from the same addresses. Whether your machine has Helvetica Neue is measured in the page: a line of text in Helvetica Neue and in a fallback, compared by width. The numbers are in 059/data/fonts.json.

The data#