Conversation
❌ Deploy Preview for fontless failed.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #657 +/- ##
==========================================
+ Coverage 53.41% 53.47% +0.06%
==========================================
Files 11 11
Lines 732 733 +1
Branches 93 93
==========================================
+ Hits 391 392 +1
Misses 341 341 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gioboa
approved these changes
Sep 28, 2025
Collaborator
gioboa
left a comment
There was a problem hiding this comment.
Thanks for this great change
afdb647 to
269d83c
Compare
danielroe
approved these changes
Sep 28, 2025
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.
woff2andwoffin css and browser downloads largerwoff#656problem
CSS spec says the when there are multiple
@font-facewith overlappingunicode-range, browser picks the last one. Note that when it's not specified, it's considered as a full range.Reference https://www.w3.org/TR/css-fonts-4/#composite-fonts
solution
This PR moves
priority: 1beforepriority: 0in rendered css, so browser prioritizespriority: 0for overlappingunicode-range.alternative
Removing
priority: 1might be also an option since woff2 only is normally considered fine. For example,next/fontonly generates woff2 https://nextjs.org/docs/app/api-reference/components/font and fontsource`'s default setup suggests woff2 https://fontsource.org/docs/getting-started/install