Andesi - forum

Forum francophone pour Debian

Vous n'êtes pas identifié(e).

#1 15/12/2007 01:15:06

miky
Membre
Inscription : 18/05/2003
Messages : 124

Problemes de fonts avec helvetica

Bonjour,

J'ai jamais reussi à résoudre mon probleme avec les fonts helvetica. D'ailleurs je ne suis pas sur de comprendre mon probleme.

ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Cannot convert string "-*-helvetica-medium-r-*-140-*" to type FontSet
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Unable to load any usable fontset
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Cannot convert string "-*-helvetica-medium-r-*-120-*" to type FontSet
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Unable to load any usable fontset
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Cannot convert string "-*-helvetica-medium-r-*-100-*" to type FontSet
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Unable to load any usable fontset
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Cannot convert string "-*-helvetica-medium-r-*-80-*" to type FontSet
ovw: Xt Warning: Missing charsets in String to FontSet conversion
ovw: Xt Warning: Unable to load any usable fontset

J'execute le programme sur un serveur distant.

Je crois comprendre que je n'ai pas les fonts helvetica sur ma debian d'ou le message d'erreur.
Je mets  en vrac quelques commandes que j'ai vu sur internet pour troubleshooter ce genre de probleme

$ fc-list Helvetica
Helvetica:style=Oblique
Helvetica:style=Bold
Helvetica:style=Regular
Helvetica:style=Bold Oblique
$ xlsfonts | grep -i helvetica
...
-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-4
...
$ xlsfonts | grep -i helvetica | wc -l
1098
$ fc-cache -v
/usr/share/fonts: skipping, 0 fonts, 3 dirs
/usr/share/fonts/X11: skipping, 0 fonts, 7 dirs
/usr/share/fonts/X11/100dpi: skipping, 358 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: skipping, 358 fonts, 0 dirs
/usr/share/fonts/X11/Type1: skipping, 43 fonts, 0 dirs
/usr/share/fonts/X11/cyrillic: skipping, 0 fonts, 0 dirs
/usr/share/fonts/X11/encodings: skipping, 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: skipping, 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: skipping, 55 fonts, 0 dirs
/usr/share/fonts/X11/util: skipping, 0 fonts, 0 dirs
/usr/share/fonts/truetype: skipping, 0 fonts, 4 dirs
/usr/share/fonts/truetype/freefont: skipping, 12 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: skipping, 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: skipping, 21 fonts, 0 dirs
/usr/share/fonts/truetype/uralic: skipping, 22 fonts, 0 dirs
/usr/share/fonts/type1: skipping, 0 fonts, 1 dirs
/usr/share/fonts/type1/gsfonts: skipping, 35 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts: skipping, 0 fonts, 1 dirs
/usr/X11R6/lib/X11/fonts/encodings: skipping, 0 fonts, 1 dirs
/usr/X11R6/lib/X11/fonts/encodings/large: skipping, 0 fonts, 0 dirs
/usr/local/share/fonts: skipping, 0 fonts, 0 dirs
/home/mikael/.fonts: skipping, no such directory
/var/lib/defoma/fontconfig.d: skipping, 0 fonts, 11 dirs
/var/lib/defoma/fontconfig.d/B: skipping, 3 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/C: skipping, 5 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/D: skipping, 22 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/F: skipping, 12 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/G: skipping, 2 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/M: skipping, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/N: skipping, 16 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/P: skipping, 3 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/R: skipping, 3 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/S: skipping, 10 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/U: skipping, 13 fonts, 0 dirs
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- the cathectic LCD tweaks, from linuxquestions.org,
http://www.linuxquestions.org/questions/showthread.php?postid=1361098#post1361098
-->
<fontconfig>
<!-- Disable sub-pixel rendering. X detects it anyway, and if you set
this as well, it just looks really horrible  -->
<match target="font" >
 <edit mode="assign" name="rgba" >
  <const>none</const>
 </edit>
 </match>
 <match target="font" >
 <edit mode="assign" name="hinting">
  <bool>true</bool>
 </edit>
 </match>
 <match target="font" >
 <edit mode="assign" name="hintstyle">
  <const>hintfull</const>
 </edit>
 </match>
<!-- The first part of the 'magic.' This makes the fonts start to look
nice, but some of the shapes will be distorted, so hinting is needed
still -->
 <match target="font" >
 <edit mode="assign" name="antialias">
  <bool>true</bool>
 </edit>
 </match>
<!-- Autohinter is not turned on automatically. Only disable this if
you have recompiled Freetype with the bytecode interpreter, which is
run automatically. Although to be honest, Freetype are right, there
isn't much difference between the two. Note that OpenOffice is built
against the bytecode interpreter, so even if you have compiled it and
override it with the autohinter, OOo will still use the bytecode
interpreter -->
 <match target="pattern" >
 <edit mode="assign" name="autohint">
  <bool>true</bool>
 </edit>
 </match>
<!-- Helvetica is a non true type font, and will look bad. This
replaces it with whatever is the default sans-serif font -->
 <match target="pattern" name="family" >
 <test name="family" qual="any" >
  <string>Helvetica</string>
 </test>
 <edit mode="assign" name="family" >
  <string>sans-serif</string>
 </edit>
 </match>
 <dir>~/.fonts</dir>
</fontconfig>

Dernière modification par miky (15/12/2007 01:15:51)

Hors ligne

#2 15/12/2007 13:52:50

Tihz
Membre
Lieu : Paname
Inscription : 02/11/2006
Messages : 876

Re : Problemes de fonts avec helvetica

miky a écrit :

D'ailleurs je ne suis pas sur de comprendre mon probleme.

Moi non plus.

Un peu plus de détails sur ce que tu fais pour avoir ces erreurs seraient bienvenus.


Ce qu'il y a de bien avec les standards, c'est qu'il y en a beaucoup entre lesquels choisir.

Hors ligne

#3 15/12/2007 21:45:23

miky
Membre
Inscription : 18/05/2003
Messages : 124

Re : Problemes de fonts avec helvetica

Tihz a écrit :
miky a écrit :

D'ailleurs je ne suis pas sur de comprendre mon probleme.

Moi non plus.

Un peu plus de détails sur ce que tu fais pour avoir ces erreurs seraient bienvenus.

Hahaha.
- Je me loggue sur un serveur disant en ssh
- Je fais un export display
- Je lance mon application qui est en fait HPOV un outil d'administration.
Puis j'ai le message d'erreur.

Hors ligne

Pied de page des forums