Certas fontes ausentes do xlsfonts no Centos 6.4

1

Eu tenho um certo software no CentOS 6.4 que deu o seguinte erro:

X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  15
  Current serial number in output stream:  30

A execução de strace mostra que o erro ocorre praticamente aqui:

writev(4, [{"-
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Shift Lock:  off    04: Group 2:     off    05: Mouse Keys:  off
  auto repeat delay:  65535    repeat rate:  0
  auto repeating keys:  00feffffdffffbbf
                        fadfffffffdfe5ef
                        ffffffffffffffff
                        ffffffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x50    BlackPixel:  0    WhitePixel:  16777215
Font Path:
  /usr/NX/share/fonts/TTF,/usr/share/X11/fonts/misc/,/usr/share/X11/fonts/Type1/,/usr/share/X11/fonts/75dpi/,/usr/share/X11/fonts/100dpi/,/usr/share/X11/fonts/TTF/,/usr/NX/share/fonts/base,/usr/NX/share/fonts/base,/usr/NX/share/fonts/base
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Disabled
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  15
  Current serial number in output stream:  30
0
writev(4, [{"-
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Shift Lock:  off    04: Group 2:     off    05: Mouse Keys:  off
  auto repeat delay:  65535    repeat rate:  0
  auto repeating keys:  00feffffdffffbbf
                        fadfffffffdfe5ef
                        ffffffffffffffff
                        ffffffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x50    BlackPixel:  0    WhitePixel:  16777215
Font Path:
  /usr/NX/share/fonts/TTF,/usr/share/X11/fonts/misc/,/usr/share/X11/fonts/Type1/,/usr/share/X11/fonts/75dpi/,/usr/share/X11/fonts/100dpi/,/usr/share/X11/fonts/TTF/,/usr/NX/share/fonts/base,/usr/NX/share/fonts/base,/usr/NX/share/fonts/base
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Disabled
%pre%0%pre%27%pre%0-adobe-helvetica-bol"..., ...
27%pre%0-adobe-helvetica-bol"..., ...

Eu pensei que algumas fontes estavam faltando no meu sistema, então eu continuei a insall todos os pacotes xorg-x11-fonts- * no meu sistema. As fontes da Adobe devem ser incluídas no pacote xorg-x11-fonts-75dpi.

Eu achei que as fontes podem não estar no caminho de fontes, então eu corri xset q . As fontes pareciam estar no caminho da fonte X.

%pre%

Apesar de tudo isso, a fonte necessária (qualquer fonte da família Adobe) parece não ser informada com xlsfonts , e o erro do aplicativo persiste.

    
por slm 11.11.2013 / 13:02

1 resposta

1

Lidar com fontes no Linux pode ser chato. Eu costumo usar a ferramenta fontmatrix . Para instalá-lo:

$ sudo yum install fontmatrix

Exemplo

$ fontmatrix

Usando essa ferramenta, você também pode importar fontes, visualizá-las e fazer praticamente tudo que precisar ao lidar com fontes.

    
por 11.11.2013 / 19:44

Tags