#180 -nofontconfig has no effect

svn
closed-fixed
nobody
fontconfig (1)
5
2014-12-10
2014-02-22
Josh
No

-nofontconfig had no effect for a long time and still made fontconfig create a cache (which might be undesirable especially with performance issues some people experience), it was fixed in r36741. However, your verbose font scanning patch seems to make it create a cache unconditionally. I think I found a solution to keep the spamming when fontconfig is actually used by wrapping that code in a 'if' block:

/* force cache creation here and display fontconfig scan activity */
if (font_fontconfig >= 0) {
  FcDebugVal = 128;
  FcConfigEnableHome(FcFalse);
  FcInit();
  FcDebugVal = 0;
}

Tested with latest svn & FontConfig 2.11 on Windows. -nofontconfig doesn't create a cache and omitting it/-fontconfig still gives a verbose scan.

Discussion

  • it is reasonable, I've integrated the patch thanks

     
    • status: open --> closed-fixed
     
  • integrated in r36986+g9c99bc1