New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug? Whitespace trimming #39

nicothin opened this Issue Aug 25, 2016 · 1 comment


None yet
2 participants
Copy link

nicothin commented Aug 25, 2016

my command:

text="`cat subset.txt`" && node_modules/.bin/fontmin -t "$text" fonts/lato/lato__latofonts_com.ttf > fonts/lato/lato__fontmin.ttf

in subset.txt:

! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~©«»ЁАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяё‐‑‒–—―‘‚“„…‰™

whitespace character is in the set
but when I open the .ttf in FontForge, I see that the space character in the font is missing.


This comment has been minimized.

Copy link

grumpy commented Dec 8, 2016

I thought this was strange as well. If you pass trim: false in the opts it will include the space. The downside is that for certain fonts it is replacing the space with some other glyph. This leads to another bug. See #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment