[Fontconfig-bugs] [Bug 86950] New: Fix or improve docs on FcConfigAppFontAddDir or FcConfigAppFontAddFile return value

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 2 19:15:06 PST 2014


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

            Bug ID: 86950
           Summary: Fix or improve docs on FcConfigAppFontAddDir or
                    FcConfigAppFontAddFile return value
           Product: fontconfig
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: library
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: freedesktop at behdad.org
        QA Contact: freedesktop at behdad.org

These functions return True of memory allocation didn't fail.  This includes
the case that the file/directory name passed to them doesn't exist.  This
confuses users of the API as they assume that a true return value means that
the font(s) were added.

We might be able to fix this to return False if the file/dir doesn't exist. 
Might have a few surprises re fc-cache and related API, that might or might not
be improvements.

Or at least we should improve docs to note this.

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


More information about the Fontconfig-bugs mailing list