Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95950 - Ways to improve the default configuration of fontconfig
Summary: Ways to improve the default configuration of fontconfig
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High trivial (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 03:25 UTC by Georgi Georgiev
Modified: 2005-06-13 10:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.