Firefox curly quotes broken in Helvetica, but not most other fonts and not in other apps?

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











up vote
1
down vote

favorite












In Firefox only (LibreOffice and Chromium work fine), and starting fairly recently, I've noticed Helvetica is rendering weirdly. Curly quotes are broken, but straight ones are not. Some further testing shows Times has the problem as well. (I have TrueType versions of these fonts).



Broken rendering of Helvetica and Times



Also Helvetica and Times do not appear to be using subpixel rendering, unlike the other fonts (and like they do in e.g., Chromium).



The test file I used was:



<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head><title>Test Fonts</title></head>
<body>
<p style="font-family: Helvetica; font-size: 12pt">“Curly” "Straight" Helvetica</p>
<p style="font-family: DejaVu Sans; font-size: 12pt">“Curly” "Straight" DejaVu Sans</p>
<p style="font-family: Times; font-size: 12pt">“Curly” "Straight" Times</p>
<p style="font-family: Times New Roman; font-size: 12pt">“Curly” "Straight" Times New Roman</p>
<p style="font-family: Helvetica; font-size: 24pt">“Curly” "Straight" Helvetica (Big)</p>
<p style="font-family: Helvetica; font-size: 9pt">“Curly” "Straight" Helvetica (Small)</p>
</body>
</html>


How can I at least get Firefox to stop displaying tiny quotes?









share

























    up vote
    1
    down vote

    favorite












    In Firefox only (LibreOffice and Chromium work fine), and starting fairly recently, I've noticed Helvetica is rendering weirdly. Curly quotes are broken, but straight ones are not. Some further testing shows Times has the problem as well. (I have TrueType versions of these fonts).



    Broken rendering of Helvetica and Times



    Also Helvetica and Times do not appear to be using subpixel rendering, unlike the other fonts (and like they do in e.g., Chromium).



    The test file I used was:



    <!DOCTYPE html>
    <html>
    <meta charset="utf-8">
    <head><title>Test Fonts</title></head>
    <body>
    <p style="font-family: Helvetica; font-size: 12pt">“Curly” "Straight" Helvetica</p>
    <p style="font-family: DejaVu Sans; font-size: 12pt">“Curly” "Straight" DejaVu Sans</p>
    <p style="font-family: Times; font-size: 12pt">“Curly” "Straight" Times</p>
    <p style="font-family: Times New Roman; font-size: 12pt">“Curly” "Straight" Times New Roman</p>
    <p style="font-family: Helvetica; font-size: 24pt">“Curly” "Straight" Helvetica (Big)</p>
    <p style="font-family: Helvetica; font-size: 9pt">“Curly” "Straight" Helvetica (Small)</p>
    </body>
    </html>


    How can I at least get Firefox to stop displaying tiny quotes?









    share























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      In Firefox only (LibreOffice and Chromium work fine), and starting fairly recently, I've noticed Helvetica is rendering weirdly. Curly quotes are broken, but straight ones are not. Some further testing shows Times has the problem as well. (I have TrueType versions of these fonts).



      Broken rendering of Helvetica and Times



      Also Helvetica and Times do not appear to be using subpixel rendering, unlike the other fonts (and like they do in e.g., Chromium).



      The test file I used was:



      <!DOCTYPE html>
      <html>
      <meta charset="utf-8">
      <head><title>Test Fonts</title></head>
      <body>
      <p style="font-family: Helvetica; font-size: 12pt">“Curly” "Straight" Helvetica</p>
      <p style="font-family: DejaVu Sans; font-size: 12pt">“Curly” "Straight" DejaVu Sans</p>
      <p style="font-family: Times; font-size: 12pt">“Curly” "Straight" Times</p>
      <p style="font-family: Times New Roman; font-size: 12pt">“Curly” "Straight" Times New Roman</p>
      <p style="font-family: Helvetica; font-size: 24pt">“Curly” "Straight" Helvetica (Big)</p>
      <p style="font-family: Helvetica; font-size: 9pt">“Curly” "Straight" Helvetica (Small)</p>
      </body>
      </html>


      How can I at least get Firefox to stop displaying tiny quotes?









      share













      In Firefox only (LibreOffice and Chromium work fine), and starting fairly recently, I've noticed Helvetica is rendering weirdly. Curly quotes are broken, but straight ones are not. Some further testing shows Times has the problem as well. (I have TrueType versions of these fonts).



      Broken rendering of Helvetica and Times



      Also Helvetica and Times do not appear to be using subpixel rendering, unlike the other fonts (and like they do in e.g., Chromium).



      The test file I used was:



      <!DOCTYPE html>
      <html>
      <meta charset="utf-8">
      <head><title>Test Fonts</title></head>
      <body>
      <p style="font-family: Helvetica; font-size: 12pt">“Curly” "Straight" Helvetica</p>
      <p style="font-family: DejaVu Sans; font-size: 12pt">“Curly” "Straight" DejaVu Sans</p>
      <p style="font-family: Times; font-size: 12pt">“Curly” "Straight" Times</p>
      <p style="font-family: Times New Roman; font-size: 12pt">“Curly” "Straight" Times New Roman</p>
      <p style="font-family: Helvetica; font-size: 24pt">“Curly” "Straight" Helvetica (Big)</p>
      <p style="font-family: Helvetica; font-size: 9pt">“Curly” "Straight" Helvetica (Small)</p>
      </body>
      </html>


      How can I at least get Firefox to stop displaying tiny quotes?







      x11 firefox fonts fontconfig





      share












      share










      share



      share










      asked 8 mins ago









      derobert

      70k8151207




      70k8151207




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Checking fc-match Helvetica, it was indeed giving me the TrueType font I expected. However, fc-list also pointed to a bunch of the ancient X11 bitmap fonts in /usr/share/fonts/X11/100dpi and /usr/share/fonts/X11/75dpi. I have bitmap fonts turned on in Fontconfig, mainly for Neep, but they're not supposed to be preferred. Under the hypothesis that Firefox was, for some reason, preferring them, then refusing to scale them, and then for some reason substituting a curly quote from a smaller one, I disabled them:



          Put this in /etc/fonts/conf.d/75-local-no-old-x-fonts.conf:



          <?xml version="1.0" ?>
          <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
          <fontconfig>
          <selectfont>
          <rejectfont>
          <glob>/usr/share/fonts/X11/75dpi/*</glob>
          <glob>/usr/share/fonts/X11/100dpi/*</glob>
          </rejectfont>
          </selectfont>
          </fontconfig>


          Possibly that's over-aggressive, but it worked:



          Working rendering of Helvetica and Times





          share




















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f475874%2ffirefox-curly-quotes-broken-in-helvetica-but-not-most-other-fonts-and-not-in-ot%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            Checking fc-match Helvetica, it was indeed giving me the TrueType font I expected. However, fc-list also pointed to a bunch of the ancient X11 bitmap fonts in /usr/share/fonts/X11/100dpi and /usr/share/fonts/X11/75dpi. I have bitmap fonts turned on in Fontconfig, mainly for Neep, but they're not supposed to be preferred. Under the hypothesis that Firefox was, for some reason, preferring them, then refusing to scale them, and then for some reason substituting a curly quote from a smaller one, I disabled them:



            Put this in /etc/fonts/conf.d/75-local-no-old-x-fonts.conf:



            <?xml version="1.0" ?>
            <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
            <fontconfig>
            <selectfont>
            <rejectfont>
            <glob>/usr/share/fonts/X11/75dpi/*</glob>
            <glob>/usr/share/fonts/X11/100dpi/*</glob>
            </rejectfont>
            </selectfont>
            </fontconfig>


            Possibly that's over-aggressive, but it worked:



            Working rendering of Helvetica and Times





            share
























              up vote
              1
              down vote













              Checking fc-match Helvetica, it was indeed giving me the TrueType font I expected. However, fc-list also pointed to a bunch of the ancient X11 bitmap fonts in /usr/share/fonts/X11/100dpi and /usr/share/fonts/X11/75dpi. I have bitmap fonts turned on in Fontconfig, mainly for Neep, but they're not supposed to be preferred. Under the hypothesis that Firefox was, for some reason, preferring them, then refusing to scale them, and then for some reason substituting a curly quote from a smaller one, I disabled them:



              Put this in /etc/fonts/conf.d/75-local-no-old-x-fonts.conf:



              <?xml version="1.0" ?>
              <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
              <fontconfig>
              <selectfont>
              <rejectfont>
              <glob>/usr/share/fonts/X11/75dpi/*</glob>
              <glob>/usr/share/fonts/X11/100dpi/*</glob>
              </rejectfont>
              </selectfont>
              </fontconfig>


              Possibly that's over-aggressive, but it worked:



              Working rendering of Helvetica and Times





              share






















                up vote
                1
                down vote










                up vote
                1
                down vote









                Checking fc-match Helvetica, it was indeed giving me the TrueType font I expected. However, fc-list also pointed to a bunch of the ancient X11 bitmap fonts in /usr/share/fonts/X11/100dpi and /usr/share/fonts/X11/75dpi. I have bitmap fonts turned on in Fontconfig, mainly for Neep, but they're not supposed to be preferred. Under the hypothesis that Firefox was, for some reason, preferring them, then refusing to scale them, and then for some reason substituting a curly quote from a smaller one, I disabled them:



                Put this in /etc/fonts/conf.d/75-local-no-old-x-fonts.conf:



                <?xml version="1.0" ?>
                <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
                <fontconfig>
                <selectfont>
                <rejectfont>
                <glob>/usr/share/fonts/X11/75dpi/*</glob>
                <glob>/usr/share/fonts/X11/100dpi/*</glob>
                </rejectfont>
                </selectfont>
                </fontconfig>


                Possibly that's over-aggressive, but it worked:



                Working rendering of Helvetica and Times





                share












                Checking fc-match Helvetica, it was indeed giving me the TrueType font I expected. However, fc-list also pointed to a bunch of the ancient X11 bitmap fonts in /usr/share/fonts/X11/100dpi and /usr/share/fonts/X11/75dpi. I have bitmap fonts turned on in Fontconfig, mainly for Neep, but they're not supposed to be preferred. Under the hypothesis that Firefox was, for some reason, preferring them, then refusing to scale them, and then for some reason substituting a curly quote from a smaller one, I disabled them:



                Put this in /etc/fonts/conf.d/75-local-no-old-x-fonts.conf:



                <?xml version="1.0" ?>
                <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
                <fontconfig>
                <selectfont>
                <rejectfont>
                <glob>/usr/share/fonts/X11/75dpi/*</glob>
                <glob>/usr/share/fonts/X11/100dpi/*</glob>
                </rejectfont>
                </selectfont>
                </fontconfig>


                Possibly that's over-aggressive, but it worked:



                Working rendering of Helvetica and Times






                share











                share


                share










                answered 8 mins ago









                derobert

                70k8151207




                70k8151207



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475874%2ffirefox-curly-quotes-broken-in-helvetica-but-not-most-other-fonts-and-not-in-ot%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)