TeXで作った文書をPDFにする時にIPAフォントを使いたくて2007
環境
bash3.2 $ uname -a Linux hoge.fuga 2.6.22.4-65.fc7 #1 SMP Tue Aug 21 21:50:50 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux bash3.2 $ cat /etc/redhat-release Fedora release 7 (Moonshine) bash3.2 $ yum list *ghost* Loading "changelog" plugin Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Installed Packages ghostscript.x86_64 8.15.4-3.fc7 installed ghostscript.i386 8.15.4-3.fc7 installed ghostscript-fonts.noarch 5.50-16.fc7 installed Available Packages ghostscript-devel.i386 8.15.4-3.fc7 fedora ghostscript-devel.x86_64 8.15.4-3.fc7 fedora ghostscript-gtk.x86_64 8.15.4-3.fc7 fedora
ghostscriptの設定ファイル
/usr/share/ghostscript/conf.d/ にあるファイルを適当に編集。さざなみをIPAフォントに置き換える。あとレギュラーとかがついてたりするのは削除した。
platex -> pdvips -> ps2pdf
bash3.2 $ pdffonts !$ pdffonts output_ps2pdf.pdf name type emb sub uni object ID ----------------------------------- ------------ --- --- --- --------- OHRMWW+IPAPMincho-H CID TrueType yes yes yes 14 0 YFEXCE+CMR12 Type 1C yes yes no 16 0 KYMUNK+CMR10 Type 1C yes yes no 10 0 IQBPMJ+CMR17 Type 1C yes yes no 8 0 XWCNKB+IPAPGothic-H CID TrueType yes yes no 24 0 MCSZLR+CMMI12 Type 1C yes yes no 28 0 MAVYSG+CMBX12 Type 1C yes yes no 26 0 SJHFKF+CMSY10 Type 1C yes yes no 42 0 XFMWNH+CMTT12 Type 1C yes yes no 48 0 ZIABLV+CMTI12 Type 1C yes yes no 58 0
platex -> pdvips -> ps2pdf14
bash3.2 $ pdffonts output_os2pdf14.pdf name type emb sub uni object ID ----------------------------------- ------------ --- --- --- --------- OHRMWW+IPAMincho-H CID TrueType yes yes yes 15 0 YFEXCE+CMR12 Type 1C yes yes no 17 0 KYMUNK+CMR10 Type 1C yes yes no 11 0 IQBPMJ+CMR17 Type 1C yes yes no 9 0 XWCNKB+IPAGothic-H CID TrueType yes yes no 26 0 MCSZLR+CMMI12 Type 1C yes yes no 30 0 MAVYSG+CMBX12 Type 1C yes yes no 28 0 SJHFKF+CMSY10 Type 1C yes yes no 47 0 XFMWNH+CMTT12 Type 1C yes yes no 54 0 ZIABLV+CMTI12 Type 1C yes yes no 66 0
前者はAdobereader(acroread)だと「無効なフォントOHRMWW+IPAMincho-Hは削除されました」というダイアローグが表示されてしまいIPA明朝で表示されない。後者なら大丈夫。
evinceなら前者でもIPA明朝を表示できる。
イミフ。