foo
This commit is contained in:
@@ -24,7 +24,6 @@ if __name__ == '__main__':
|
|||||||
pass
|
pass
|
||||||
chars = sorted(glyphs.keys())
|
chars = sorted(glyphs.keys())
|
||||||
|
|
||||||
print(f.name)
|
|
||||||
fontID = re.sub(r"[^0-9A-Za-z]", "_", f.name)
|
fontID = re.sub(r"[^0-9A-Za-z]", "_", f.name)
|
||||||
if fontID[0].isdigit():
|
if fontID[0].isdigit():
|
||||||
fontID = "_" + fontID
|
fontID = "_" + fontID
|
||||||
|
|||||||
7
go
7
go
@@ -1,3 +1,4 @@
|
|||||||
for x in mst/* ; do echo $x ; (python dumpscad.py $x >> ~/3d/mstfonts.scad ) ; done
|
rm mstfonts.scad
|
||||||
python makelist.py ~/3d/mstfonts.scad > list.scad
|
for x in mst/* ; do echo $x ; (python dumpscad.py $x >> mstfonts.scad ) ; done
|
||||||
cat list.scad >> ~/3d/mstfonts.scad
|
python makelist.py mstfonts.scad > list.scad
|
||||||
|
cat list.scad >> mstfonts.scad
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ with open(argv[1]) as f:
|
|||||||
for line in f:
|
for line in f:
|
||||||
if line.startswith("FONT_"):
|
if line.startswith("FONT_"):
|
||||||
fonts.append(line.split()[0])
|
fonts.append(line.split()[0])
|
||||||
print("FONTS = [ " + ','.join(fonts) + " ];\n")
|
print("FONTS = [ " + ', '.join(fonts) + " ];\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user