How to fix Fontconfig error: failed reading config file Announcing the arrival of Valued...

Besides transaction validation, are there any other uses of the Script language in Bitcoin

How do you write "wild blueberries flavored"?

Pointing to problems without suggesting solutions

The Nth Gryphon Number

Statistical analysis applied to methods coming out of Machine Learning

How to resize main filesystem

How to make triangles with rounded sides and corners? (squircle with 3 sides)

Does the main washing effect of soap come from foam?

3D Masyu - A Die

How do I say "this must not happen"?

Is a copyright notice with a non-existent name be invalid?

Is the Mordenkainen's Sword spell underpowered?

Can the Haste spell grant both a Beast Master ranger and their animal companion extra attacks?

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

Any stored/leased 737s that could substitute for grounded MAXs?

Adapting the Chinese Remainder Theorem (CRT) for integers to polynomials

How many time has Arya actually used Needle?

Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?

Weaponising the Grasp-at-a-Distance spell

When does a function NOT have an antiderivative?

Inverse square law not accurate for non-point masses?

Short story about astronauts fertilizing soil with their own bodies

Diophantine equation 3^a+1=3^b+5^c

What are some likely causes to domain member PC losing contact to domain controller?



How to fix Fontconfig error: failed reading config file



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionHow Can I Improve the Font Rendering In FirefoxFirefox Quantum on Debian stretch font rendering problemsDisable browser logging output to consoleHow to fix Fontconfig errorUI freezes when I open many tabs in browserWeird internet problemGNOME confuses names of multiple different Firefox installationsAdding a custom font to fontconfigFirefox keeps crashing upon launchFontconfig error when running OctaveFirefox Quantum on Debian stretch font rendering problemsBroken fonts after upgrading Firefox ESR to latest Firefox





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4















On Debian testing, whenever I run a browser from the terminal, I get four lines of the following error:



Fontconfig error: failed reading config file


This doesn't seem to cause any problems in any application, only in Firefox Quantum installed via snap font rendering doesn't work correctly, just like here and here.



I have already tried all the steps mentioned in the two posts, apart from installing the tar, since I'd like to keep the snap version. When I first installed the browser, I had rendering issues on more websites (like Stackoverflow), but installing Microsoft core fonts fixed this. Now, the issue seems to be with Helvetica only, however, fc-match Helvetica shows that Helvetica is correctly matched with Arial.



So my conclusion is that somehow the "snap Firefox" is not able to read the fontconfig files (firefox-esr works fine, just like Opera and other browsers). I think the problem is not confined to Firefox Quantum though, because the error appears when I run another browser from command line as well. It just doesn't cause any issue there.



So the question is really how to fix the fontconfig setup? I have already reinstalled and ran dpkg-reconfigure fontconfig-config.










share|improve this question




















  • 3





    Seems a more informative error message is coming in a future fontconfig version.

    – Martin Bergström
    Jul 27 '18 at 13:25


















4















On Debian testing, whenever I run a browser from the terminal, I get four lines of the following error:



Fontconfig error: failed reading config file


This doesn't seem to cause any problems in any application, only in Firefox Quantum installed via snap font rendering doesn't work correctly, just like here and here.



I have already tried all the steps mentioned in the two posts, apart from installing the tar, since I'd like to keep the snap version. When I first installed the browser, I had rendering issues on more websites (like Stackoverflow), but installing Microsoft core fonts fixed this. Now, the issue seems to be with Helvetica only, however, fc-match Helvetica shows that Helvetica is correctly matched with Arial.



So my conclusion is that somehow the "snap Firefox" is not able to read the fontconfig files (firefox-esr works fine, just like Opera and other browsers). I think the problem is not confined to Firefox Quantum though, because the error appears when I run another browser from command line as well. It just doesn't cause any issue there.



So the question is really how to fix the fontconfig setup? I have already reinstalled and ran dpkg-reconfigure fontconfig-config.










share|improve this question




















  • 3





    Seems a more informative error message is coming in a future fontconfig version.

    – Martin Bergström
    Jul 27 '18 at 13:25














4












4








4








On Debian testing, whenever I run a browser from the terminal, I get four lines of the following error:



Fontconfig error: failed reading config file


This doesn't seem to cause any problems in any application, only in Firefox Quantum installed via snap font rendering doesn't work correctly, just like here and here.



I have already tried all the steps mentioned in the two posts, apart from installing the tar, since I'd like to keep the snap version. When I first installed the browser, I had rendering issues on more websites (like Stackoverflow), but installing Microsoft core fonts fixed this. Now, the issue seems to be with Helvetica only, however, fc-match Helvetica shows that Helvetica is correctly matched with Arial.



So my conclusion is that somehow the "snap Firefox" is not able to read the fontconfig files (firefox-esr works fine, just like Opera and other browsers). I think the problem is not confined to Firefox Quantum though, because the error appears when I run another browser from command line as well. It just doesn't cause any issue there.



So the question is really how to fix the fontconfig setup? I have already reinstalled and ran dpkg-reconfigure fontconfig-config.










share|improve this question
















On Debian testing, whenever I run a browser from the terminal, I get four lines of the following error:



Fontconfig error: failed reading config file


This doesn't seem to cause any problems in any application, only in Firefox Quantum installed via snap font rendering doesn't work correctly, just like here and here.



I have already tried all the steps mentioned in the two posts, apart from installing the tar, since I'd like to keep the snap version. When I first installed the browser, I had rendering issues on more websites (like Stackoverflow), but installing Microsoft core fonts fixed this. Now, the issue seems to be with Helvetica only, however, fc-match Helvetica shows that Helvetica is correctly matched with Arial.



So my conclusion is that somehow the "snap Firefox" is not able to read the fontconfig files (firefox-esr works fine, just like Opera and other browsers). I think the problem is not confined to Firefox Quantum though, because the error appears when I run another browser from command line as well. It just doesn't cause any issue there.



So the question is really how to fix the fontconfig setup? I have already reinstalled and ran dpkg-reconfigure fontconfig-config.







debian firefox fontconfig snap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 8 '18 at 13:44









slm

257k71544690




257k71544690










asked Jul 8 '18 at 11:58









iuvbioiuvbio

367




367








  • 3





    Seems a more informative error message is coming in a future fontconfig version.

    – Martin Bergström
    Jul 27 '18 at 13:25














  • 3





    Seems a more informative error message is coming in a future fontconfig version.

    – Martin Bergström
    Jul 27 '18 at 13:25








3




3





Seems a more informative error message is coming in a future fontconfig version.

– Martin Bergström
Jul 27 '18 at 13:25





Seems a more informative error message is coming in a future fontconfig version.

– Martin Bergström
Jul 27 '18 at 13:25










2 Answers
2






active

oldest

votes


















2














Have a look at /etc/fonts/conf.avail and /etc/fonts/conf.d . I came across this question because I had the same problem. Finally



FC_DEBUG=1024 fc-cache 2>&1|less

did not tell anything helpful. So I ran the following command looking for missing configuration files.



FC_DEBUG=1024 strace fc-cache 2>&1|less



It turned out that the configuration file from the fonts-guru-extra package was messed up. It was stored as /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf/65-0-fonts-guru-extra.conf and the symlink from /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf was somehow broken. At least it was not a file.



So I ran dpkg --force-depends --purge fonts-guru-extra and dpkg complained about a non-empty directory /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf
I deleted this directory by hand and ran



apt-get install fonts-guru-extra



and afterwards the error message was gone.






share|improve this answer



















  • 1





    Actually there are two bug reports regarding this problem: bugs.debian.org/cgi-bin/bugreport.cgi?bug=854165 and bugs.debian.org/cgi-bin/bugreport.cgi?bug=866051

    – Tobias Schlemmer
    Sep 15 '18 at 13:54



















0














This worked in my case (probably, it's a more universal solution):



# dpkg --force-depends --purge fontconfig-config
# aptitude install fontconfig-config


For me the problem was caused by downgrading fontconfig from 2.13 to 2.11 on debian stretch.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454130%2fhow-to-fix-fontconfig-error-failed-reading-config-file%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Have a look at /etc/fonts/conf.avail and /etc/fonts/conf.d . I came across this question because I had the same problem. Finally



    FC_DEBUG=1024 fc-cache 2>&1|less

    did not tell anything helpful. So I ran the following command looking for missing configuration files.



    FC_DEBUG=1024 strace fc-cache 2>&1|less



    It turned out that the configuration file from the fonts-guru-extra package was messed up. It was stored as /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf/65-0-fonts-guru-extra.conf and the symlink from /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf was somehow broken. At least it was not a file.



    So I ran dpkg --force-depends --purge fonts-guru-extra and dpkg complained about a non-empty directory /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf
    I deleted this directory by hand and ran



    apt-get install fonts-guru-extra



    and afterwards the error message was gone.






    share|improve this answer



















    • 1





      Actually there are two bug reports regarding this problem: bugs.debian.org/cgi-bin/bugreport.cgi?bug=854165 and bugs.debian.org/cgi-bin/bugreport.cgi?bug=866051

      – Tobias Schlemmer
      Sep 15 '18 at 13:54
















    2














    Have a look at /etc/fonts/conf.avail and /etc/fonts/conf.d . I came across this question because I had the same problem. Finally



    FC_DEBUG=1024 fc-cache 2>&1|less

    did not tell anything helpful. So I ran the following command looking for missing configuration files.



    FC_DEBUG=1024 strace fc-cache 2>&1|less



    It turned out that the configuration file from the fonts-guru-extra package was messed up. It was stored as /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf/65-0-fonts-guru-extra.conf and the symlink from /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf was somehow broken. At least it was not a file.



    So I ran dpkg --force-depends --purge fonts-guru-extra and dpkg complained about a non-empty directory /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf
    I deleted this directory by hand and ran



    apt-get install fonts-guru-extra



    and afterwards the error message was gone.






    share|improve this answer



















    • 1





      Actually there are two bug reports regarding this problem: bugs.debian.org/cgi-bin/bugreport.cgi?bug=854165 and bugs.debian.org/cgi-bin/bugreport.cgi?bug=866051

      – Tobias Schlemmer
      Sep 15 '18 at 13:54














    2












    2








    2







    Have a look at /etc/fonts/conf.avail and /etc/fonts/conf.d . I came across this question because I had the same problem. Finally



    FC_DEBUG=1024 fc-cache 2>&1|less

    did not tell anything helpful. So I ran the following command looking for missing configuration files.



    FC_DEBUG=1024 strace fc-cache 2>&1|less



    It turned out that the configuration file from the fonts-guru-extra package was messed up. It was stored as /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf/65-0-fonts-guru-extra.conf and the symlink from /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf was somehow broken. At least it was not a file.



    So I ran dpkg --force-depends --purge fonts-guru-extra and dpkg complained about a non-empty directory /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf
    I deleted this directory by hand and ran



    apt-get install fonts-guru-extra



    and afterwards the error message was gone.






    share|improve this answer













    Have a look at /etc/fonts/conf.avail and /etc/fonts/conf.d . I came across this question because I had the same problem. Finally



    FC_DEBUG=1024 fc-cache 2>&1|less

    did not tell anything helpful. So I ran the following command looking for missing configuration files.



    FC_DEBUG=1024 strace fc-cache 2>&1|less



    It turned out that the configuration file from the fonts-guru-extra package was messed up. It was stored as /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf/65-0-fonts-guru-extra.conf and the symlink from /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf was somehow broken. At least it was not a file.



    So I ran dpkg --force-depends --purge fonts-guru-extra and dpkg complained about a non-empty directory /etc/fonts/conf.avail/65-0-fonts-guru-extra.conf
    I deleted this directory by hand and ran



    apt-get install fonts-guru-extra



    and afterwards the error message was gone.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Sep 15 '18 at 13:41









    Tobias SchlemmerTobias Schlemmer

    1213




    1213








    • 1





      Actually there are two bug reports regarding this problem: bugs.debian.org/cgi-bin/bugreport.cgi?bug=854165 and bugs.debian.org/cgi-bin/bugreport.cgi?bug=866051

      – Tobias Schlemmer
      Sep 15 '18 at 13:54














    • 1





      Actually there are two bug reports regarding this problem: bugs.debian.org/cgi-bin/bugreport.cgi?bug=854165 and bugs.debian.org/cgi-bin/bugreport.cgi?bug=866051

      – Tobias Schlemmer
      Sep 15 '18 at 13:54








    1




    1





    Actually there are two bug reports regarding this problem: bugs.debian.org/cgi-bin/bugreport.cgi?bug=854165 and bugs.debian.org/cgi-bin/bugreport.cgi?bug=866051

    – Tobias Schlemmer
    Sep 15 '18 at 13:54





    Actually there are two bug reports regarding this problem: bugs.debian.org/cgi-bin/bugreport.cgi?bug=854165 and bugs.debian.org/cgi-bin/bugreport.cgi?bug=866051

    – Tobias Schlemmer
    Sep 15 '18 at 13:54













    0














    This worked in my case (probably, it's a more universal solution):



    # dpkg --force-depends --purge fontconfig-config
    # aptitude install fontconfig-config


    For me the problem was caused by downgrading fontconfig from 2.13 to 2.11 on debian stretch.






    share|improve this answer




























      0














      This worked in my case (probably, it's a more universal solution):



      # dpkg --force-depends --purge fontconfig-config
      # aptitude install fontconfig-config


      For me the problem was caused by downgrading fontconfig from 2.13 to 2.11 on debian stretch.






      share|improve this answer


























        0












        0








        0







        This worked in my case (probably, it's a more universal solution):



        # dpkg --force-depends --purge fontconfig-config
        # aptitude install fontconfig-config


        For me the problem was caused by downgrading fontconfig from 2.13 to 2.11 on debian stretch.






        share|improve this answer













        This worked in my case (probably, it's a more universal solution):



        # dpkg --force-depends --purge fontconfig-config
        # aptitude install fontconfig-config


        For me the problem was caused by downgrading fontconfig from 2.13 to 2.11 on debian stretch.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 hours ago









        sshilovskysshilovsky

        27612




        27612






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454130%2fhow-to-fix-fontconfig-error-failed-reading-config-file%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...