[Fontconfig-bugs] [Bug 104713] New: fontconfig now loads all conf.avail files, breaks system configuration

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 20 21:48:10 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=104713

            Bug ID: 104713
           Summary: fontconfig now loads all conf.avail files, breaks
                    system configuration
           Product: fontconfig
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: library
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: mtmiller at debian.org
        QA Contact: freedesktop at behdad.org

With git master, fontconfig now loads all configuration files in
/usr/share/fontconfig/conf.avail after loading the desired system
configuration. This conflicts with the desired system configuration. For
example, if the system has enabled 70-no-bitmaps.conf, 70-yes-bitmaps.conf is
loaded later and overrides it.

This appears to be due to

    (void) FcConfigParseOnly (config, (const FcChar8 *)FC_TEMPLATEDIR,
FcFalse);

in FcInitLoadOwnConfig. The intent seems to be to parse the files for their
syntax and descriptions only, but it appears that the configurations are added
to the selection rules anyway.

With fontconfig 2.12.6 on my system

    $ fc-list :scalable=false

returns no fonts because 70-no-bitmaps.conf is enabled.

With git master, and the same system configuration,

    $ ./fc-list/fc-list :scalable=false
    /usr/share/fonts/X11/75dpi/courR24-ISO8859-1.pcf.gz: Courier:style=Regular
    /usr/share/fonts/X11/75dpi/courR08-ISO8859-1.pcf.gz: Courier:style=Regular
    ...

FC_DEBUG=1024 shows that fontconfig is "scanning" conf.avail files instead of
"loading".

If I delete the call to FcConfigParseOnly, then the "scanning" output
disappears and the fc-list and fc-match results behave correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180120/b6aab764/attachment.html>


More information about the Fontconfig-bugs mailing list