Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] X11 server not seeing font dirs
Date: Sat, 21 Nov 2020 19:22:57
Message-Id: 23655b02-f43e-f941-1f99-9e8d2bc6d03b@web.de
In Reply to: Re: [gentoo-user] X11 server not seeing font dirs by karl@aspodata.se
1 On 11/21/20 7:02 PM, karl@××××××××.se wrote:
2 > $ xlsfonts | grep -i mono
3 > $ xset +fp /usr/share/fonts/freefont
4 > $ xlsfonts | grep -i mono | head -1
5 > -misc-freemono-bold-o-normal--0-0-0-0-m-0-adobe-standard
6 > $
7 >
8 > I.e. it works as expected.
9
10
11 Okay, that's good to know.  I'm unfortunately not at the machine that
12 was giving me problems, I'll to through those exact steps in a week or two.
13
14
15 >
16 > # emerge -aqv media-fonts/courier-prime
17 > ...
18 >
19 > $ xset +fp /usr/share/fonts/courier-prime
20 > $ xset q | grep prime
21 > /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
22 > $ xlsfonts | grep -i prime
23 > $
24 >
25 > So my courier-prime fp doesn't dissapear, but xlsfonts doesn't
26 > report them as a core font.
27 >
28 > I run fvwm2 on an older X without udev, can it be a fancy modern destop
29 > that changes this under the hood for you ?
30
31
32 I run fvwm2, too.  :-)
33
34
35
36 >
37 > I can see the font with
38 >
39 > $ fc-list 'Courier prime'
40 > /usr/share/fonts/courier-prime/Courier Prime Bold.ttf: Courier Prime:style=Bold
41 > /usr/share/fonts/courier-prime/Courier Prime.ttf: Courier Prime:style=Regular
42 > /usr/share/fonts/courier-prime/Courier Prime Bold Italic.ttf: Courier Prime:style=Bold Italic
43 > /usr/share/fonts/courier-prime/Courier Prime Italic.ttf: Courier Prime:style=Italic
44
45
46 Isn't the fontconfig system a separate, disconnected font service?
47
48
49 > $ xfd -fa 'Courier prime'
50 > ...
51
52
53 I don't have that command and didn't find a man page right away on the
54 internet.  I see there's a gentoo package for it, it looks useful.
55
56
57 >
58 > Can the problem be that there is a space in the x core font name?
59
60
61 I renamed the files in the courier-prime package with dashes and
62 regenerated fonts.dir and the other one, too.  Didn't help.
63
64
65 >
66 > $ head -2 /usr/share/fonts/courier-prime/fonts.dir
67 > 16
68 > Courier prime bold italic.ttf -misc-courier prime-bold-i-normal--0-0-0-0-m-0-iso10646-1
69 > $
70 >
71 > If I, as root, do:
72 >
73 > cd /usr/share/fonts/courier-prime/
74 > perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.dir
75 > perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.scale
76 > list=`ls -1 | grep Cour | tr ' ' '_'`
77 > for i in $list; do b=`echo $i | tr '_' ' '`; mv "$b" $i; done
78 >
79 > Then I can do:
80 > $ xset fp rehash
81
82
83 I used my fixms(1) script (attached).
84
85
86 > $ xlsfonts | grep -i prime | head -1
87 > -misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1
88 > $ xfd -fn -misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1
89 > Warning: Missing charsets in String to FontSet conversion
90 > Warning: Unable to load any usable fontset
91 > Warning: Cannot convert string "-misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1" to type FontStruct
92 > xfd: no font to display
93 > $ xterm -fn -misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1
94 > xterm: cannot load font "-misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1"
95 >
96 > Unfortunately, I cannot use it...
97 >
98 > I don't think x likes core fonts with spaces in font- nor
99 > filenames.
100 >
101 > Regards,
102 > /Karl Hammar
103 >
104
105 Okay, I didn't get that far.  I'll try to get more documentation.
106
107 Thanks for looking into it.
108
109
110 >

Attachments

File name MIME type
fixms text/plain

Replies

Subject Author
Re: [gentoo-user] X11 server not seeing font dirs karl@××××××××.se