Skip to content

chore(site): update OpenMono to 1.001 - #66908

Open
iamdavidhill wants to merge 1 commit into
devfrom
openmono-1001-site
Open

iamdavidhill wants to merge 1 commit into
devfrom
openmono-1001-site

Conversation

@iamdavidhill

@iamdavidhill iamdavidhill commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Issue for this PR

No issue. This follows the release of OpenMono 1.001.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Refreshes the website's and the docs' OpenMono files from the 1.001 app build with services/site/script/openmono.py.

  • What 1.001 changes. A new character U+10C0DE, the OpenCode logo (one colour, one cell wide, as tall as a capital). ✗ is redrawn so it no longer reads as X, and ⚠ is larger. U+055F (Armenian) takes a cell of its own. Every other glyph and the line metrics are as in 1.000, so no layout moves. There are no colour tables.
  • The logo is in the Latin file. The script adds U+10C0DE to the symbols that the Latin file keeps, so text that sets the logo does not fetch the 122 kB rest file. openmono.json and the four Latin unicode-range rules in src/style/fonts.css gain U+10C0DE; the cyrillic and rest ranges do not change.
  • Notice. OpenMono-OFL.txt and the script name 1.001. The licence text is unchanged.
  • Nothing on a page changes. No page of the site or the docs sets ✗, ⚠, U+055F or the logo in mono, so there is no image.
Bytes 1.000 1.001
Regular Latin (preloaded on every page) 29,416 29,724
Bold Latin 29,060 29,316
Italic Latin 32,884 33,168
Bold Italic Latin 32,764 33,068
All 12 served files 728,284 729,416
The four source files in src/docs/assets/fonts 856,072 855,936
Docs stylesheet, gzipped (budget 30,720) 29,397 29,412

For the reviewer

  • packages/app/script/openmono.py (Desktop) says to keep its lists the same as this script's. Its symbols list does not have 0x10C0DE until Desktop takes 1.001, so until then the two scripts make different Latin and rest files. This PR does not touch packages/app.
  • The Data app serves copies of these files. Its update is chore(data): update OpenMono to 1.001 #66909; merge this one first.

Feature flag. None: a font refresh with no new behaviour.

How did you verify your code works?

  • The 12 files and openmono.json are byte-identical to the font release's reference cuts, and a second run of the script changes no file.
  • Compared with 1.000, in each style: one character added (U+10C0DE, advance 600), three changed (✗, ⚠, U+055F), none removed, and the same line metrics.
  • In Chromium with the new fonts.css: a line with the logo, ✓, ✗, ⚠ and ⌘K fetches only the Latin file and draws in OpenMono in all four styles. With the 1.000 files, the logo fell back to a system font.
  • bun run build -- --mode dev, which includes the docs build and its stylesheet budget.

Screenshots / recordings

None. No page changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I read the character tables of the new files with fontkit. The four docs fonts are 1.001 and gain only U+10C0DE. The logo is in each Latin subset (advance 600) and in no Cyrillic or rest subset. Every subset matches its unicode-range in openmono.json, and the three subsets together cover the full font. test/fonts.test.ts passes, tsc is clean and bun run build -- --mode dev succeeds, including the stylesheet budgets. I couldn't re-run openmono.py here (no fontTools), so I didn't confirm the byte-identical output.

Public API: unchanged (site font assets only).

No blocking concerns. As you note, Desktop's openmono.py will make different Latin and rest files until it also adds 0x10C0DE.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant