View previous topic :: View next topic |
Author |
Message |
Vlad.Sharp Guru
Joined: 08 Dec 2004 Posts: 337 Location: Cambridgeshire, UK
|
Posted: Mon Nov 06, 2006 7:33 pm Post subject: Getting good fonts [solved] |
|
|
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 - 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 |
|
|
Tagx n00b
Joined: 18 Apr 2006 Posts: 61
|
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Nov 09, 2006 1:54 am Post subject: |
|
|
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 |
|
|
widremann Veteran
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Thu Nov 09, 2006 3:33 am Post subject: |
|
|
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 |
|
|
Vlad.Sharp Guru
Joined: 08 Dec 2004 Posts: 337 Location: Cambridgeshire, UK
|
|
Back to top |
|
|
|