Bug 12107

Summary: fc-cache is not always caching newly installed fonts.
Product: fontconfig Reporter: Huang Peng <shawn.p.huang>
Component: fc-cacheAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium CC: chris-fdbugs
Version: 2_1   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Huang Peng 2007-08-23 01:10:30 UTC
When system have been installed, and we adjust the system to past, the fc-cahce will not cache new fontdir. It is because that the cache file's mtime is newer than the fontdirs. It causes fontconfig applications can not use new fonts.

Could we save fontdir's mtime in the cache file, and decide the cache's availability by checking whether the mtime in cache is equal to fontdirs instead of newer than fontdirs?

Thanks
Comment 1 Keith Packard 2007-10-24 21:56:20 UTC
Font caches now contain the directory mtime; the cache is invalid when that time is not the same as the directory mtime, which eliminates random time mis-orderings between cache and font directory.
Comment 2 Keith Packard 2007-10-25 00:43:02 UTC
*** Bug 10900 has been marked as a duplicate of this bug. ***

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.