zachleat / glyphhanger

Your web font utility belt. It can subset web fonts. It can find unicode-ranges for you automatically. It makes julienne fries.
https://www.zachleat.com/web/glyphhanger/
MIT License
748 stars 21 forks source link

Space character removed from subset #17

Open nhoizey opened 2 years ago

nhoizey commented 2 years ago

I was using glyphhanger with this command:

glyphhanger https://nicolas-hoizey.photo/tools/subset --subset=./assets/font/*.ttf --formats=woff2,woff --output=./src/ui/fonts/

https://nicolas-hoizey.photo/tools/subset contains a space (between Z and °), but it is not preserved in the range nor in the subsetted fonts.

I had to add the space character as a white listed one:

glyphhanger https://nicolas-hoizey.photo/tools/subset --whitelist=U+0020 --subset=./assets/font/*.ttf --formats=woff2,woff --output=./src/ui/fonts/