Provided by: Lubos Lunak <l.lunak@suse.cz>
However FcConfigUptoDate() doesn't seem to work. See the attached patch. First there's an obvious misplaced parenthesis making it return always false, and second, even this call fails to detect font changes (e.g. adding a new font to /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as well. The problem seems to be triggered by my fonts.conf specifying only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs doesn't include subdirs, unlike config->fontDirs.
This commit is contained in:
parent
2ebc105079
commit
0d71dde9b4
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
||||||
|
2004-06-30 Keith Packard <keithp@keithp.com>
|
||||||
|
|
||||||
|
Provided by: Lubos Lunak <l.lunak@suse.cz>
|
||||||
|
|
||||||
|
* src/fccfg.c: (FcConfigUptoDate):
|
||||||
|
However FcConfigUptoDate() doesn't seem to work. See the attached
|
||||||
|
patch. First there's an obvious misplaced parenthesis making it
|
||||||
|
return always false, and second, even this call fails to detect font
|
||||||
|
changes (e.g. adding a new font to
|
||||||
|
/usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
|
||||||
|
well. The problem seems to be triggered by my fonts.conf specifying
|
||||||
|
only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
|
||||||
|
doesn't include subdirs, unlike config->fontDirs.
|
||||||
|
|
||||||
2004-04-07 Keith Packard <keithp@keithp.com>
|
2004-04-07 Keith Packard <keithp@keithp.com>
|
||||||
|
|
||||||
* configure.in:
|
* configure.in:
|
||||||
|
|
|
@ -147,9 +147,9 @@ FcConfigUptoDate (FcConfig *config)
|
||||||
return FcFalse;
|
return FcFalse;
|
||||||
}
|
}
|
||||||
config_time = FcConfigNewestFile (config->configFiles);
|
config_time = FcConfigNewestFile (config->configFiles);
|
||||||
font_time = FcConfigNewestFile (config->configDirs);
|
font_time = FcConfigNewestFile (config->fontDirs);
|
||||||
if ((config_time.set && config_time.time - config->rescanTime > 0) ||
|
if ((config_time.set && config_time.time - config->rescanTime > 0) ||
|
||||||
(font_time.set && font_time.time - config->rescanTime) > 0)
|
(font_time.set && (font_time.time - config->rescanTime) > 0))
|
||||||
{
|
{
|
||||||
return FcFalse;
|
return FcFalse;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue