やるきなし

2013/06/03 16:55 / dvipdfmx: Invalid glyph name index number

% dvipdfmx main.dvi
main.dvi -> main.pdf
[1
** WARNING ** Invalid glyph name index number: 12502 (>= 12495)
** WARNING ** Invalid TrueType 'post' table...
** ERROR ** Could not obtain necessary font info.

Output file removed.

とかで dvipdfmx が落ちる.

ls -arlt /etc/alternatives/fonts-japanese-*
lrwxrwxrwx 1 root root 53  5月  2 21:22 /etc/alternatives/fonts-japanese-gothic.ttf -> /usr/share/fonts/opentype/ipaexfont-gothic/ipaexg.ttf
lrwxrwxrwx 1 root root 53  5月  2 21:22 /etc/alternatives/fonts-japanese-mincho.ttf -> /usr/share/fonts/opentype/ipaexfont-mincho/ipaexm.ttf

ということで ipaexfont (fonts-ipaexfont-mincho と fonts-ipaexfont-gothic) が怪しい.以下で解決する模様.

% sudo update-alternatives --config fonts-japanese-gothic.ttf
There are 3 choices for the alternative fonts-japanese-gothic.ttf (providing /usr/share/fonts/truetype/fonts-japanese-gothic.ttf).

  Selection    Path                                                                                      Priority   Status
------------------------------------------------------------
* 0            /usr/share/fonts/opentype/ipaexfont-gothic/ipaexg.ttf                                      120       auto mode
  1            /usr/share/fonts/opentype/ipaexfont-gothic/ipaexg.ttf                                      120       manual mode
  2            /usr/share/fonts/opentype/ipafont-gothic/ipag.ttf                                          100       manual mode
  3            /usr/share/fonts/truetype/ipafont-nonfree-jisx0208/ipag0208_for_legacy_compatibility.ttf   100       manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/share/fonts/opentype/ipafont-gothic/ipag.ttf to provide /usr/share/fonts/truetype/fonts-japanese-gothic.ttf (fonts-japanese-gothic.ttf) in manual mode
% sudo update-alternatives --config fonts-japanese-mincho.ttf
There are 3 choices for the alternative fonts-japanese-mincho.ttf (providing /usr/share/fonts/truetype/fonts-japanese-mincho.ttf).

  Selection    Path                                                                                      Priority   Status
------------------------------------------------------------
* 0            /usr/share/fonts/opentype/ipaexfont-mincho/ipaexm.ttf                                      120       auto mode
  1            /usr/share/fonts/opentype/ipaexfont-mincho/ipaexm.ttf                                      120       manual mode
  2            /usr/share/fonts/opentype/ipafont-mincho/ipam.ttf                                          100       manual mode
  3            /usr/share/fonts/truetype/ipafont-nonfree-jisx0208/ipam0208_for_legacy_compatibility.ttf   100       manual mode

Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/share/fonts/opentype/ipafont-mincho/ipam.ttf to provide /usr/share/fonts/truetype/fonts-japanese-mincho.ttf (fonts-japanese-mincho.ttf) in manual mode

Related articles