Created
June 28, 2011 02:59
-
-
Save yuttie/1050392 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
#!/bin/sh | |
# This shell script makes symbolic links to Hiragino fonts and a map file | |
# which can be used with dvipdfmx to embed Hiragino fonts into PDFs. | |
fonts_dir=${HOME}/.fonts | |
texmf_fonts_dir=${HOME}/texmf/fonts/opentype/hiragino | |
dvipdfmx_dir=${HOME}/texmf/fonts/map/dvipdfmx | |
mkdir -p $texmf_fonts_dir | |
ln -sf "$fonts_dir/ヒラギノ明朝 Pro W3.otf" $texmf_fonts_dir/HiraMinPro-W3.otf | |
ln -sf "$fonts_dir/ヒラギノ明朝 Pro W6.otf" $texmf_fonts_dir/HiraMinPro-W6.otf | |
ln -sf "$fonts_dir/ヒラギノ角ゴ Pro W3.otf" $texmf_fonts_dir/HiraKakuPro-W3.otf | |
ln -sf "$fonts_dir/ヒラギノ角ゴ Pro W6.otf" $texmf_fonts_dir/HiraKakuPro-W6.otf | |
ln -sf "$fonts_dir/ヒラギノ角ゴ Std W8.otf" $texmf_fonts_dir/HiraKakuStd-W8.otf | |
ln -sf "$fonts_dir/ヒラギノ丸ゴ Pro W4.otf" $texmf_fonts_dir/HiraMaruPro-W4.otf | |
mkdir -p $dvipdfmx_dir | |
cat << EOF > $dvipdfmx_dir/hiragino.map | |
rml H HiraMinPro-W3.otf | |
rmlv V HiraMinPro-W3.otf | |
gbm H HiraKakuPro-W6.otf | |
gbmv V HiraKakuPro-W6.otf | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment