Gentoo Archives: gentoo-dev

From: Michael Weber <xmw@g.o>
To: gentoo development <gentoo-dev@l.g.o>
Subject: [gentoo-dev] font.eclass add Xorg FontPath elements for non-standard paths
Date: Wed, 03 Jul 2013 23:07:27
Message-Id: 51D4AE9C.4000704@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 Hello,
5
6 as Ondrej Grover pointed out on [1], the font.eclass installs font
7 files and indexes (font.dir, fonts.scale) into sub-dirs of
8 /usr/share/fonts/, e.g. /usr/share/fonts/terminus.
9
10 These directories are naturally not in the fontpath of Xorg server,
11 and could not be used without adding these with xset fp+.
12 As said on the bug, the Xserver itself should be abled to find all
13 fonts, and it's not the duty of the xinitrc/window-manager to collect
14 all these paths in the users process.
15
16 I'd like to propose a patch to font.eclass to add the newly created
17 paths to the Xorg server configuration via xorg.conf.d files [2].
18 I contacted fonts alias and, as mentioned on the bug and irc, Ben de
19 Groot (yngwin) does not object and says that font team lead Peter
20 Volkov (pva) is non-active.
21
22 Please review for technical problems (esp. for EPREFIX).
23
24 Open questions:
25
26 - - Should the (current) default xorg server paths
27 /usr/share/fonts/{75dpi,100dpi,misc,TTF,OTF,TYPE1} really be excluded?
28 How would the startup and font lookup perfomance degrade with
29 multiple conf.d files, containing the same path multiple times?
30
31 - - How would already installed font packages see this fix?
32 Revbump (and stabilize) every one of them?
33
34 - - Alternative solutions would be installing fonts in xorg-servers
35 default paths or add one configuration file that gets newly
36 assembled on every font_pkg_postinst run.
37
38 Thanks
39
40 [1] https://bugs.gentoo.org/475488
41 [2] /etc/X11/xorg.conf.d/90-${PN}-${SLOT}.conf
42 - --
43 Michael Weber
44 Gentoo Developer
45 web: https://xmw.de/
46 mailto: Michael Weber <xmw@g.o>
47 -----BEGIN PGP SIGNATURE-----
48 Version: GnuPG v2.0.20 (GNU/Linux)
49 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
50
51 iF4EAREIAAYFAlHUrpsACgkQknrdDGLu8JA5rAEAgIALUkh/4qdikCnArjdsj2LP
52 v1MLlq9IQ8Mfv7WmWKkA/RDz6oJgDcl5k4bdSpJwFq5ORE64CWe0E82S927oVcH+
53 =UDJ7
54 -----END PGP SIGNATURE-----

Attachments

File name MIME type
font.eclass.patch text/x-patch
font.eclass.patch.sig application/pgp-signature

Replies