Last active
August 29, 2015 14:15
-
-
Save viz3/568395a3cfbea71b3448 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/ruby | |
# coding: utf-8 | |
require 'fileutils' | |
{ | |
"/Library/Fonts/ヒラギノ明朝 Pro W3.otf" => 'HiraMinPro-W3.otf', | |
"/Library/Fonts/ヒラギノ明朝 Pro W6.otf" => 'HiraMinPro-W6.otf', | |
"/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" => 'HiraKakuPro-W3.otf', | |
"/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" => 'HiraMaruPro-W4.otf', | |
"/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" => 'HiraKakuPro-W6.otf', | |
"/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" => 'HiraMaruProN-W4.otf', | |
"/Library/Fonts/ヒラギノ角ゴ Std W8.otf" => 'HiraKakuStd-W8.otf', | |
"/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" => 'HiraKakuStdN-W8.otf', | |
"/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" => 'HiraMinProN-W3.otf', | |
"/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" => 'HiraMinProN-W6.otf', | |
"/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" => 'HiraKakuProN-W3.otf', | |
"/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" => 'HiraKakuProN-W6.otf', | |
}.each { |src, dst| | |
FileUtils.ln_s(src, "/usr/local/texlive/texmf-local/fonts/opentype/hiragino/#{dst}") | |
puts "ln -s #{src} /usr/local/texlive/texmf-local/fonts/opentype/hiragino/#{dst}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment