n952162: > Can anyone say why I have the error messages in my Xorg.0.log file that > I list below? > > xlsfonts(1) does not list fonts that are in /usr/share/fonts. > > If I add them with "xset +fp /usr/share/fonts/courier-prime" they appear > and then disappear in the "xset -q" display. They are not available to > xlsfonts, though. > > Interestingly enough, adding them with the plus in back: "xset fp+ > /user/..." causes them to persist, but still not be available to xlsfonts. ...
$ xlsfonts | grep -i mono $ xset +fp /usr/share/fonts/freefont $ xlsfonts | grep -i mono | head -1 -misc-freemono-bold-o-normal--0-0-0-0-m-0-adobe-standard $ I.e. it works as expected. # emerge -aqv media-fonts/courier-prime ... $ xset +fp /usr/share/fonts/courier-prime $ xset q | grep prime /usr/share/fonts/courier-prime,/usr/share/fonts/freefont,/usr/local/share/fonts,/usr/share/fonts/misc/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,built-ins $ xlsfonts | grep -i prime $ So my courier-prime fp doesn't dissapear, but xlsfonts doesn't report them as a core font. I run fvwm2 on an older X without udev, can it be a fancy modern destop that changes this under the hood for you ? I can see the font with $ fc-list 'Courier prime' /usr/share/fonts/courier-prime/Courier Prime Bold.ttf: Courier Prime:style=Bold /usr/share/fonts/courier-prime/Courier Prime.ttf: Courier Prime:style=Regular /usr/share/fonts/courier-prime/Courier Prime Bold Italic.ttf: Courier Prime:style=Bold Italic /usr/share/fonts/courier-prime/Courier Prime Italic.ttf: Courier Prime:style=Italic $ xfd -fa 'Courier prime' ... Can the problem be that there is a space in the x core font name? $ head -2 /usr/share/fonts/courier-prime/fonts.dir 16 Courier prime bold italic.ttf -misc-courier prime-bold-i-normal--0-0-0-0-m-0-iso10646-1 $ If I, as root, do: cd /usr/share/fonts/courier-prime/ perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.dir perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.scale list=`ls -1 | grep Cour | tr ' ' '_'` for i in $list; do b=`echo $i | tr '_' ' '`; mv "$b" $i; done Then I can do: $ xset fp rehash $ xlsfonts | grep -i prime | head -1 -misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1 $ xfd -fn -misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1 Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Warning: Cannot convert string "-misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1" to type FontStruct xfd: no font to display $ xterm -fn -misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1 xterm: cannot load font "-misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1" Unfortunately, I cannot use it... I don't think x likes core fonts with spaces in font- nor filenames. Regards, /Karl Hammar