[Pkg-fonts-devel] Bug#499428: evince shows boxes for Japanese characters when ttf-japanese-gothic points to VLgothic

Junichi Uekawa dancer at netfort.gr.jp
Thu Sep 18 16:16:04 UTC 2008


Package: ttf-vlgothic
Version: 20080908-1
Severity: grave

When I configure VL Gothic use in ttf-japanese-gothic alternatives,
and have fontconfig cache updated, I have boxes in evince.


$ LC_ALL=C sudo update-alternatives --config ttf-japanese-gothic 

There are 3 alternatives which provide `ttf-japanese-gothic'.

  Selection    Alternative
-----------------------------------------------
*         1    /usr/share/fonts/truetype/kochi/kochi-gothic.ttf
          2    /usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf
 +        3    /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf

Press enter to keep the default[*], or type selection number: 


$ fc-list : file family | grep japanese| iconv -f utf-8 -t euc-jp
/usr/share/fonts/truetype/ttf-japanese-gothic: 東風ゴシック,Kochi Gothic
/usr/share/fonts/truetype/ttf-japanese-mincho: さざなみ明朝,Sazanami Mincho




$ LC_ALL=C sudo update-alternatives --config ttf-japanese-gothic 

There are 3 alternatives which provide `ttf-japanese-gothic'.

  Selection    Alternative
-----------------------------------------------
*         1    /usr/share/fonts/truetype/kochi/kochi-gothic.ttf
          2    /usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf
 +        3    /usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf

Press enter to keep the default[*], or type selection number: 3
Using '/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf' to provide 'ttf-japanese-gothic'.

$ fc-list : file family | grep japanese| iconv -f utf-8 -t euc-jp
/usr/share/fonts/truetype/ttf-japanese-gothic: 東風ゴシック,Kochi Gothic
/usr/share/fonts/truetype/ttf-japanese-mincho: さざなみ明朝,Sazanami Mincho

$ sudo dpkg-reconfigure fontconfig
Cleaning up font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/ttf-liberation /usr/share/fonts/truetype/sazanami /usr/share/fonts/truetype/mona /usr/share/fonts/truetype/vlgothic /usr/share/fonts/truetype/mikachan /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/ttf-liberation /usr/share/fonts/truetype/sazanami /usr/share/fonts/truetype/mona /usr/share/fonts/truetype/vlgothic /usr/share/fonts/truetype/mikachan /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts
Updating font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Updating fontconfig cache for /usr/share/fonts/truetype/sazanami /usr/share/fonts/truetype/mona /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/ttf-liberation /usr/share/fonts/truetype/vlgothic /usr/share/fonts/truetype/mikachan /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts
Updating fontconfig cache for /usr/share/fonts/truetype/sazanami /usr/share/fonts/truetype/mona /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/truetype/ttf-liberation /usr/share/fonts/truetype/vlgothic /usr/share/fonts/truetype/mikachan /usr/share/fonts/truetype/kochi /usr/share/fonts/type1/gsfonts
Regenerating fonts cache... done.

$ fc-list : file family | grep japanese| iconv -f utf-8 -t euc-jp
/usr/share/fonts/truetype/ttf-japanese-gothic: VL ゴシック,VL Gothic
/usr/share/fonts/truetype/ttf-japanese-mincho: さざなみ明朝,Sazanami Mincho


$ evince tokyodebian200809.pdf # -> give boxes instead of characters.

$ grep ttf /tmp/log  # strace output of evince tells me it's looking at ttf-japanese-gothic.
stat64("/usr/share/fonts/truetype/ttf-dejavu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/share/fonts/truetype/ttf-liberation", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/share/fonts/truetype/ttf-japanese-gothic", O_RDONLY) = 15
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf", O_RDONLY) = 15







More information about the Pkg-fonts-devel mailing list