Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Last active November 15, 2019 18:06
Show Gist options
  • Save mattintosh4/7e1d07beca8449438abee52d1f92ea46 to your computer and use it in GitHub Desktop.
Save mattintosh4/7e1d07beca8449438abee52d1f92ea46 to your computer and use it in GitHub Desktop.
XMTrading MT4 for Mac (Japanese font settings)
/usr/bin/curl -O 'http://ftp.jaist.ac.jp/pub/Linux/debian/pool/main/f/fonts-vlgothic/fonts-vlgothic_20141206.orig.tar.xz'
/usr/bin/tar xf fonts-vlgothic_20141206.orig.tar.xz --strip=1 '**.ttf'
cp VL-Gothic-Regular.ttf VL-PGothic-Regular.ttf ~/Library/Application\ Support/com.xmtrading.mt4_???????????????/drive_c/windows/Fonts
rm fonts-vlgothic_20141206.orig.tar.xz VL-PGothic-Regular.ttf VL-Gothic-Regular.ttf
/usr/bin/iconv -f UTF-8 --unicode-subst="\x%04x" -t ISO-8859-1 <<! | tee -a ~/Library/Application\ Support/com.xmtrading.mt4_???????????????/user.reg
[Software\\\\Wine\\\\Fonts\\\\Replacements] $(date +%s)
"MS UI Gothic"="VL PGothic"
"MS ゴシック"="VL Gothic"
"MS Pゴシック"="VL PGothic"
"MS 明朝"="VL Gothic"
"MS P明朝"="VL PGothic"
!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment