How to make Firefox honour my configuration to disable font hinting for a single font?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












11















I am using Debian GNU/Linux version 8 with LXDE. Regarding fonts, I have my system configured to use anti‐aliasing, subpixel rendering, and full hinting. However, I want to disable hinting for Liberation Serif, but it does not work in Firefox. Firefox still uses full hinting for Liberation Serif. However, Liberation Serif is correctly shown as non‐hinted in other programs (I checked in Gucharmap, Leafpad and LibreOffice Writer).



How can I disable hinting for all serif fonts or just Liberation Serif in Firefox?



I have hinting set to full with the customizer that comes with LXDE and the following code in ~/.config/fontconfig/fonts.conf and ~/.fonts.conf (the later is a symbolic links to the former):



<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>Liberation Serif</string></test>
<edit name="hintstyle" mode="assign">
<const>hintnone</const>
</edit>
</match>
</fontconfig>


Thanks.










share|improve this question




























    11















    I am using Debian GNU/Linux version 8 with LXDE. Regarding fonts, I have my system configured to use anti‐aliasing, subpixel rendering, and full hinting. However, I want to disable hinting for Liberation Serif, but it does not work in Firefox. Firefox still uses full hinting for Liberation Serif. However, Liberation Serif is correctly shown as non‐hinted in other programs (I checked in Gucharmap, Leafpad and LibreOffice Writer).



    How can I disable hinting for all serif fonts or just Liberation Serif in Firefox?



    I have hinting set to full with the customizer that comes with LXDE and the following code in ~/.config/fontconfig/fonts.conf and ~/.fonts.conf (the later is a symbolic links to the former):



    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <match target="font">
    <edit mode="assign" name="lcdfilter">
    <const>lcddefault</const>
    </edit>
    </match>
    <match target="pattern">
    <test qual="any" name="family"><string>Liberation Serif</string></test>
    <edit name="hintstyle" mode="assign">
    <const>hintnone</const>
    </edit>
    </match>
    </fontconfig>


    Thanks.










    share|improve this question


























      11












      11








      11


      1






      I am using Debian GNU/Linux version 8 with LXDE. Regarding fonts, I have my system configured to use anti‐aliasing, subpixel rendering, and full hinting. However, I want to disable hinting for Liberation Serif, but it does not work in Firefox. Firefox still uses full hinting for Liberation Serif. However, Liberation Serif is correctly shown as non‐hinted in other programs (I checked in Gucharmap, Leafpad and LibreOffice Writer).



      How can I disable hinting for all serif fonts or just Liberation Serif in Firefox?



      I have hinting set to full with the customizer that comes with LXDE and the following code in ~/.config/fontconfig/fonts.conf and ~/.fonts.conf (the later is a symbolic links to the former):



      <?xml version="1.0"?>
      <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
      <fontconfig>
      <match target="font">
      <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
      </edit>
      </match>
      <match target="pattern">
      <test qual="any" name="family"><string>Liberation Serif</string></test>
      <edit name="hintstyle" mode="assign">
      <const>hintnone</const>
      </edit>
      </match>
      </fontconfig>


      Thanks.










      share|improve this question
















      I am using Debian GNU/Linux version 8 with LXDE. Regarding fonts, I have my system configured to use anti‐aliasing, subpixel rendering, and full hinting. However, I want to disable hinting for Liberation Serif, but it does not work in Firefox. Firefox still uses full hinting for Liberation Serif. However, Liberation Serif is correctly shown as non‐hinted in other programs (I checked in Gucharmap, Leafpad and LibreOffice Writer).



      How can I disable hinting for all serif fonts or just Liberation Serif in Firefox?



      I have hinting set to full with the customizer that comes with LXDE and the following code in ~/.config/fontconfig/fonts.conf and ~/.fonts.conf (the later is a symbolic links to the former):



      <?xml version="1.0"?>
      <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
      <fontconfig>
      <match target="font">
      <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
      </edit>
      </match>
      <match target="pattern">
      <test qual="any" name="family"><string>Liberation Serif</string></test>
      <edit name="hintstyle" mode="assign">
      <const>hintnone</const>
      </edit>
      </match>
      </fontconfig>


      Thanks.







      x11 firefox fonts fontconfig






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 30 '18 at 0:00









      Yurij Goncharuk

      2,3232522




      2,3232522










      asked Mar 30 '17 at 16:11









      Eustaquio Díaz VillaEustaquio Díaz Villa

      563




      563




















          2 Answers
          2






          active

          oldest

          votes


















          0














          Go to about:config
          Find the preference gfx.font_rendering.cleartype_params.rendering_mode
          Change its value (probably -1) to 1



          1 turns anti-aliasing off.
          You might also want to try 2 and 3.



          4 and 5 are not your friends, they involve anti-aliasing.



          That turns off both anti-aliasing, and font-hinting.



          OR You Can Try Belows



          <?xml version="1.0"?>
          <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
          <fontconfig>
          <match target="font">
          <edit mode="assign" name="lcdfilter">
          <const>lcddefault</const>
          </edit>
          </match>
          <match target="pattern">
          <test qual="any" name="family"><string>Liberation Serif</string></test>
          <edit name="autohint" mode="assign">
          <bool>false</bool>
          </edit>
          </match>
          </fontconfig>





          share|improve this answer




















          • 1





            No such setting at all in Firefox 64.

            – Sarge Borsch
            Dec 16 '18 at 12:12


















          0














          Maybe you could explore options from Firefox advanced config.



          Type about:config on address text bar and hit Enter. You will be warned that changes from there are dangerous for Firefox stability. There's nothing wrong with that unless you change something critical. Accept the risk, and try some changes (once at a time). Search "font_rendering" or "font" options. Maybe you could do something from there.



          I also have to say I've never had this problem or wanted to work this way.






          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%2f354877%2fhow-to-make-firefox-honour-my-configuration-to-disable-font-hinting-for-a-single%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









            0














            Go to about:config
            Find the preference gfx.font_rendering.cleartype_params.rendering_mode
            Change its value (probably -1) to 1



            1 turns anti-aliasing off.
            You might also want to try 2 and 3.



            4 and 5 are not your friends, they involve anti-aliasing.



            That turns off both anti-aliasing, and font-hinting.



            OR You Can Try Belows



            <?xml version="1.0"?>
            <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
            <fontconfig>
            <match target="font">
            <edit mode="assign" name="lcdfilter">
            <const>lcddefault</const>
            </edit>
            </match>
            <match target="pattern">
            <test qual="any" name="family"><string>Liberation Serif</string></test>
            <edit name="autohint" mode="assign">
            <bool>false</bool>
            </edit>
            </match>
            </fontconfig>





            share|improve this answer




















            • 1





              No such setting at all in Firefox 64.

              – Sarge Borsch
              Dec 16 '18 at 12:12















            0














            Go to about:config
            Find the preference gfx.font_rendering.cleartype_params.rendering_mode
            Change its value (probably -1) to 1



            1 turns anti-aliasing off.
            You might also want to try 2 and 3.



            4 and 5 are not your friends, they involve anti-aliasing.



            That turns off both anti-aliasing, and font-hinting.



            OR You Can Try Belows



            <?xml version="1.0"?>
            <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
            <fontconfig>
            <match target="font">
            <edit mode="assign" name="lcdfilter">
            <const>lcddefault</const>
            </edit>
            </match>
            <match target="pattern">
            <test qual="any" name="family"><string>Liberation Serif</string></test>
            <edit name="autohint" mode="assign">
            <bool>false</bool>
            </edit>
            </match>
            </fontconfig>





            share|improve this answer




















            • 1





              No such setting at all in Firefox 64.

              – Sarge Borsch
              Dec 16 '18 at 12:12













            0












            0








            0







            Go to about:config
            Find the preference gfx.font_rendering.cleartype_params.rendering_mode
            Change its value (probably -1) to 1



            1 turns anti-aliasing off.
            You might also want to try 2 and 3.



            4 and 5 are not your friends, they involve anti-aliasing.



            That turns off both anti-aliasing, and font-hinting.



            OR You Can Try Belows



            <?xml version="1.0"?>
            <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
            <fontconfig>
            <match target="font">
            <edit mode="assign" name="lcdfilter">
            <const>lcddefault</const>
            </edit>
            </match>
            <match target="pattern">
            <test qual="any" name="family"><string>Liberation Serif</string></test>
            <edit name="autohint" mode="assign">
            <bool>false</bool>
            </edit>
            </match>
            </fontconfig>





            share|improve this answer















            Go to about:config
            Find the preference gfx.font_rendering.cleartype_params.rendering_mode
            Change its value (probably -1) to 1



            1 turns anti-aliasing off.
            You might also want to try 2 and 3.



            4 and 5 are not your friends, they involve anti-aliasing.



            That turns off both anti-aliasing, and font-hinting.



            OR You Can Try Belows



            <?xml version="1.0"?>
            <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
            <fontconfig>
            <match target="font">
            <edit mode="assign" name="lcdfilter">
            <const>lcddefault</const>
            </edit>
            </match>
            <match target="pattern">
            <test qual="any" name="family"><string>Liberation Serif</string></test>
            <edit name="autohint" mode="assign">
            <bool>false</bool>
            </edit>
            </match>
            </fontconfig>






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 23 '18 at 6:38

























            answered May 23 '18 at 6:26









            RaviJRaviJ

            1719




            1719







            • 1





              No such setting at all in Firefox 64.

              – Sarge Borsch
              Dec 16 '18 at 12:12












            • 1





              No such setting at all in Firefox 64.

              – Sarge Borsch
              Dec 16 '18 at 12:12







            1




            1





            No such setting at all in Firefox 64.

            – Sarge Borsch
            Dec 16 '18 at 12:12





            No such setting at all in Firefox 64.

            – Sarge Borsch
            Dec 16 '18 at 12:12













            0














            Maybe you could explore options from Firefox advanced config.



            Type about:config on address text bar and hit Enter. You will be warned that changes from there are dangerous for Firefox stability. There's nothing wrong with that unless you change something critical. Accept the risk, and try some changes (once at a time). Search "font_rendering" or "font" options. Maybe you could do something from there.



            I also have to say I've never had this problem or wanted to work this way.






            share|improve this answer



























              0














              Maybe you could explore options from Firefox advanced config.



              Type about:config on address text bar and hit Enter. You will be warned that changes from there are dangerous for Firefox stability. There's nothing wrong with that unless you change something critical. Accept the risk, and try some changes (once at a time). Search "font_rendering" or "font" options. Maybe you could do something from there.



              I also have to say I've never had this problem or wanted to work this way.






              share|improve this answer

























                0












                0








                0







                Maybe you could explore options from Firefox advanced config.



                Type about:config on address text bar and hit Enter. You will be warned that changes from there are dangerous for Firefox stability. There's nothing wrong with that unless you change something critical. Accept the risk, and try some changes (once at a time). Search "font_rendering" or "font" options. Maybe you could do something from there.



                I also have to say I've never had this problem or wanted to work this way.






                share|improve this answer













                Maybe you could explore options from Firefox advanced config.



                Type about:config on address text bar and hit Enter. You will be warned that changes from there are dangerous for Firefox stability. There's nothing wrong with that unless you change something critical. Accept the risk, and try some changes (once at a time). Search "font_rendering" or "font" options. Maybe you could do something from there.



                I also have to say I've never had this problem or wanted to work this way.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 10 at 9:10









                RookieOneRookieOne

                112




                112



























                    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%2f354877%2fhow-to-make-firefox-honour-my-configuration-to-disable-font-hinting-for-a-single%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

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?