[MacPorts] #33769: fontconfig 2.9.0 slows down program start, etc.
MacPorts
noreply at macports.org
Mon Mar 26 12:49:59 PDT 2012
#33769: fontconfig 2.9.0 slows down program start, etc.
-----------------------------------------+----------------------------------
Reporter: eric.lebigot@… | Owner: ryandesign@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: fontconfig
-----------------------------------------+----------------------------------
Comment(by michael.klein@…):
On my machine the cache seems completely ineffective with 2.9.0.
Consecutive invocations of {{{fc-cache -v}}} give always the same output:
{{{
$ fc-cache -v
/usr/share/fonts: skipping, no such directory
/usr/X11/lib/X11/fonts: caching, new cache contents: 0 fonts, 10 dirs
/usr/X11/lib/X11/fonts/100dpi: caching, new cache contents: 398 fonts, 0
dirs
/usr/X11/lib/X11/fonts/75dpi: caching, new cache contents: 398 fonts, 0
dirs
/usr/X11/lib/X11/fonts/OTF: caching, new cache contents: 23 fonts, 0 dirs
/usr/X11/lib/X11/fonts/Speedo: skipping, existing cache is valid: 23
fonts, 0 dirs
/usr/X11/lib/X11/fonts/TTF: caching, new cache contents: 23 fonts, 0 dirs
/usr/X11/lib/X11/fonts/Type1: caching, new cache contents: 29 fonts, 0
dirs
/usr/X11/lib/X11/fonts/cyrillic: skipping, existing cache is valid: 29
fonts, 0 dirs
/usr/X11/lib/X11/fonts/encodings: caching, new cache contents: 0 fonts, 1
dirs
/usr/X11/lib/X11/fonts/encodings/large: caching, new cache contents: 0
fonts, 0 dirs
/usr/X11/lib/X11/fonts/misc: caching, new cache contents: 59 fonts, 0 dirs
/usr/X11/lib/X11/fonts/util: caching, new cache contents: 0 fonts, 0 dirs
/Library/Fonts: caching, new cache contents: 220 fonts, 1 dirs
/Library/Fonts/Corel: caching, new cache contents: 159 fonts, 0 dirs
/Network/Library/Fonts: skipping, no such directory
/System/Library/Fonts: caching, new cache contents: 50 fonts, 0 dirs
/opt/local/share/fonts: caching, new cache contents: 0 fonts, 2 dirs
/opt/local/share/fonts/libwmf: caching, new cache contents: 13 fonts, 0
dirs
/opt/local/share/fonts/urw-fonts: caching, new cache contents: 35 fonts, 0
dirs
/Volumes/Users/michael/.fonts: caching, new cache contents: 1 fonts, 0
dirs
/Volumes/Users/michael/Library/Fonts: caching, new cache contents: 43
fonts, 0 dirs
/opt/local/var/cache/fontconfig: not cleaning unwritable cache directory
/Volumes/Users/michael/.fontconfig: cleaning cache directory
fc-cache: succeeded
}}}
While {{{fc-cache}}} runs, the file {{{$HOME/.fontconfig-be32d4.cache-3}}}
is constantly being updated. After that, inspecting that file with
{{{strings}}} shows only fonts from
{{{/Volumes/Users/michael/Library/Fonts}}}, but no other paths. The
directory {{{$HOME/.fontconfig}}} is empty.
If I pass {{{/Volumes/Users/michael/Library/Fonts}}} to {{{fc-cache}}}
after {{{fc-cache}}}, the cache is found:
{{{
$ fc-cache -v /Volumes/Users/michael/Library/Fonts/
/Volumes/Users/michael/Library/Fonts: skipping, existing cache is valid:
43 fonts, 0 dirs
/opt/local/var/cache/fontconfig: not cleaning unwritable cache directory
/Volumes/Users/michael/.fontconfig: cleaning cache directory
fc-cache: succeeded
}}}
For any other directory the cache is rebuilt.
--
Ticket URL: <https://trac.macports.org/ticket/33769#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list