diff -r 4e4651e88674 -r aab59042fefb ThirdParty/Pygments/pygments/formatters/img.py --- a/ThirdParty/Pygments/pygments/formatters/img.py Wed Jul 27 18:10:08 2016 +0200 +++ b/ThirdParty/Pygments/pygments/formatters/img.py Fri Jul 29 19:50:40 2016 +0200 @@ -82,9 +82,13 @@ stdout, _ = proc.communicate() if proc.returncode == 0: lines = stdout.splitlines() - if lines: - path = lines[0].decode().strip().strip(':') - return path + for line in lines: + if line.startswith(b'Fontconfig warning:'): + continue + path = line.decode().strip().strip(':') + if path: + return path + return None def _create_nix(self): for name in STYLES['NORMAL']: