Skip to content

Instantly share code, notes, and snippets.

@munepi
Last active April 12, 2021 11:10
Show Gist options
  • Save munepi/536d21c8ab2ea8b23ebd to your computer and use it in GitHub Desktop.
Save munepi/536d21c8ab2ea8b23ebd to your computer and use it in GitHub Desktop.
#!/bin/bash
# This program is licensed under the terms of the MIT License.
#
# Copyright (c) 2014-2021 Munehiro Yamamoto <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
GSRESDIR=${GSRESDIR:-/opt/homebrew/share/ghostscript/$(gs --version)/Resource}
echo -n "Checking your Ghostscript's resource directory..."
[ -d ${GSRESDIR} ] || exit 1
echo ${GSRESDIR}
#
# settings for Hiragino fonts
#
FontList=(
## Morisawa NewCID
Ryumin-Light,Japan
GothicBBB-Medium,Japan
FutoMinA101-Bold,Japan
FutoGoB101-Bold,Japan
Jun101-Light,Japan
## Screen Hiragino bundled in OS X
HiraKakuPro-W3,Japan
HiraKakuPro-W6,Japan
HiraKakuStd-W8,Japan
HiraMaruPro-W4,Japan
HiraMinPro-W3,Japan
HiraMinPro-W6,Japan
HiraKakuProN-W3,Japan
HiraKakuProN-W6,Japan
HiraKakuStdN-W8,Japan
HiraMaruProN-W4,Japan
HiraMinProN-W3,Japan
HiraMinProN-W6,Japan
# HiraginoSansGB-W3,GB
# HiraginoSansGB-W6,GB
# HiraginoSansCNS-W3,CNS
# HiraginoSansCNS-W6,CNS
## MORISAWA PASSPORT Hiragino fonts
HiraginoSerifPr6N-W3,Japan
HiraginoSerifPr6N-W6,Japan
HiraginoSansPr6N-W3,Japan
HiraginoSansPr6N-W6,Japan
HiraginoSansRPr6N-W4,Japan
HiraMinPro-W2,Japan
HiraMinStd-W4,Japan
HiraMinStd-W5,Japan
HiraMinStd-W7,Japan
HiraMinStd-W8,Japan
HiraKakuStd-W1,Japan
HiraKakuStd-W2,Japan
HiraKakuStd-W4,Japan
HiraKakuStd-W5,Japan
HiraKakuStd-W7,Japan
HiraKakuStd-W9,Japan
HiraMaruStd-W2,Japan
HiraMaruStd-W3,Japan
HiraMaruStd-W5,Japan
HiraMaruStd-W6,Japan
HiraMaruStd-W8,Japan
HiraGyoStd-W4,Japan
HiraGyoStd-W8,Japan
HiraMinProN-W2,Japan
HiraMinStdN-W4,Japan
HiraMinStdN-W5,Japan
HiraMinStdN-W7,Japan
HiraMinStdN-W8,Japan
HiraKakuStdN-W1,Japan
HiraKakuStdN-W2,Japan
HiraKakuStdN-W4,Japan
HiraKakuStdN-W5,Japan
HiraKakuStdN-W7,Japan
HiraKakuStdN-W9,Japan
HiraMaruStdN-W2,Japan
HiraMaruStdN-W3,Japan
HiraMaruStdN-W5,Japan
HiraMaruStdN-W6,Japan
HiraMaruStdN-W8,Japan
HiraGyoStdN-W4,Japan
HiraGyoStdN-W8,Japan
## Jiyukobo Yu bundled in OS X
YuGothic-Bold,Japan
YuGothic-Medium,Japan
YuMincho-Demibold,Japan
YuMincho-Medium,Japan
## HaranoAji fonts
HaranoAjiGothic-Bold,Japan
HaranoAjiGothic-ExtraLight,Japan
HaranoAjiGothic-Heavy,Japan
HaranoAjiGothic-Light,Japan
HaranoAjiGothic-Medium,Japan
HaranoAjiGothic-Normal,Japan
HaranoAjiGothic-Regular,Japan
HaranoAjiMincho-Bold,Japan
HaranoAjiMincho-ExtraLight,Japan
HaranoAjiMincho-Heavy,Japan
HaranoAjiMincho-Light,Japan
HaranoAjiMincho-Medium,Japan
HaranoAjiMincho-Regular,Japan
HaranoAjiMincho-SemiBold,Japan
)
EncodeList_Japan=(
2004-H
2004-V
78-EUC-H
78-EUC-V
78-H
78-RKSJ-H
78-RKSJ-V
78-V
78ms-RKSJ-H
78ms-RKSJ-V
83pv-RKSJ-H
90ms-RKSJ-H
90ms-RKSJ-V
90msp-RKSJ-H
90msp-RKSJ-V
90pv-RKSJ-H
90pv-RKSJ-V
Add-H
Add-RKSJ-H
Add-RKSJ-V
Add-V
Adobe-Japan1-0
Adobe-Japan1-1
Adobe-Japan1-2
Adobe-Japan1-3
Adobe-Japan1-4
Adobe-Japan1-5
Adobe-Japan1-6
EUC-H
EUC-V
Ext-H
Ext-RKSJ-H
Ext-RKSJ-V
Ext-V
H
Hankaku
Hiragana
Identity-H
Identity-V
Katakana
NWP-H
NWP-V
RKSJ-H
RKSJ-V
Roman
UniJIS-UCS2-H
UniJIS-UCS2-HW-H
UniJIS-UCS2-HW-V
UniJIS-UCS2-V
UniJIS-UTF16-H
UniJIS-UTF16-V
UniJIS-UTF32-H
UniJIS-UTF32-V
UniJIS-UTF8-H
UniJIS-UTF8-V
UniJIS2004-UTF16-H
UniJIS2004-UTF16-V
UniJIS2004-UTF32-H
UniJIS2004-UTF32-V
UniJIS2004-UTF8-H
UniJIS2004-UTF8-V
UniJISPro-UCS2-HW-V
UniJISPro-UCS2-V
UniJISPro-UTF8-V
UniJISX0213-UTF32-H
UniJISX0213-UTF32-V
UniJISX02132004-UTF32-H
UniJISX02132004-UTF32-V
V
WP-Symbol
)
EncodeList_GB=(
Adobe-GB1-0
Adobe-GB1-1
Adobe-GB1-2
Adobe-GB1-3
Adobe-GB1-4
Adobe-GB1-5
GB-EUC-H
GB-EUC-V
GB-H
GB-RKSJ-H
GB-V
GBK-EUC-H
GBK-EUC-V
GBK2K-H
GBK2K-V
GBKp-EUC-H
GBKp-EUC-V
GBT-EUC-H
GBT-EUC-V
GBT-H
GBT-RKSJ-H
GBT-V
GBTpc-EUC-H
GBTpc-EUC-V
GBpc-EUC-H
GBpc-EUC-V
Identity-H
Identity-V
UniGB-UCS2-H
UniGB-UCS2-V
UniGB-UTF16-H
UniGB-UTF16-V
UniGB-UTF32-H
UniGB-UTF32-V
UniGB-UTF8-H
UniGB-UTF8-V
)
EncodeList_CNS=(
Adobe-CNS1-0
Adobe-CNS1-1
Adobe-CNS1-2
Adobe-CNS1-3
Adobe-CNS1-4
Adobe-CNS1-5
Adobe-CNS1-6
B5-H
B5-V
B5pc-H
B5pc-V
CNS-EUC-H
CNS-EUC-V
CNS1-H
CNS1-V
CNS2-H
CNS2-V
ETHK-B5-H
ETHK-B5-V
ETen-B5-H
ETen-B5-V
ETenms-B5-H
ETenms-B5-V
HKdla-B5-H
HKdla-B5-V
HKdlb-B5-H
HKdlb-B5-V
HKgccs-B5-H
HKgccs-B5-V
HKm314-B5-H
HKm314-B5-V
HKm471-B5-H
HKm471-B5-V
HKscs-B5-H
HKscs-B5-V
Identity-H
Identity-V
UniCNS-UCS2-H
UniCNS-UCS2-V
UniCNS-UTF16-H
UniCNS-UTF16-V
UniCNS-UTF32-H
UniCNS-UTF32-V
UniCNS-UTF8-H
UniCNS-UTF8-V
)
EncodeList_Korea=(
Adobe-Korea1-0
Adobe-Korea1-1
Adobe-Korea1-2
Identity-H
Identity-V
KSC-EUC-H
KSC-EUC-V
KSC-H
KSC-Johab-H
KSC-Johab-V
KSC-RKSJ-H
KSC-V
KSCms-UHC-H
KSCms-UHC-HW-H
KSCms-UHC-HW-V
KSCms-UHC-V
KSCpc-EUC-H
KSCpc-EUC-V
UniKS-UCS2-H
UniKS-UCS2-V
UniKS-UTF16-H
UniKS-UTF16-V
UniKS-UTF32-H
UniKS-UTF32-V
UniKS-UTF8-H
UniKS-UTF8-V
)
## mkgsfontspec [fontname] [encode] > [fontspec]
mkgsfontspec(){
local fontname=$1
local encode=$2
cat <<EOT
%%!PS-Adobe-3.0 Resource-Font
%%%%DocumentNeededResources: ${encode} (CMap)
%%%%IncludeResource: ${encode} (CMap)
%%%%BeginResource: Font (${fontname}-${encode})
(${fontname}-${encode})
(${encode}) /CMap findresource
[(${fontname}) /CIDFont findresource]
composefont
pop
%%%%EndResource
%%%%EOF
EOT
}
## mkfontspec [fontspec dir]
mkfontspec(){
local FONTSPECDIR=$1
mkdir -p $FONTSPECDIR
for i in ${FontList[@]}; do
fnt=$(echo $i | cut -f1 -d",")
enc=$(echo $i | cut -f2 -d",")
case $enc in
Japan) enclist="${EncodeList_Japan[@]}";;
GB) enclist="${EncodeList_GB[@]}";;
CNS) enclist="${EncodeList_CNS[@]}";;
Korea) enclist="${EncodeList_Korea[@]}";;
*) exit 1;;
esac
for j in $enclist; do
mkgsfontspec ${fnt} ${j} > ${FONTSPECDIR}/${fnt}-${j}
done
done
return 0
}
## mkcidfonts [cidfonts dir]
mkcidfonts(){
local CIDFONTSDIR=$1
mkdir -p $CIDFONTSDIR
(cd $CIDFONTSDIR
rm -f HiraMin* HiraMaru* HiraKaku* HiraGyo* Hiragino*
rm -f YuMin* YuGo*
rm -f HaranoAji*
## Bundled Hiragino OpenType fonts (OS X 10.10 Yosemite or lower versions)
[ -f "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3
[ -f "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6
[ -f "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4
[ -f "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3
[ -f "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6
[ -f "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8
[ -f "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" ] && \
ln -s "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf" HiraMinProN-W3
[ -f "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" ] && \
ln -s "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf" HiraMinProN-W6
[ -f "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf" HiraMaruProN-W4
[ -f "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" ] && \
ln -s "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf" HiraKakuProN-W3
[ -f "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" ] && \
ln -s "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf" HiraKakuProN-W6
[ -f "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf" HiraKakuStdN-W8
## Bundled Yu OpenType fonts
## Yu Mincho: OS X 10.9 Mavericks, OS X 10.10 Yosemite
[ -f "/Library/Fonts/Yu Mincho Medium.otf" ] && \
ln -s "/Library/Fonts/Yu Mincho Medium.otf" YuMin-Medium
[ -f "/Library/Fonts/Yu Mincho Demibold.otf" ] && \
ln -s "/Library/Fonts/Yu Mincho Demibold.otf" YuMin-Demibold
## Yu Gothic: OS X 10.9 Mavericks, OS X 10.10 Yosemite, OS X 10.11 El Capitan
[ -f "/Library/Fonts/Yu Gothic Medium.otf" ] && \
ln -s "/Library/Fonts/Yu Gothic Medium.otf" YuGo-Medium
[ -f "/Library/Fonts/Yu Gothic Bold.otf" ] && \
ln -s "/Library/Fonts/Yu Gothic Bold.otf" YuGo-Bold
## MORISAWA PASSPORT Hiragino fonts
[ -f "/Library/Fonts/ヒラギノ明朝 Pr6N W3.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Pr6N W3.otf" HiraginoSerifPr6N-W3
[ -f "/Library/Fonts/ヒラギノ明朝 Pr6N W6.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Pr6N W6.otf" HiraginoSerifPr6N-W6
[ -f "/Library/Fonts/ヒラギノ角ゴ Pr6N W3.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Pr6N W3.otf" HiraginoSansPr6N-W3
[ -f "/Library/Fonts/ヒラギノ角ゴ Pr6N W6.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Pr6N W6.otf" HiraginoSansPr6N-W6
[ -f "/Library/Fonts/ヒラギノ丸ゴ Pr6N W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ Pr6N W4.otf" HiraginoSansRPr6N-W4
[ -f "/Library/Fonts/ヒラギノ明朝 Pro W2.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Pro W2.otf" HiraMinPro-W2
[ -f "/Library/Fonts/ヒラギノ明朝 Std W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Std W4.otf" HiraMinStd-W4
[ -f "/Library/Fonts/ヒラギノ明朝 Std W5.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Std W5.otf" HiraMinStd-W5
[ -f "/Library/Fonts/ヒラギノ明朝 Std W7.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Std W7.otf" HiraMinStd-W7
[ -f "/Library/Fonts/ヒラギノ明朝 Std W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 Std W8.otf" HiraMinStd-W8
[ -f "/Library/Fonts/ヒラギノ角ゴ Std W1.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W1.otf" HiraKakuStd-W1
[ -f "/Library/Fonts/ヒラギノ角ゴ Std W2.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W2.otf" HiraKakuStd-W2
[ -f "/Library/Fonts/ヒラギノ角ゴ Std W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W4.otf" HiraKakuStd-W4
[ -f "/Library/Fonts/ヒラギノ角ゴ Std W5.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W5.otf" HiraKakuStd-W5
[ -f "/Library/Fonts/ヒラギノ角ゴ Std W7.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W7.otf" HiraKakuStd-W7
[ -f "/Library/Fonts/ヒラギノ角ゴ Std W9.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ Std W9.otf" HiraKakuStd-W9
[ -f "/Library/Fonts/ヒラギノ丸ゴ Std W2.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ Std W2.otf" HiraMaruStd-W2
[ -f "/Library/Fonts/ヒラギノ丸ゴ Std W3.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ Std W3.otf" HiraMaruStd-W3
[ -f "/Library/Fonts/ヒラギノ丸ゴ Std W5.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ Std W5.otf" HiraMaruStd-W5
[ -f "/Library/Fonts/ヒラギノ丸ゴ Std W6.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ Std W6.otf" HiraMaruStd-W6
[ -f "/Library/Fonts/ヒラギノ丸ゴ Std W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ Std W8.otf" HiraMaruStd-W8
[ -f "/Library/Fonts/ヒラギノ行書 Std W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ行書 Std W4.otf" HiraGyoStd-W4
[ -f "/Library/Fonts/ヒラギノ行書 Std W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ行書 Std W8.otf" HiraGyoStd-W8
[ -f "/Library/Fonts/ヒラギノ明朝 ProN W2.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 ProN W2.otf" HiraMinProN-W2
[ -f "/Library/Fonts/ヒラギノ明朝 StdN W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 StdN W4.otf" HiraMinStdN-W4
[ -f "/Library/Fonts/ヒラギノ明朝 StdN W5.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 StdN W5.otf" HiraMinStdN-W5
[ -f "/Library/Fonts/ヒラギノ明朝 StdN W7.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 StdN W7.otf" HiraMinStdN-W7
[ -f "/Library/Fonts/ヒラギノ明朝 StdN W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ明朝 StdN W8.otf" HiraMinStdN-W8
[ -f "/Library/Fonts/ヒラギノ角ゴ StdN W1.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W1.otf" HiraKakuStdN-W1
[ -f "/Library/Fonts/ヒラギノ角ゴ StdN W2.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W2.otf" HiraKakuStdN-W2
[ -f "/Library/Fonts/ヒラギノ角ゴ StdN W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W4.otf" HiraKakuStdN-W4
[ -f "/Library/Fonts/ヒラギノ角ゴ StdN W5.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W5.otf" HiraKakuStdN-W5
[ -f "/Library/Fonts/ヒラギノ角ゴ StdN W7.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W7.otf" HiraKakuStdN-W7
[ -f "/Library/Fonts/ヒラギノ角ゴ StdN W9.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ角ゴ StdN W9.otf" HiraKakuStdN-W9
[ -f "/Library/Fonts/ヒラギノ丸ゴ StdN W2.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ StdN W2.otf" HiraMaruStdN-W2
[ -f "/Library/Fonts/ヒラギノ丸ゴ StdN W3.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ StdN W3.otf" HiraMaruStdN-W3
[ -f "/Library/Fonts/ヒラギノ丸ゴ StdN W5.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ StdN W5.otf" HiraMaruStdN-W5
[ -f "/Library/Fonts/ヒラギノ丸ゴ StdN W6.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ StdN W6.otf" HiraMaruStdN-W6
[ -f "/Library/Fonts/ヒラギノ丸ゴ StdN W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ丸ゴ StdN W8.otf" HiraMaruStdN-W8
[ -f "/Library/Fonts/ヒラギノ行書 StdN W4.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ行書 StdN W4.otf" HiraGyoStdN-W4
[ -f "/Library/Fonts/ヒラギノ行書 StdN W8.otf" ] && \
ln -s "/Library/Fonts/ヒラギノ行書 StdN W8.otf" HiraGyoStdN-W8
## HaranoAji fonts & static Hiragino basic 6 fonts
for x in \
HiraMinPro-W3 \
HiraMinPro-W6 \
HiraMaruPro-W4 \
HiraKakuPro-W3 \
HiraKakuPro-W6 \
HiraKakuStd-W8 \
HiraMinProN-W3 \
HiraMinProN-W6 \
HiraMaruProN-W4 \
HiraKakuProN-W3 \
HiraKakuProN-W6 \
HiraKakuStdN-W8 \
\
HaranoAjiGothic-Bold \
HaranoAjiGothic-ExtraLight \
HaranoAjiGothic-Heavy \
HaranoAjiGothic-Light \
HaranoAjiGothic-Medium \
HaranoAjiGothic-Normal \
HaranoAjiGothic-Regular \
HaranoAjiMincho-Bold \
HaranoAjiMincho-ExtraLight \
HaranoAjiMincho-Heavy \
HaranoAjiMincho-Light \
HaranoAjiMincho-Medium \
HaranoAjiMincho-Regular \
HaranoAjiMincho-SemiBold \
; do
if [ -f "$(kpsewhich ${x}.otf)" ]
then
rm -f ${x}
ln -s "$(kpsewhich ${x}.otf)" ${x}
fi
done
)
return 0
}
# generate the Ghostscript FontSpec files for the Hiragino fonts
# bundled on Mac OS X
mkfontspec ${GSRESDIR}/Font
mkcidfonts ${GSRESDIR}/CIDFont
echo $(basename $0): done
# end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment