Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting good fonts [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Vlad.Sharp
Guru
Guru


Joined: 08 Dec 2004
Posts: 337
Location: Cambridgeshire, UK

PostPosted: Mon Nov 06, 2006 7:33 pm    Post subject: Getting good fonts [solved] Reply with quote

Hi,

Any other tips for getting good fonts? I've been to the gentoo-wiki and have changed my /etc/fonts/local.conf

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure system font access -->

<fontconfig>

<!-- Enable sub-pixel rendering -->

<!--
        <match target="font">
                <test qual="all" name="rgba">
                        <const>unknown</const>
                </test>
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
-->

 
<!-- Use the Autohinter -->

        <match target="font">
        <edit name="autohint" mode="assign"><bool>true</bool></edit>
       </match>

<!-- Disable Autohinting for bold fonts -->

        <match target="font">
                <test name="weight" compare="more">
                        <const>medium</const>
                </test>
                <edit name="autohint" mode="assign"><bool>false</bool></edit>
        </match>

    <match target="pattern">
            <test qual="any" name="family">
                    <string>Bitstream Vera Sans</string>
            </test>
            <edit name="family" mode="assign">
                    <string>Verdana</string>
            </edit>
    </match>
    <match target="pattern">
            <test qual="any" name="family">
                    <string>Helvetica</string>
            </test>
            <edit name="family" mode="assign">
                    <string>Arial</string>
            </edit>
    </match>
    <match target="pattern">
            <test qual="any" name="family">
                    <string>Palatino</string>
            </test>
            <edit name="family" mode="assign">
                    <string>Georgia</string>
            </edit>
    </match>
    <match target="pattern">
        <test qual="any" name="family">
            <string>Times</string>
        </test>
        <edit name="family" mode="assign">
            <string>Times New Roman</string>
        </edit>
    </match>


<!-- Replace Courier with a better-looking font -->
        <match target="pattern" name="family">
                <test name="family" qual="any">
                        <string>Courier</string>
                </test>
                <edit name="family" mode="assign">
                        <!-- Other choices - Courier New, Luxi Mono -->
                        <string>Bitstream Vera Sans Mono</string>
                </edit>
        </match>

        <match target="font">
                <edit name="rgba" mode="assign">
                        <const>rgb</const>
                </edit>
                <edit name="autohint" mode="assign">
                        <bool>true</bool>
                </edit>
                <edit name="antialias" mode="assign">
                        <bool>true</bool>
                </edit>
                <edit name="hinting" mode="assign">
                        <bool>true</bool>
                </edit>
                <edit name="hintstyle" mode="assign">
                        <const>hintmedium</const>
                </edit>
        </match>

        <!-- Disable autohint for bold fonts, otherwise they look *too* bold -->
        <match target="font">
                <test name="weight" compare="more">
                        <const>medium</const>
                </test>
                <edit name="autohint" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>

        <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
        <selectfont>
                <rejectfont>
                        <pattern>
                                <patelt name="scalable">
                                        <bool>false</bool>
                                </patelt>
                        </pattern>
                </rejectfont>
        </selectfont>

</fontconfig>


My xorg.conf reads
Code:
    FontPath    "/usr/share/fonts/misc:unscaled"
    FontPath    "/usr/share/fonts/Type1"
    FontPath    "/usr/share/fonts/TTF"
    FontPath    "/usr/share/fonts/corefonts"
    FontPath    "/usr/share/fonts/freefont"
    FontPath    "/usr/share/fonts/sharefonts"
    FontPath    "/usr/share/fonts/terminus"
    FontPath    "/usr/share/fonts/intlfonts"
    FontPath    "/usr/share/fonts/ttf-bitstream-vera"
    FontPath    "/usr/share/fonts/unifont"
    FontPath    "/usr/local/share/fonts"
    FontPath    "/usr/share/fonts/arphicfonts"
    FontPath    "/usr/share/fonts/kochi-substitute"
    FontPath    "/usr/share/fonts/baekmuk-fonts"
    FontPath    "/usr/share/fonts/artwiz"
    FontPath    "/usr/share/fonts/75dpi:unscaled"
    FontPath    "/usr/share/fonts/100dpi:unscaled"


And I have sane options in firefox.

However, I'm not satisfied :P - I have a Laptop LCD running 1400,900 at the moment, and here is a screenshot from firefox:

http://www.vladsharp.com/images/firefox_antialias.png

Is this as good as it gets or is there something else I can do?

Many kind thanks,
Vlad#[/code]


Last edited by Vlad.Sharp on Thu Nov 09, 2006 4:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tagx
n00b
n00b


Joined: 18 Apr 2006
Posts: 61

PostPosted: Thu Nov 09, 2006 1:28 am    Post subject: Reply with quote

Try going through this howto: https://forums.gentoo.org/viewtopic-t-511382-highlight-font+rendering.html.

It makes font rendering as good as OS X!
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Nov 09, 2006 1:54 am    Post subject: Reply with quote

Check /var/log/Xorg.0.log to see what DPI is being used:
Code:
grep DPI /var/log/Xorg.0.log

You can overrule it, as I mention.
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Thu Nov 09, 2006 3:33 am    Post subject: Reply with quote

No...get rid of anti-aliasing for normal fonts. Only enable it for bold and italic and fonts below 7 points and above 12 points. This is what you want for LCD where anti-aliasing just produces blurriness and misshapen glyphs. I also highly suggest installing Microsoft fonts like Tahoma. Here's my /etc/fonts/local.conf:

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
   <match target="font">
      <edit name="rgba" mode="assign"><const>rgb</const></edit>
      <edit name="autohint" mode="assign"><bool>false</bool></edit>
      <edit name="hinting" mode="assign"><bool>true</bool></edit>
      <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
      <edit name="antialias" mode="assign"><bool>false</bool></edit>
   </match>
   <match target="font">
      <test qual="any" name="size" target="font" compare="more_eq">
         <int>11</int>
      </test>
      <edit mode="assign" name="antialias">
         <bool>true</bool>
      </edit>
   </match>
   <match target="font">
      <test qual="any" name="size" target="font" compare="less">
         <int>7</int>
      </test>
      <edit mode="assign" name="antialias">
         <bool>true</bool>
      </edit>
   </match>
   <match target="font">
      <test qual="any" name="weight" target="font" compare="eq">
         <const>bold</const>
      </test>
      <edit mode="assign" name="antialias">
         <bool>true</bool>
      </edit>
   </match>
   <match target="font">
      <test qual="any" name="weight" target="font" compare="eq">
         <const>italic</const>
      </test>
      <edit mode="assign" name="antialias">
         <bool>true</bool>
      </edit>
   </match>
   <match target="font">
      <test qual="any" name="family" target="font" compare="eq">
         <string>Bitstream Vera Sans</string>
      </test>
      <edit mode="assign" name="antialias">
         <bool>true</bool>
      </edit>
   </match>
   <match target="font">
      <test qual="any" name="family" target="font" compare="eq">
         <string>Bitstream Vera Sans Mono</string>
      </test>
      <edit mode="assign" name="antialias">
         <bool>true</bool>
      </edit>
   </match>
   <match target="font">
      <test qual="any" name="family" target="font" compare="eq">
         <string>Bitstream Vera Serif</string>
      </test>
      <edit mode="assign" name="antialias">
         <bool>true</bool>
      </edit>
   </match>
</fontconfig>


You might want to remove the rules about Bitstream Vera Sans.
Back to top
View user's profile Send private message
Vlad.Sharp
Guru
Guru


Joined: 08 Dec 2004
Posts: 337
Location: Cambridgeshire, UK

PostPosted: Thu Nov 09, 2006 4:35 pm    Post subject: Reply with quote

Thank you everyone. I have followed (some) of the instructions here and have now got better fonts.

Here is a screenshot:

http://www.vladsharp.com/images/firefox_antialias_after.png
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum