Bug 12107 - fc-cache is not always caching newly installed fonts.
fc-cache is not always caching newly installed fonts.
Product: fontconfig
Classification: Unclassified
Component: fc-cache
All All
: medium major
Assigned To: Keith Packard
: 10900 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2007-08-23 01:10 UTC by Huang Peng
Modified: 2007-10-25 00:43 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


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

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. ***