1 |
n952162: |
2 |
> Can anyone say why I have the error messages in my Xorg.0.log file that |
3 |
> I list below? |
4 |
> |
5 |
> xlsfonts(1) does not list fonts that are in /usr/share/fonts. |
6 |
> |
7 |
> If I add them with "xset +fp /usr/share/fonts/courier-prime" they appear |
8 |
> and then disappear in the "xset -q" display. They are not available to |
9 |
> xlsfonts, though. |
10 |
> |
11 |
> Interestingly enough, adding them with the plus in back: "xset fp+ |
12 |
> /user/..." causes them to persist, but still not be available to xlsfonts. |
13 |
... |
14 |
|
15 |
$ xlsfonts | grep -i mono |
16 |
$ xset +fp /usr/share/fonts/freefont |
17 |
$ xlsfonts | grep -i mono | head -1 |
18 |
-misc-freemono-bold-o-normal--0-0-0-0-m-0-adobe-standard |
19 |
$ |
20 |
|
21 |
I.e. it works as expected. |
22 |
|
23 |
# emerge -aqv media-fonts/courier-prime |
24 |
... |
25 |
|
26 |
$ xset +fp /usr/share/fonts/courier-prime |
27 |
$ xset q | grep prime |
28 |
/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 |
29 |
$ xlsfonts | grep -i prime |
30 |
$ |
31 |
|
32 |
So my courier-prime fp doesn't dissapear, but xlsfonts doesn't |
33 |
report them as a core font. |
34 |
|
35 |
I run fvwm2 on an older X without udev, can it be a fancy modern destop |
36 |
that changes this under the hood for you ? |
37 |
|
38 |
I can see the font with |
39 |
|
40 |
$ fc-list 'Courier prime' |
41 |
/usr/share/fonts/courier-prime/Courier Prime Bold.ttf: Courier Prime:style=Bold |
42 |
/usr/share/fonts/courier-prime/Courier Prime.ttf: Courier Prime:style=Regular |
43 |
/usr/share/fonts/courier-prime/Courier Prime Bold Italic.ttf: Courier Prime:style=Bold Italic |
44 |
/usr/share/fonts/courier-prime/Courier Prime Italic.ttf: Courier Prime:style=Italic |
45 |
$ xfd -fa 'Courier prime' |
46 |
... |
47 |
|
48 |
Can the problem be that there is a space in the x core font name? |
49 |
|
50 |
$ head -2 /usr/share/fonts/courier-prime/fonts.dir |
51 |
16 |
52 |
Courier prime bold italic.ttf -misc-courier prime-bold-i-normal--0-0-0-0-m-0-iso10646-1 |
53 |
$ |
54 |
|
55 |
If I, as root, do: |
56 |
|
57 |
cd /usr/share/fonts/courier-prime/ |
58 |
perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.dir |
59 |
perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.scale |
60 |
list=`ls -1 | grep Cour | tr ' ' '_'` |
61 |
for i in $list; do b=`echo $i | tr '_' ' '`; mv "$b" $i; done |
62 |
|
63 |
Then I can do: |
64 |
$ xset fp rehash |
65 |
$ xlsfonts | grep -i prime | head -1 |
66 |
-misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1 |
67 |
$ xfd -fn -misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1 |
68 |
Warning: Missing charsets in String to FontSet conversion |
69 |
Warning: Unable to load any usable fontset |
70 |
Warning: Cannot convert string "-misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1" to type FontStruct |
71 |
xfd: no font to display |
72 |
$ xterm -fn -misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1 |
73 |
xterm: cannot load font "-misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1" |
74 |
|
75 |
Unfortunately, I cannot use it... |
76 |
|
77 |
I don't think x likes core fonts with spaces in font- nor |
78 |
filenames. |
79 |
|
80 |
Regards, |
81 |
/Karl Hammar |