Closed ghost closed 6 years ago
Hah, you caught a bug in the way the error is handled too (missing a .decode()
).
For me, the svg conversion works fine, but woff2_compress
fails. We must have different versions of FontForge and sfntly.
Quick breakdown:
Here's what happens when I try to run fontforge on this font manually:
$ fontforge -lang=ff -script -
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
Based on sources from 20170106-ML-D.
Based on source from git with hash:
> Open("test-fonts/NotoColorEmoji.ttf")
The following table(s) in the font have been ignored by FontForge
Ignoring 'CBDT'
Ignoring 'CBLC'
No (useable) bitmap strikes in this TTF font: /home/bdusell/Programming/github/webfont-generator/test-fonts/NotoColorEmoji.ttf
Couldn't find a font file named /home/bdusell/Programming/github/webfont-generator/test-fonts/NotoColorEmoji.ttf
NotoColorEmoji.ttf is not in a known format (or uses features of that format fontforge does not support, or is so badly corrupted as to be unreadable)
Open: Failed to open: test-fonts/NotoColorEmoji.ttf
> Generate("test-out/NotoColorEmoji.svg")
Generate: This command requires an active font
> Ctrl-D
$ echo $?
0
It fails silently. Version:
$ fontforge -version
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
Based on sources from 20170106-ML-D.
Based on source from git with hash:
no xdefs_filename!
TESTING: getPixmapDir:/usr/share/fontforge/pixmaps
TESTING: getShareDir:/usr/share/fontforge
TESTING: GResourceProgramDir:/usr/bin
trying default theme:/usr/share/fontforge/pixmaps/resources
fontforge 20170106
libfontforge 20170106
Submitted a bug report at https://github.com/google/woff2/issues/100.
Turns out woff2_compress
is fine, it just takes a long time.
NotoColorEmoji.ttf is known to cause problems due to its non-standard ..something... I still get woff, woff2, ttf and eot, so I guess it breaks on svg, just FYI..
Here is the log I got from running
~/webfont-generator-master $ ./bin/generate-webfonts -o assets NotoColorEmoji.ttf
and here is the verbose log