gaufre: better handle the marianne font subsetting

this should be easier to handle if the one doing it is not… me. Still
not that great but better than nothing!
This commit is contained in:
Emmanuel Pelletier
2025-02-27 14:51:31 +01:00
parent effa2c0ff1
commit 799a362f89
8 changed files with 93 additions and 31 deletions

Binary file not shown.

View File

@@ -1,18 +0,0 @@
We use a subset of Marianne font because we know we use just a few characters for our list. This
shrinks the font file size noticeably!
Example command to use to generate the subset with glyphhanger:
```
glyphhanger \
--subset="./Marianne-Regular.woff2" \
--formats=woff2 \
--whitelist="DeskLaSuiteNumériqueMessagerieTchapResanaFranceTransfertContactsGristLePadWebConférencedel'ÉtatWebinaire  "
```
## ⚠
Make sure to also update the `unicode-range` on the `@font-face` CSS rule. You can get it on the
glyphhanger command output.
Assuming you have the Marianne-Regular.woff2 file (you can take it from the DSFR).