Skip to content

Subset Public Sans to latin characters only#6094

Merged
aduth merged 3 commits intomainfrom
aduth-subset-public-sans
Mar 21, 2022
Merged

Subset Public Sans to latin characters only#6094
aduth merged 3 commits intomainfrom
aduth-subset-public-sans

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Mar 18, 2022

Upstream: uswds/uswds#4542, uswds/uswds#4591
Slack context: https://gsa-tts.slack.com/archives/C0NGESUN5/p1645821094190849?thread_ts=1645133006.512749&cid=C0NGESUN5

Why: So that users don't need to download glyph data for characters we won't be showing in the application.

Reduces size of font data on home page by 35.7% (65.8kb to 42.3kb).

Generated using glyphhanger (glyphhanger --LATIN --formats=woff2,woff --subset=*.ttf).

Draft: For some reason, Roboto Mono font is not resolved correctly with Sprockets, despite the fact it should be referencing linked tree from manifest in same way Public Sans is referenced. Edit: Fixed in 9faf222.

**Why**: So that users don't need to download glyph data for characters we won't be showing in the application.
@aduth aduth marked this pull request as draft March 18, 2022 18:37
aduth added 2 commits March 18, 2022 17:00
changelog: Improvements, Optimization, Reduce size of font files
@aduth aduth marked this pull request as ready for review March 18, 2022 21:00
@aduth aduth merged commit 5ca8bb6 into main Mar 21, 2022
@aduth aduth deleted the aduth-subset-public-sans branch March 21, 2022 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants