Skip to content

feat: ability to exclude fallback font formats on google provider#254

Closed
hi-ogawa wants to merge 6 commits intounjs:mainfrom
hi-ogawa:09-30-feat_add_excludefallbackformats_to_google_provider
Closed

feat: ability to exclude fallback font formats on google provider#254
hi-ogawa wants to merge 6 commits intounjs:mainfrom
hi-ogawa:09-30-feat_add_excludefallbackformats_to_google_provider

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Sep 30, 2025

See unjs/fontaine#659 and unjs/fontaine#660 for more context. Including fallback font format for old browser / user agent is not a good default experience for fontless. This is because old user agent response assumes no woff2 support and no variable font support, so the number of css and font assets required becomes drastically large compared to woff2 only assumption.

This adds an option to filter fallback font out on unifont side via experimental.modernFormatsOnly.

@hi-ogawa hi-ogawa changed the title feat: add excludeFallbackFormats to google provider feat: ability to exclude fallback font formats on google provider Sep 30, 2025
@florian-lefebvre
Copy link
Collaborator

This was superseded by #297

@hi-ogawa hi-ogawa deleted the 09-30-feat_add_excludefallbackformats_to_google_provider branch December 10, 2025 00:43
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.

2 participants