• Tom Anderson's avatar
    Return canonicalized paths from FcConfigRealFilename · d1f48f11
    Tom Anderson authored
    FcConfigRealFilename() follows symlinks, but the link may be relative to the
    directory containing the link.  For example, on my system, I have this file:
    
    /etc/fonts/conf.d/99-language-selector-zh.conf ->
        ../conf.avail/99-language-selector-zh.conf
    
    Since /etc/fonts/conf.d is probably not in PATH, open()ing the file would fail.
    This change makes FcConfigRealFilename() return the canonicalized filename
    instead.  So for the example above, it would return:
    
    /etc/fonts/conf.avail/99-language-selector-zh.conf
    
    This was causing bad font rendering in Chromium [1] after the regression I
    introduced in 7ad010e8.
    
    [1] https://bugs.chromium.org/p/chromium/issues/detail?id=857511
    d1f48f11
Name
Last commit
Last update
conf.d Loading commit data...
doc Loading commit data...
fc-cache Loading commit data...
fc-case Loading commit data...
fc-cat Loading commit data...
fc-conflist 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...
its Loading commit data...
m4 Loading commit data...
po Loading commit data...
po-conf 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...