cygwin postscript で漢字
本当は gs なんだけど。
Cygwin + Ghostscript + Windows TrueTypeフォント - you/uni
のとおりに
ln -s /cygdrive/c/Windows /usr/share/mswin
で /usr/share/ghostscript/ver/Resource/Init/cidfmap に追加
/MS-Gothic << /FileType /TrueType /Path (/usr/share/mswin/Fonts/MSGOTHIC.TTC) /SubfontID 1 /CSI [(Japan1) 3] >> ;
もっといろいろ追加した方がいいような気がする。
eps に次の記述。utf-8 をそのまま書いてよい(16進数にする必要なし)
/MS-Gothic-UniJIS-UTF8-H findfont 20 scalefont setfont 187.5 300.0 moveto %<e38199> show (あいう) show end
でできた画像がこれ。
Resource の cidfmap はバージョンアップされると上書きされる可能性があるらしい。だから本当は
だから、lib/cidfmap に書いておいて、~/.profile あたりにexport GS_LIB=/usr/share/ghostscript/ver/libと書いておくのがよいと思う。
とするのがよいらしいぞ。やってない。