[MPlayer-dev-eng] FcDirScan used in ass_fontconfig.c deprecated in new fontconfig

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Sep 19 13:08:18 CEST 2006


On Tuesday 19 September 2006 12:44, Uoti Urpala wrote:
> In Debian's current libfontconfig1 the FcDirScan() function is
> deprecated and is implemented as "Return FcFalse;" (its documentation
> doesn't mention this yet though). The first version where this happens
> is probably 2.4.
>
> It seems a cache file is automatically created in ~/.fontconfig/ during
> FcConfigAppFontAddDir() now, so explicit cache creation is not needed.
> However MPlayer prints the following lines:
>
> [ass] Updating font cache
> FcDirScan failed
>
> The first line is actually correct because the FcDirCacheValid()
> function still exists and indicates whether there is a valid cache, and
> so shows whether the following FcConfigAppFontAddDir will need to update
> the cache. However when the cache does need to be updated there is
> always that unnecessary error message.

It looks exactly as you said. Cache is generated in FcConfigAppFontAddDir(), 
and also startup has become much faster (when cache is up-to-date). The 
whole "if (FcDirCacheValid" branch should probably be disabled in case of 
fontconfig >= 2.4.0.



More information about the MPlayer-dev-eng mailing list