| 91 | |
| 92 | # Japanese Hiragino font support |
| 93 | variant hiragino { |
| 94 | distfiles-append Font.tar.bz2:hiragino |
| 95 | checksums-append Font.tar.bz2 md5 e612110d5c365eb59b47d81ec1d2a298 \ |
| 96 | sha1 d027e4c2e53011c4a7853b8b87b498911dc16cd3 \ |
| 97 | rmd160 19f0b37df2d52b3eb4d4cd9fb9c74c4f22023281 |
| 98 | post-extract { |
| 99 | system "cd ${workpath}/${distname}/Resource && bzcat -dc ${distpath}/Font.tar.bz2 | tar xf -" |
| 100 | } |
| 101 | post-destroot { |
| 102 | set cidfontdir ${destroot}${prefix}/share/${name}/${version}/Resource/CIDFont |
| 103 | set systemfontdir /System/Library/Fonts |
| 104 | set cidfmap ${destroot}${prefix}/share/${name}/${version}/lib/cidfmap |
| 105 | |
| 106 | xinstall -m 755 -d ${cidfontdir} |
| 107 | |
| 108 | foreach {filename fontname alias} {"ヒラギノ角ゴ Pro W3.otf" HiraKakuPro-W3 GothicBBB-Medium |
| 109 | "ヒラギノ角ゴ Pro W6.otf" HiraKakuPro-W6 FutoGoB101-Bold |
| 110 | "ヒラギノ角ゴ Std W8.otf" HiraKakuStd-W8 FutoMinA101-Bold |
| 111 | "ヒラギノ丸ゴ Pro W4.otf" HiraMaruPro-W4 Jun101-Light |
| 112 | "ヒラギノ明朝 Pro W3.otf" HiraMinPro-W3 Ryumin-Light |
| 113 | "ヒラギノ明朝 Pro W6.otf" HiraMinPro-W6 Ryumin-Regular} { |
| 114 | if {![ file exists ${systemfontdir}/${filename}]} { |
| 115 | ui_error "Please place \"${filename}\" in ${systemfontdir} and restart the build." |
| 116 | exit 1 |
| 117 | } |
| 118 | system "ln -s \"${systemfontdir}/${filename}\" ${cidfontdir}/${fontname}" |
| 119 | system "echo \"/${alias} /${fontname} ;\" >> ${cidfmap}" |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | # Adobe Japan 1-6 (Japanese) CMap support |
| 125 | variant aj16 { |
| 126 | distfiles-append aj16.tar.Z:cmap |
| 127 | checksums-append aj16.tar.Z md5 1d17e5f53d20ba8b8abcaeae3300aa26 \ |
| 128 | sha1 13396c4af952ee405c16459b83843711f029d63a \ |
| 129 | rmd160 8e63a74f14dc9eaa1dfd5a847edc43302244bd46 |
| 130 | extract.only-append aj16.tar.Z |
| 131 | post-extract { |
| 132 | eval file copy -force [glob ${workpath}/aj16/CMap/*] ${workpath}/${distname}/Resource/CMap/ |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | # Adobe GB 1-4 (Traditional Chinese) CMap support |
| 137 | variant ag14 { |
| 138 | distfiles-append ag14.tar.Z:cmap |
| 139 | checksums-append ag14.tar.Z md5 f9cad1b32e56f65339da26266f568e97 \ |
| 140 | sha1 8728580d9ea74fad1245d54ad16243220eaae077 \ |
| 141 | rmd160 162041c3c7db71c0e004f5a5f823a2cfc5837488 |
| 142 | extract.only-append ag14.tar.Z |
| 143 | post-extract { |
| 144 | eval file copy -force [glob ${workpath}/ag14/CMap/*] ${workpath}/${distname}/Resource/CMap/ |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | # Adobe CNS 1-5 (Simplified Chinese) CMap support |
| 149 | variant ac15 { |
| 150 | distfiles-append ac15.tar.Z:cmap |
| 151 | checksums-append ac15.tar.Z md5 a9d876f28dde1d4a0a6571eb0e281761 \ |
| 152 | sha1 257b0d4bc3547af1aee09e34cc00f747de94a7eb \ |
| 153 | rmd160 ec4c07cd521cc906711c649b63e9c0a94038b0f7 |
| 154 | extract.only-append ac15.tar.Z |
| 155 | post-extract { |
| 156 | eval file copy -force [glob ${workpath}/ac15/CMap/*] ${workpath}/${distname}/Resource/CMap/ |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | # Adobe Korea 1-2 (Korean) CMap support |
| 161 | variant ak12 { |
| 162 | distfiles-append ak12.tar.Z:cmap |
| 163 | checksums-append ak12.tar.Z md5 ef1d6470cd9bdfed1399b922f12432da \ |
| 164 | sha1 5ded7b548e01448e8c98d0b878a6b996cd6fa7cc \ |
| 165 | rmd160 968f2807ae4a97e6c75b1a26e32f693b3e8803d4 |
| 166 | extract.only-append ak12.tar.Z |
| 167 | post-extract { |
| 168 | eval file copy -force [glob ${workpath}/ak12/CMap/*] ${workpath}/${distname}/Resource/CMap/ |
| 169 | } |
| 170 | } |