Repository navigation
chore(app): update OpenMono to 1.001 - #66907
Conversation
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.
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
Issue for this PR
No linked issue.
Type of change
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
✗(U+2717) is redrawn so that it no longer reads as the letter X, and⚠(U+26A0) is larger.@font-facemetric overrides do not change.What changed in the app
packages/app/src/assets/fontsare rebuilt withscript/openmono.pyfrom the 1.001 app build. The split is the same: latin, cyrillic and rest for Regular, Bold and Italic, and one icons file.@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.pyhas U+10C0DE in the list of symbols that the Latin file keeps.Sizes, in bytes
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?
✗,⚠and U+055F each draw from OpenMono at one cell wide, and the logo requests no file after startup. Ondevthe logo comes from a system font.Screenshots / recordings
The terminal, dark theme. The last row starts with U+10C0DE.
Checklist