Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 95950

Summary: Ways to improve the default configuration of fontconfig
Product: Gentoo Linux Reporter: Georgi Georgiev <chutz+bugs.gentoo.org>
Component: Current packagesAssignee: Gentoo Fonts Team <fonts>
Status: RESOLVED WONTFIX    
Severity: trivial    
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Georgi Georgiev 2005-06-13 03:25:50 UTC
There are two related problems I want to address here.

1. The fontconfig ebuild does not need to patch fonts.conf.in. Instead of
    epatch ${PPREFIX}-2.2-local_fontdir-r1.patch
this can be done:
    econf.... \
        --with-add-fonts="/usr/local/share/fonts,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi" \
        --with-default-fonts="/usr/share/fonts"

2. The current default fonts.conf installed by fontconfig includes a bunch of directories to search for fonts. However, since (1) fontconfig recurses the directories, (2) all fonts go in /usr/share/fonts (and not in /usr/X11R6/....), and (3) /usr/share/fonts is already in that list, the directory list can be shortened to /usr/share/fonts, /usr/local/share/fonts and ~/.fonts only. In other words, the above suggestion becomes:
 - remove ${PPREFIX}-2.2-local_fontdir-r1.patch
 - use this instead:
  econf ... \
      --with-add-fonts="/usr/local/share/fonts" \
      --with-default-fonts="/usr/share/fonts" || die

The second suggestion depends on whether or not the stable xorg for all architectures is a version that has already migrated from /usr/X11R6 to /usr, but it would be nice to keep that in mind.
Comment 1 foser (RETIRED) gentoo-dev 2005-06-13 10:51:16 UTC
One way or the other, it's all a bit moot. Patch or a config directive, i just
kept to the patch because it still applied.

Also it is not quite the time to skip the old X11 paths just yet imo, it doesn't
hurt to leave them around anyway.