Skip to content

fix: prioritize sliced woff2 over full ttf#315

Merged
danielroe merged 1 commit intounjs:mainfrom
tuyuritio:fix/font-face-ordering
Jan 9, 2026
Merged

fix: prioritize sliced woff2 over full ttf#315
danielroe merged 1 commit intounjs:mainfrom
tuyuritio:fix/font-face-ordering

Conversation

@tuyuritio
Copy link
Contributor

@tuyuritio tuyuritio commented Jan 9, 2026

Adjusts the order of generated @font-face rules. It moves the rule for the full source font to the top of the css file, ensuring that the sliced woff2 files take precedence.

Resolves #314

@tuyuritio tuyuritio requested a review from danielroe as a code owner January 9, 2026 14:19
@danielroe danielroe merged commit 8a618ec into unjs:main Jan 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full TTF file overrides WOFF2 slices in Google Fonts

2 participants