Files
integration/website/public/fonts
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
..

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).