Last active
April 21, 2019 05:09
-
-
Save damieng/dafa7e934a3f35afcee54a4d788580a6 to your computer and use it in GitHub Desktop.
ZX to TTF font conversion shell script (required psftools modified, PixelWorld and FontLab Studio + scripts)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fl5reg="HKCU\Software\FontLab\Studio 5\Directories" | |
for i in "$@" | |
do | |
name="${i%.*}" | |
echo Processing $name | |
pw preview "$i" . >> /dev/null | |
psf="${name}.psf" | |
vfb="${name}.vfb" | |
zx2psf "$i" "${psf}" --mode=move1 --graphics=none | |
psf2bdf "${psf}" "${name}.bdf" --fontname="${name}" | |
cp ../Template.vfb "${vfb}" | |
wincur="$(wslpath -w "`pwd`")" | |
reg.exe add "${fl5reg}" /f /v "BitmapFonts" /t REG_SZ /d "${wincur}" | |
"/mnt/c/Program Files (x86)/Fontlab/Studio 5/Studio 5.exe" "${vfb}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment