fix: self-host Inter font, document unfixed WebKitGTK bold-text bug - #30
Merged
Merged
Conversation
Bundles Inter (300/400/500/600/700) via @fontsource/inter so typography renders as intended on any Linux install instead of silently falling back to whatever generic sans-serif fontconfig resolves (Noto Sans here, which has no Light face and doesn't match the font stack's original intent). Investigated as a fix for track-list/album-grid text rendering bold once a virtualized list actually overflows and scrolls (a WebKitGTK composited-scroll-layer text rendering bug), but font substitution alone doesn't address the underlying compositing behavior. Several other mitigations (will-change layer promotion, transform-vs-top row positioning, compensating font-weight) were tried and ruled out — see the new CLAUDE.md note under Frontend layout for what was tried and why, so this isn't re-investigated from scratch later. Co-Authored-By: Claude Sonnet 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.
Summary
@fontsource/interso typography renders as originally intended on any Linux install, instead of silently falling back to whatever generic sans-serif fontconfig resolves (this machine has neither Inter nor Roboto installed, so it was falling back to Noto Sans).CLAUDE.md: once a virtualized list's scroll container (track list, album grid) actually overflows and becomes scrollable, WebKit promotes it to a GPU-composited layer and text inside renders noticeably bolder than identical non-composited text. Several mitigations were investigated and ruled out (will-changelayer promotion,transform-vs-toprow positioning, compensating font-weight, full compositing disable) — written up so this isn't re-investigated from scratch later.Test plan
npm run checkpasses🤖 Generated with Claude Code