Hello, I ran the script and got the following output:
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 23:50 PDT 3-Oct-2016-ML-D.
Based on source from git with hash: 072edb0235cd163d6c3391da9cc3754c3c66f47a
Traceback (most recent call last):
File "../makefont", line 195, in <module>
for name in list(filter(lambda name: re.match(".....\.svg", name) , os.listdir())):
TypeError: listdir() takes exactly 1 argument (0 given)
I fixed by specifying os.listdir('.').
I also had to change lines 201 to 208 as follows:
root = parse(name)
scale = 1000/float(root.getElementsByTagName("svg")[0].getAttribute("width"))
for index, svgroot in \
enumerate(root.
getElementsByTagName("svg")) \
:
parsePaths(svgroot)
gc.collect()
Hello, I ran the script and got the following output:
I fixed by specifying
os.listdir('.')
.I also had to change lines 201 to 208 as follows: