「青P」で作成したPDFをNetWalkerで正しく表示するための設定

NetWalkerのOpenJDKのフォント設定では、例として「青P」というソフトのスクリーンショットを示しました。これは青空文庫のファイル形式を変換するソフトです。Java版とWindows版があって、Java版では.txtファイルをPDFに変換できます。

下のスクリーンショットは、「青P」を利用して作成したPDFをドキュメント・ビューア(Evince)で開き、90度回転([Alt]+[←])してプレゼンテーション表示([F5])にしたものです。

すべてゴシック体で表示されていますね。「青P」標準のフォントはファイルに埋め込まれないため、ドキュメント・ビューアで開くと明朝体のはずの「KozMinPro」や「HeiseiMin」はゴシック体として表示されてしまいます。そこで、前回のフォントの設定で作成したfontconfigの設定ファイル(~/.fonts.conf)に、これらのフォントの設定を追加します。
以下が設定変更後の.font.confです。7〜8行目が今回の追加部分です。

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="pattern">
   <test qual="any" name="family">
     <string>Ryumin</string>
     <string>KozMinPro</string>
     <string>HeiseiMin</string>
   </test>
   <edit name="family" mode="prepend" binding="strong">
     <string>serif</string>
   </edit>
 </match>
 <match target="pattern">
  <test qual="any" name="family">
   <string>sans-serif</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>LC Gothic</string>
   <string>IPAMonaPGothic</string>
   <string>IPAPGothic</string>
   <string>VL PGothic</string>
   <string>Sazanami Gothic</string>
   <string>Kochi Gothic</string>
  </edit>
 </match>
 <match target="pattern">
  <test qual="any" name="family">
   <string>serif</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>LC Mincho</string>
   <string>IPAMonaPMincho</string>
   <string>IPAPMincho</string>
   <string>Sazanami Mincho</string>
   <string>Kochi Mincho</string>
  </edit>
 </match>
 <match target="pattern">
  <test qual="any" name="family">
   <string>monospace</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>LC Gothic</string>
   <string>IPAMonaGothic</string>
   <string>IPAGothic</string>
   <string>VL Gothic</string>
   <string>Sazanami Gothic</string>
   <string>Kochi Gothic</string>
  </edit>
 </match>
</fontconfig>

フォントの設定後のスクリーンショットです。

画面のタッチまたは[Enter]で次ページ、[BackSpace]で前ページへ移動、[Esc]でプレゼンテーション表示の解除ができます。途中まで読んで閉じても、次に開いた時には閉じた時に見ていたページを表示してくれるのでなかなか便利です。