Skip to content

chore(app): update OpenMono to 1.001 - #66907

Merged
Hona merged 1 commit into
devfrom
openmono-1001
Dec 1, 2026
Merged

Hona merged 1 commit into
devfrom
openmono-1001

Conversation

@iamdavidhill

Copy link
Copy Markdown
Contributor

Issue for this PR

No linked issue.

Type of change

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

What does this PR do?

Updates the app's bundled code and terminal font from OpenMono 1.000 to 1.001.

What changed in the font

  • New character U+10C0DE, the OpenCode logo: one colour, one cell wide, as tall as a capital. The font has no colour tables.
  • ✗ (U+2717) is redrawn so that it no longer reads as the letter X, and ⚠ (U+26A0) is larger.
  • U+055F (Armenian) takes a cell of its own. In 1.000 it had no width and drew over the character before it.
  • Every other glyph is the same as in 1.000, and the line metrics are the same, so the @font-face metric overrides do not change.

What changed in the app

  • The ten font files in packages/app/src/assets/fonts are rebuilt with script/openmono.py from the 1.001 app build. The split is the same: latin, cyrillic and rest for Regular, Bold and Italic, and one icons file.
  • U+10C0DE is in each style's Latin file, so the logo loads with the file the app already has at startup:
 @font-face {
   font-family: "OpenMono";
   src: url("./assets/fonts/OpenMono-Regular-latin.woff2") format("woff2");
-  unicode-range: U+0020-007E, /* … */ U+2715-2717, U+FFFD;
+  unicode-range: U+0020-007E, /* … */ U+2715-2717, U+FFFD, U+10C0DE;
 }
  • script/openmono.py has U+10C0DE in the list of symbols that the Latin file keeps.
  • The version in the license file's first lines and in the stylesheet comment is 1.001. The copyright lines and the third-party notices do not change.
  • The icons file has the same icons; only its version string differs.
  • No flag: this is a font file update with no new behavior.

Sizes, in bytes

File 1.000 1.001
latin, Regular / Bold / Italic 29,416 / 29,060 / 32,884 29,724 / 29,316 / 33,168
cyrillic, Regular / Bold / Italic 18,412 / 17,952 / 21,968 18,468 / 18,032 / 21,964
rest, Regular / Bold / Italic 122,432 / 121,880 / 139,804 122,440 / 121,968 / 139,624
icons 1,059,872 1,060,580
All ten files 1,593,680 1,595,284

The file that loads with the app grows by 308 bytes, and the ten files together by 1,604 bytes.

How did you verify your code works?

  • Compared each new file with the file it replaces: the Latin files gain U+10C0DE and change only U+2717 and U+26A0, the rest files change only U+055F, and the Cyrillic and icons files have no glyph change.
  • In a code block in Chromium, the logo, ✗, ⚠ and U+055F each draw from OpenMono at one cell wide, and the logo requests no file after startup. On dev the logo comes from a system font.
  • The app's own UI does not draw these characters; they appear in terminal output, shell output and code.

Screenshots / recordings

The terminal, dark theme. The last row starts with U+10C0DE.

Before After

Checklist

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

The app's font files are rebuilt from the OpenMono 1.001 app build: the OpenCode logo at U+10C0DE joins each style's Latin file and its unicode-range, ✗ and ⚠ are redrawn, and U+055F takes a cell of its own.

@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.

This looks good. I decoded all ten new font files and compared them with the base. The Latin files gain U+10C0DE, one cell wide, and only ✗ and ⚠ are redrawn. In the rest files only U+055F changes, from no width to one cell. The Cyrillic and icons files have no glyph changes. The line metrics are the same, and no character is wider than one cell. vite build works, and the built CSS keeps U+10C0DE in all three Latin rules. The settings model tests pass. I did not look at the page in a browser.

Public API: unchanged.

One comment inline: the app script's symbol list now differs from the site's openmono.py, which the script's header says it must match.

# ⁰ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹, ₀ ₁, σ and Σ (¹ ² ³ are in Latin-1)
*(0x2070, 0x2074, 0x2075, 0x2076, 0x2077, 0x2078, 0x2079, 0x2080, 0x2081, 0x03C3, 0x03A3),
# The OpenCode logo (OpenMono 1.001), set in Latin text
0x10C0DE,

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.

The header of this script (lines 13–17) says it splits the files the same way as services/site/script/openmono.py, makes the same files byte for byte, and must keep the same lists. The site's symbols list doesn't have 0x10C0DE. If the site is rebuilt from 1.001 with its current list, the logo goes into its "rest" file, the two scripts stop making the same files, and openmono.json no longer matches the app's ranges. Could you add 0x10C0DE to the site script's list too (now or when the site moves to 1.001), or update this header so it describes how the two now differ?

@Hona
Hona merged commit eaffc67 into dev Dec 1, 2026
11 checks passed
@Hona
Hona deleted the openmono-1001 branch December 1, 2026 21:39
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.

2 participants