Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Firefox and font rendering

  1. #11
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Firefox and font rendering

    On 2012-03-13 12:06, yavorf wrote:
    >
    > UPDATE: Obviously is the same issue here:
    >
    > http://tinyurl.com/7ts4f6p


    You will have to post photos, so that people see what you see.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  2. #12

    Default Re: Firefox and font rendering


  3. #13

    Default Re: Firefox and font rendering

    Thanks to e1nste1n and this post on a similar issue I managed to find a solution.

    Not to repeat my self, the first part of setting the beautiful font rendering is here.

    Then comes the file .fonts.conf file in ~/
    Should be like that:

    Code:
    <?xml version='1.0'?>
    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    <fontconfig>
     <match target="font">
      <edit mode="assign" name="rgba">
       <const>rgb</const>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="hinting">
       <bool>true</bool>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="hintstyle">
       <const>hintslight</const>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="autohint">
       <bool>true</bool>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="antialias">
       <bool>true</bool>
      </edit>
     </match>
    <!-- Here comes the font substitution -->
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Helvetica</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>Liberation Sans</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Times</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>Liberation Serif</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Courier</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>Liberation Mono</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Verdana</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>DejaVu Sans</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Georgia</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>DejaVu Serif</string>
      </edit>
     </match>
    </fontconfig>
    After that all the canges can be tested on this site Font Tester - CSS Font Comparison Tool

    That's all, thank you!

    EDIT: I'm marking the thread as solved.

    EDIT: I don't know how.

  4. #14
    Join Date
    Dec 2010
    Location
    Amerika
    Posts
    126

    Default Re: Firefox and font rendering

    Quote Originally Posted by yavorf View Post
    Thanks to e1nste1n and this post on a similar issue I managed to find a solution.

    Not to repeat my self, the first part of setting the beautiful font rendering is here.

    Then comes the file .fonts.conf file in ~/
    Should be like that:

    Code:
    <?xml version='1.0'?>
    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
    <fontconfig>
     <match target="font">
      <edit mode="assign" name="rgba">
       <const>rgb</const>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="hinting">
       <bool>true</bool>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="hintstyle">
       <const>hintslight</const>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="autohint">
       <bool>true</bool>
      </edit>
     </match>
     <match target="font">
      <edit mode="assign" name="antialias">
       <bool>true</bool>
      </edit>
     </match>
    <!-- Here comes the font substitution -->
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Helvetica</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>Liberation Sans</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Times</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>Liberation Serif</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Courier</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>Liberation Mono</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Verdana</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>DejaVu Sans</string>
      </edit>
     </match>
    <match target="pattern" name="family">
      <test name="family" qual="any">
       <string>Georgia</string>
      </test>
      <edit binding="strong" mode="prepend" name="family">
       <string>DejaVu Serif</string>
      </edit>
     </match>
    </fontconfig>
    After that all the canges can be tested on this site Font Tester - CSS Font Comparison Tool

    That's all, thank you!

    EDIT: I'm marking the thread as solved.

    EDIT: I don't know how.
    Thanks for the ~/.fonts.conf. This is the best my fonts have looked on openSUSE.
    --
    openSUSE 13.1, Arch Linux,
    Windows 8.1 Pro, all x86_64
    ---------------------------------------------------------
    Registered Linux user #436067

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •