Skip to content

Instantly share code, notes, and snippets.

@pen
Last active October 18, 2020 16:06
Show Gist options
  • Save pen/fff393f8d33fb28377202945fff20950 to your computer and use it in GitHub Desktop.
Save pen/fff393f8d33fb28377202945fff20950 to your computer and use it in GitHub Desktop.
Rictyフォントを作る。要 curl unzip fontforge
#!/bin/sh
missing=''
for cmd in curl unzip fontforge; do
if ! type $cmd &>/dev/null; then
missing="$missing$sep$cmd"
sep=', '
fi
done
if [ -n "$missing" ]; then
echo "missing: $missing"
exit
fi
zip_uri=`
curl -s -L 'https://mix-mplus-ipa.osdn.jp/migu/' \
| grep -o 'https://[^"]*migu-1m-[^"]*'
`
curl -L -O $zip_uri
zip=`echo $zip_uri | grep -o "migu-1m-[^.]*\.zip"`
unzip -j -o $zip '*.ttf'
curl -s -L -O 'https://levien.com/type/myfonts/Inconsolata.otf'
curl -s -L -O 'https://github.com/metalefty/Ricty/raw/master/ricty_generator.sh'
curl -s -L -O 'https://github.com/metalefty/Ricty/raw/master/ricty_discord_patch.pe'
curl -s -L -O 'https://github.com/metalefty/Ricty/raw/master/misc/regular2oblique_converter.pe'
curl -s -L -O 'https://github.com/metalefty/Ricty/raw/master/misc/os2version_reviser.sh'
sh ricty_generator.sh auto
fontforge -script regular2oblique_converter.pe Ricty-*.ttf RictyDiscord-*.ttf
sh os2version_reviser.sh Ricty-*.ttf RictyDiscord-*.ttf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment