GNOME evince が Ryumin, GothicBBB を知らない!

Vine Seed の evince v2.22.1.1 で,Ryumin と GothicBBB への fontconfig が適切にされていないみたいです.Vine Linux 4.2 でも同様です.

0000477: dvipdfmxで作成したpdfファイルをxpdfで表示すると「〜」が表示されない - Vine Linux バグトラッキングシステム にもレスをつけておきましたが,デフォルトの設定のままで fc-match をしてあげると,以下のようになります.

$ fc-match ryumin
VL-PGothic-Regular.ttf: "VL PGothic" "regular"
$ fc-match gothic
VL-PGothic-Regular.ttf: "VL PGothic" "regular"

そこで /etc/fonts/fonts.conf を以下のようにして,Ryumin と GothicBBB に対して,それぞれ serif, sans を振るようにしました.

diff -c /etc/fonts/fonts.conf\~ /etc/fonts/fonts.conf
*** /etc/fonts/fonts.conf~	2007-05-13 04:38:04.000000000 +0900
--- /etc/fonts/fonts.conf	2008-04-27 23:12:07.000000000 +0900
***************
*** 80,85 ****
--- 80,86 ----
    Serif faces
   -->
  	<alias>
+ 		<family>Ryumin</family>
  		<family>LX P Mincho</family>
  		<family>MS PMincho</family>
  		<family>IPAPMincho</family>
***************
*** 101,106 ****
--- 102,108 ----
    Sans-serif faces
   -->
  	<alias>
+ 		<family>GothicBBB</family>
  		<family>LX P MaruGothic</family>
  		<family>LX P Gothic</family>
  		<family>MS PGothic</family>
***************
*** 314,319 ****
--- 316,322 ----
  	<alias>
  		<family>serif</family>
  		<prefer>
+ 			<family>Ryumin</family>
  			<family>LX P Mincho</family>
  			<family>MS PMincho</family>
  			<family>IPAPMincho</family>
***************
*** 335,340 ****
--- 338,344 ----
  	<alias>
  		<family>sans-serif</family>
  		<prefer>
+ 			<family>GothicBBB</family>
  			<family>LX P MaruGothic</family>
  			<family>LX P Gothic</family>
  			<family>MS PGothic</family>

Diff finished.  Sun Apr 27 23:13:02 2008

/etc/fonts/fonts.conf に書かずに,~/.fonts.conf に書いてあげてもできます.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<fontconfig>
 <match target="pattern">
  <test qual="any" name="family">
   <string>Ryumin</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>sans</string>
  </edit>
 </match>

 <match target="pattern">
  <test qual="any" name="family">
   <string>GothicBBB</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>serif</string>
  </edit>
 </match>
</fontconfig>

私は普段ヒラギノフォントを埋め込んでいるので,この不具合に全く気づきませんでした.

商業用では Adobe Reader に付属している小塚フォント(OTF)はほとんど使い物になりませんが,個人で使用できるフォントの中ではきれいだと思いますので,落ち着いたら小塚フォントを埋め込設定を書いてみても良いかもしれませんね.