On Thu, 04 Jul 2013 01:07:08 +0200 Michael Weber <x...@gentoo.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hello, > > as Ondrej Grover pointed out on [1], the font.eclass installs font > files and indexes (font.dir, fonts.scale) into sub-dirs of > /usr/share/fonts/, e.g. /usr/share/fonts/terminus. > > These directories are naturally not in the fontpath of Xorg server, > and could not be used without adding these with xset fp+. > As said on the bug, the Xserver itself should be abled to find all > fonts, and it's not the duty of the xinitrc/window-manager to collect > all these paths in the users process. Font directories and caching are controlled by fontconfig on modern systems. You don't need to modify fontpath. If you have ancient programs that don't use fontconfig then you can add your own config and not slow down loading of X for everybody else for absolutely no reason. > I'd like to propose a patch to font.eclass to add the newly created > paths to the Xorg server configuration via xorg.conf.d files [2]. > I contacted fonts alias and, as mentioned on the bug and irc, Ben de > Groot (yngwin) does not object and says that font team lead Peter > Volkov (pva) is non-active. > > Please review for technical problems (esp. for EPREFIX). > > Open questions: > > - - Should the (current) default xorg server paths > /usr/share/fonts/{75dpi,100dpi,misc,TTF,OTF,TYPE1} really be excluded? > How would the startup and font lookup perfomance degrade with > multiple conf.d files, containing the same path multiple times? > > - - How would already installed font packages see this fix? > Revbump (and stabilize) every one of them? > > - - Alternative solutions would be installing fonts in xorg-servers > default paths or add one configuration file that gets newly > assembled on every font_pkg_postinst run. What you want is the font path element catalog and /etc/X11/fontpath.d (bug #185264) which I abandoned when I realized that no one actually uses fontpath anymore, that it caused the startup time to drastically increase with the number of installed fonts, and that adding your own fontpath entries is both trivial and documented everywhere. -- Ryan Hill psn: dirtyepic_sk gcc-porting/toolchain/wxwidgets @ gentoo.org 47C3 6D62 4864 0E49 8E9E 7F92 ED38 BD49 957A 8463
signature.asc
Description: PGP signature