Summary: | Font cache never reused on win32 | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Tim Evans <t.evans> |
Component: | library | Assignee: | Keith Packard <keithp> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | medium | CC: | hanwen |
Version: | 2.6 | ||
Hardware: | x86 (IA32) | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Tim Evans
2008-10-23 19:30:59 UTC
LilyPond is also affected by this, http://lists.gnu.org/archive/html/lilypond-user/2008-11/msg00397.html Fixed in my tree: Created commit 711b953: [fccache] Consistently use FcStat() over stat() (bug #18195) 1 files changed, 1 insertions(+), 1 deletions(-) Tim, can you see if this patch fixes it for you: diff --git a/src/fccache.c b/src/fccache.c index 241ebd0..c7a2dcd 100644 --- a/src/fccache.c +++ b/src/fccache.c @@ -520,7 +520,7 @@ FcCacheTimeValid (FcCache *cache, struct stat *dir_stat) if (!dir_stat) { - if (stat ((const char *) FcCacheDir (cache), &dir_static) < 0) + if (FcStat ((const char *) FcCacheDir (cache), &dir_static) < 0) return FcFalse; dir_stat = &dir_static; } I believe I've fixed this in 2.7.0. Please reopen otherwise. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.