Gentoo Archives: gentoo-user

From: Corbin Bird <corbinbird@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Something is blocking an addition of fonts
Date: Sun, 12 Mar 2017 00:20:03
Message-Id: 58C4940B.4050803@charter.net
In Reply to: [gentoo-user] Something is blocking an addition of fonts by Harry Putnam
1 On 03/10/2017 07:24 PM, Harry Putnam wrote:
2 > Setup: VBox vm running gentoo(amd64) guest on a win-10 (64bit) host
3 > Hardware: HP xw8600 - 2x Xeon CPU X5450 @ 3.00GHz - 32 GB ram
4 >
5 > I've added some fonts from outside portage this way:
6 >
7 > (Sorry that what follows is a bit of a confusing mess)
8 >
9 > mkdir /usr/share/fonts/terminus
10 > loaded the fonts into termininus
11 >
12 > Ran:
13 > mkfontdir /usr/share/fonts/terminus
14 > Ran:
15 > xset fp rehash
16 >
17 > Which is supposed to tell the X fonts tools about the new
18 > set of fonts with out having to restart X.
19 >
20 > I thought a bit and wondered if I might should have added the new
21 > directory to the font path.. I don't really think so since the default
22 > path covers the new one but still....so:
23 >
24 > Ran:
25 > xset +fp /usr/share/fonts/terminus
26 >
27 > That is supposed to prepend that path to the existing path.
28 >
29 > Checked with:
30 >
31 > xset q
32 >
33 > And I see the new directory
34 >
35 > Font Path:
36 > /usr/share/fonts/terminus_hp3-170310/,/usr/share/fonts/misc/,built-ins
37 >
38 >
39 > The new fonts show up with `fc-list'
40 >
41 > OK, all seems to be working...
42 >
43 > Until I actually try to use them.
44 >
45 > xterm -fa ter-u14b_iso-8859-1.pcf
46 > (output wrapped for mail)
47 >
48 > Warning: Cannot convert string
49 > "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*" to type
50 > FontStruct
51 >
52 > Warning: Missing charsets in String to FontSet conversion
53 >
54 > It appears the xterm is trying to load a font from somewhere else even
55 > though I asked for `ter-u14b_iso-8859-1.pcf'
56 >
57 > I'm not at all sure where the -adobe-helvetica if being called.
58 >
59 > sudo grep -r 'adobe-helvetica' /usr/share/fonts
60 > <Nothing>
61 >
62 > However there are piles of fonts with `adobe' in the name:
63 >
64 > sudo grep -r adobe /usr/share/fonts|wc-l
65 > 173
66 >
67 > They appear to be mostly like this:
68 >
69 > /usr/share/fonts/corefonts/fonts.scale:verdanaz.ttf
70 > -microsoft-verdana-bold-i-normal--0-0-0-0-p-0-adobe-standard
71 >
72 > Thought it might be from .Xresoures but there are no fonts there with
73 > adobe in the name
74 >
75 > `grep adobe .Xresources' <nothing>
76 >
77 > Anybody here recognize what the problem might be?
78 >
79 > There are a few helvetica in the .. only one is english:
80 >
81 > /usr/share/fonts/misc/fonts.alias:variable \
82 > -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1
83 >
84 > And two japanese helveticas
85 >
86 > So I can't even tell where that adobe font is coming from
87 >
88 >
89 >
90
91 The "terminus" font is in the Gentoo repo.
92
93 Try emerging "media-fonts/terminus-font" && activating with "eselect
94 fontconfig".
95
96 USE flags for the font you might be interested in :
97
98 center-tilde
99 -->Place the '~' character vertically centered on the line instead of to
100 the top.
101
102 pcf
103 -->Install Portable Compiled Font (PCF) (required for X11)
104
105 pcf-unicode-only
106 -->Remove non-unicode PCF fonts that could be problematic. See bug #520222.
107
108 psf
109 -->Install PC Screen Font (PSF) with unicode data (for linux console)
110
111 Corbin