Files
integration/website/public/fonts/readme.md
Emmanuel Pelletier f29325a7f4 gaufre: update font subset with new characters
command used (assuming Marianne-Regular.woff2 is in website/public/fonts
dir, taken from the dsfr):

glyphhanger \
  --subset="./Marianne-Regular.woff2" \
  --formats=woff2 \
--whitelist="DémarchessimplifiéesFranceTransfertGristNotepaddel'ÉtatRDVServicePublicResanaTchapWebConférencedel'ÉtatWebinairedel'ÉtatFermer✕
"

we had feedback where text in the popup was rendered with completely
random characters… adding the unicode range should help?
2024-06-21 15:12:45 +02:00

19 lines
629 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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).