LinuxなのでIPAフォントを使ってみよう。書体はゴシックでいいや。
# wget http://dl.ipafont.ipa.go.jp/IPAexfont/ipaexg00301.zip # unzip ipaexg00301.zip # mkdir /usr/share/fonts/ipaexg00301 # cp -ip ipaexg00301/ipaexg.ttf /usr/share/fonts/ipaexg00301/ # fc-cache -fv /usr/share/fonts: caching, new cache contents: 0 fonts, 1 dirs /usr/share/fonts/ipaexg00301: caching, new cache contents: 1 fonts, 0 dirs /usr/share/X11/fonts/Type1: skipping, no such directory /usr/share/X11/fonts/TTF: skipping, no such directory /usr/local/share/fonts: skipping, no such directory /root/.local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /usr/share/fonts: caching, new cache contents: 0 fonts, 1 dirs /usr/share/X11/fonts/Type1: skipping, no such directory /usr/share/X11/fonts/TTF: skipping, no such directory /usr/local/share/fonts: skipping, no such directory /root/.local/share/fonts: skipping, no such directory /root/.fonts: skipping, no such directory /var/cache/fontconfig: cleaning cache directory /root/.cache/fontconfig: not cleaning non-existent cache directory /root/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded確認。
# fc-list /usr/share/fonts/ipaexg00301/ipaexg.ttf: IPAexゴシック,IPAexGothic:style=Regular
キャプチャスクリプトを再実行
# casperjs screenshot.js
できたー
0 件のコメント:
コメントを投稿