Last active
October 18, 2020 16:06
-
-
Save pen/fff393f8d33fb28377202945fff20950 to your computer and use it in GitHub Desktop.
Rictyフォントを作る。要 curl unzip fontforge
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/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