Working...
This commit is contained in:
parent
0ea692c54a
commit
95f4dd4156
2 changed files with 7 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -35,6 +35,13 @@ wide-svgs: pngs
|
||||||
done
|
done
|
||||||
touch wide-svgs
|
touch wide-svgs
|
||||||
|
|
||||||
|
unicode2msx.txt: msx2utf8.py
|
||||||
|
./msx2utf8.py -l | awk '{ print $$2" "$$1 }' > unicode2msx.txt
|
||||||
|
|
||||||
|
msx-screen0.sfd msx-screen0.woff: svgs unicode2msx.txt importchars.py
|
||||||
|
fontforge -script importchars.py unicode-to-msx.txt narrow-svgs/ msx-screen0.sfd msx-screen0.woff
|
||||||
|
|
||||||
|
|
||||||
MSX-Screen0.woff: msx-screen0.sfd
|
MSX-Screen0.woff: msx-screen0.sfd
|
||||||
|
|
||||||
MSX-Screen0.ttf: msx-screen0.sfd
|
MSX-Screen0.ttf: msx-screen0.sfd
|
||||||
|
|
|
@ -11,7 +11,6 @@ for line in f:
|
||||||
msxcode = int(msxcode)
|
msxcode = int(msxcode)
|
||||||
glyph = font.createChar(codepoint)
|
glyph = font.createChar(codepoint)
|
||||||
svgfile = "{:03d}.svg".format(msxcode)
|
svgfile = "{:03d}.svg".format(msxcode)
|
||||||
print("importing", svgfile)
|
|
||||||
glyph.importOutlines(os.path.join(sys.argv[2], svgfile))
|
glyph.importOutlines(os.path.join(sys.argv[2], svgfile))
|
||||||
|
|
||||||
font.save(sys.argv[3])
|
font.save(sys.argv[3])
|
||||||
|
|
Loading…
Reference in a new issue