• Behdad Esfahbod's avatar
    Revert changes made to FcConfigAppFontAddDir() recently · 46ec6a52
    Behdad Esfahbod authored
    In 32ac7c75 the behavior of
    FcConfigAppFontAddFile/Dir() were changed to return false
    if not fonts were found.  While this is welldefined and useful
    for AddFile(), it's quite problematic for AddDir().  For example,
    if the directory is empty, is that a failure or success?  Worse,
    the false value from AddDir() was being propagated all the way
    to FcInit() returning false now.  This only happened upon memory
    allocation failure before, and some clients assert that FcInit()
    is successful.
    
    With this change, AddDir() is reverted back to what it was.
    AddFont() change (which was actually in fcdir.c) from the original
    commit is left in.
    46ec6a52
Name
Last commit
Last update
conf.d Loading commit data...
doc Loading commit data...
fc-blanks Loading commit data...
fc-cache Loading commit data...
fc-case Loading commit data...
fc-cat Loading commit data...
fc-glyphname Loading commit data...
fc-lang Loading commit data...
fc-list Loading commit data...
fc-match Loading commit data...
fc-pattern Loading commit data...
fc-query Loading commit data...
fc-scan Loading commit data...
fc-validate Loading commit data...
fontconfig Loading commit data...
m4 Loading commit data...
src Loading commit data...
test Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
Tools.mk Loading commit data...
autogen.sh Loading commit data...
config-fixups.h Loading commit data...
configure.ac Loading commit data...
fontconfig-zip.in Loading commit data...
fontconfig.pc.in Loading commit data...
fontconfig.spec.in Loading commit data...
fonts.conf.in Loading commit data...
fonts.dtd Loading commit data...
git.mk Loading commit data...
local.conf Loading commit data...
new-version.sh Loading commit data...