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:
BIN
website/public/fonts/Marianne-Regular-subset-1.woff2
Normal file
BIN
website/public/fonts/Marianne-Regular-subset-1.woff2
Normal file
Binary file not shown.
Binary file not shown.
@@ -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).
|
||||
Reference in New Issue
Block a user