2024-04-22 11:19:08 +02:00
|
|
|
|
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 "
|
|
|
|
|
|
```
|
|
|
|
|
|
|
2024-06-21 14:19:40 +02:00
|
|
|
|
## ⚠
|
|
|
|
|
|
|
|
|
|
|
|
Make sure to also update the `unicode-range` on the `@font-face` CSS rule. You can get it on the
|
|
|
|
|
|
glyphhanger command output.
|
|
|
|
|
|
|
2024-04-22 11:19:08 +02:00
|
|
|
|
Assuming you have the Marianne-Regular.woff2 file (you can take it from the DSFR).
|