Repository navigation
Conversation
Views ask for font="medium" in 32 places and font="bold" once, but neither was an alias or a bundled file, so iOS and Android drew that text in the system font. The web loads Geist at 400, 500, 600 and 700 from Bunny, so a browser draws font-medium at 500 and font-bold at 700. This adds Geist Medium and Geist Bold from the official Geist 1.7.2 release (the release the existing Geist files are byte-identical to) and aliases them as medium and bold. FontsTest no longer skips the two names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Views ask for
font="medium"in 32 places andfont="bold"once. Neither was an alias inconfig/native-ui.phpor a file inresources/fonts, so the phone drew that text in the system font (San Francisco on iOS, Roboto on Android) instead of Geist. Found while fixing the HEAD@{last visit} band in #178.Before: medium and bold text in the system font, next to Geist everywhere else.
After: medium is Geist Medium (500) and bold is Geist Bold (700).
Why those weights: the web's
vite.config.tsloads Geist from Bunny at 400, 500, 600 and 700, so a browser drawsfont-mediumat 500 andfont-boldat 700. The web's ownresources/fontsonly has Regular and SemiBold (they're for the Open Graph images), so the two new files come from the official Geist 1.7.2 release. The four Geist files already here are byte-identical to that release, so all six faces match.resources/fonts/OFL.txtalready covers them.They're registered like the others:
medium => Geist-Mediumandbold => Geist-Boldaliases, with files named<Family>-<Weight>.ttf. mobile-ui looks an alias up by file name on both platforms (iOS reads the PostScript name out of the file, which isGeist-Medium/Geist-Boldanyway).FontsTestno longer skips the two names.Screens affected
Text that names
mediumorbold:Watch for this: the default font is
Geist-Regular, and mobile-ui picks a sibling file when something asks it for a weight. Before, a medium request found only Regular and SemiBold and fell back to Regular. Now it gets Medium. So every button label (66 buttons, none set a font), the labels on the outlined text inputs, select, radio group and date picker, and the GitHub @mention link on profile and org headers move from Geist Regular to Geist Medium. That is what the web draws for its buttons (font-medium). Anything that asks the default font for bold now gets Bold rather than SemiBold.Tests: 1,914 passed, run serially.
Screenshots
None yet. This goes into the iPhone test build first; simulator and emulator shots can go in before it leaves draft.
🤖 Generated with Claude Code