GeezerVison is showing github.com — fix(data): draw link-card characters from OpenMono's rest file by iamdavidhill · Pull Request #64798 · anomalyco/opencode
Conversation
Issue for this PR
No issue. This follows the release of OpenMono 1.000.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
It finishes the data site's move to OpenMono. Rebased onto dev, this PR is smaller than when it was opened: dev already has the OpenMono files in packages/data/app (#65994, all four styles, byte-identical to the website's), the @font-face rules in index.css, and the renamed OG Worker modules in the pinned deploy targets (#66253). This PR no longer changes the font files or .github/. What is left:
- Characters outside the Latin file now draw on link cards. Satori keeps one face per family name and weight, so with both files named
OpenMono the rest file is never used and α or ⥈ draws as the empty box. Each file now has a family name of its own (OpenMono, OpenMono Rest) and the card names both, which costs no bytes. A new test renders α, ⥈ and a character no file has, and fails if any two come out alike.
- Card cache.
cardVersion goes from 2 to 3, so every page links a new image URL and the card is drawn again the first time that URL is asked for. It does not purge the old URLs: a preview that a site has already unfurled stays as it is until that site fetches it again.
- Nav menus. The fallback family in
packages/nav-menus becomes "OpenMono"; it still named the old family. A host that does not set --nav-menu-mono gets that fallback, so it must load OpenMono or set the token. Hosts of the package:
packages/data/app: uses the fallback, and loads OpenMono.
services/site: sets --nav-menu-mono, so it is not affected.
- The Console repository's synced copy: anomalyco/opencode-console#8139, which sets the token for its site and its status page, is merged.
- A script to refresh the fonts after the website's files change, from
packages/data/app:
bun script/openmono.ts ../../../services/site/src/asset/fonts
It reads every file and checks each @font-face rule in index.css against the range of its own file before it writes anything, so a missing file or one stale rule leaves the app's fonts untouched. It copies all four styles, as dev now serves them. Run on this branch, it changes no file.
Feature flag. None. The data site reads no flags.
Companion: #64796 (the website and docs), which is merged.
How did you verify your code works?
bun run check at the root (lint, and typecheck of every package), which the pre-push hook also ran. bun typecheck and bun run test in packages/data/app (58 pass, including the OG Worker build and the new render test) and in packages/nav-menus (7 pass). bun typecheck in services/data. vite build of the data site.
- The OG Worker build lists exactly the modules in both pinned targets.
- The new render test fails with the two files under one family name and passes with their own names.
- The copy script against the website's folder on
dev: it copies the 12 files and the licence, and git status shows no change.
- Not checked: the deployed OG Worker.
Screenshots / recordings
None. No page changes. A link card changes only when its text has a character outside the Latin file, which the render test covers.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm on the .github/ change
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved by Adam. Please rebase onto dev (conflicts); merge #64796 first.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Satori keeps one face per family name and weight, so the rest file gets a family name of its own. Also adds the script that copies the site's OpenMono files, and names OpenMono in the nav menus' fallback.
iamdavidhill
changed the title
feat(data): use OpenMono as the mono typeface
fix(data): draw link-card characters from OpenMono's rest file
Nov 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
thdxr
thdxr left review comments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|