pettarin/glyphIgo

Minimize does not work when input is HTML instead of EPUB

Closed this issue · 2 comments

HTML files can seemingly be used as input for certain commands, like printing the list of characters:

python glyphIgo.py -p input.html

but trying to minimize a font when so

python glyphIgo.py -m -f font.ttf -p input.html -o new.font.ttf

will always produce Warning: Font contained no glyphs.

The issue should be fixed by the latest commit (v2.0.2).

Note, however, that the -o parameter is ignored when -m is used:

python glyphIgo.py -m -f font.ttf -p input.html

will always generatenew.font.ttf. I plan to refactor the whole thing (the bug was due a copy-and-paste error, and a code refactoring is long overdue), so I have not addressed this other issue now.

Feel free to close the issue when you can test and confirm that v2.0.2 solves it.