all: MSX-Screen0.woff MSX-Screen0.ttf MSX-Screen1.woff MSX-Screen1.ttf pngs: characters.png mkdir -p pngs gm convert -crop 8x8 characters.png +adjoin pngs/%03d.png touch pngs narrow-svgs: pngs mkdir -p narrow-svgs for i in pngs/???.png ;\ do \ f=$$(basename "$$i") ;\ gm convert "$$i" -crop 6x8 -filter Point -resize 48x64 -black-threshold 50%% "$$f.bmp" ;\ potrace "$$f.bmp" -o narrow-svgs/"$${f%%.png}.svg" -i -a 1.01 -s -z black ;\ rm -f "$$f.bmp" ;\ done touch narrow-svgs MSX-Screen0.woff: msx-screen0.sfd MSX-Screen0.ttf: msx-screen0.sfd MSX-Screen1.woff: msx-screen1.sfd MSX-Screen1.ttf: msx-screen1.sfd