You are not logged in.

#1 2006-03-02 17:52:08

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

share your fonts configuration

Hello,

I want to see how far we can improve the look of text on Arch Linux, so far mine is good, I've take a local.conf from this forum (don't remember where) and customized it a bit to look better, so let's see what everyone else have smile, this way we can make a good conbination to have in order to have a good looking Arch

my /etc/fonts/local.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<!-- the cathectic LCD tweaks, from linuxquestions.org, 
http://www.linuxquestions.org/questions/showthread.php?postid=1361098#post1361098 
-->

<fontconfig>

    <!-- Disable sub-pixel rendering. X detects it anyway, and if you set 
    this as well, it just looks really horrible  -->
    <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>hintfull</const>
        </edit>
    </match>

    <!-- The first part of the 'magic.' This makes the fonts start to look 
    nice, but some of the shapes will be distorted, so hinting is needed 
    still -->
    <match target="font" >
        <edit mode="assign" name="antialias">
            <bool>true</bool>
        </edit>
    </match>

    <!-- Autohinter is not turned on automatically. Only disable this if you 
    have recompiled Freetype with the bytecode interpreter, which is run 
    automatically. Although to be honest, Freetype are right, there isn't 
    much difference between the two. Note that OpenOffice is built against 
    the bytecode interpreter, so even if you have compiled it and override 
    it with the autohinter, OOo will still use the bytecode interpreter -->
    <match target="pattern" >
        <edit mode="assign" name="autohint">
            <bool>true</bool>
        </edit>
    </match>

    <!-- Helvetica is a non true type font, and will look bad. This replaces 
    it with whatever is the default sans-serif font -->
    <match target="pattern" name="family" >
        <test name="family" qual="any" >
            <string>Helvetica</string>
        </test>
        <edit mode="assign" name="family" >
            <string>sans-serif</string>
        </edit>
    </match>

    <alias>
        <family>serif</family>
        <prefer>
            <family>Bitstream Vera Serif</family>
        </prefer>
    </alias>
    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>Bitstream Vera Sans</family>
        </prefer>
    </alias>
    <alias>
        <family>monospace</family>
        <prefer>
            <family>Bitstream Vera Sans Mono</family>
        </prefer>
    </alias>

    # Custom fonts directories
    <dir>~/.fonts</dir>
</fontconfig>

File paths in xorg.conf

Section "Files"
    # Rgb path
    RgbPath        "/usr/share/X11/rgb"
    # Modules path
    ModulePath    "/usr/lib/xorg/modules" 
    
    # Fonts
    FontPath    "/usr/share/fonts/misc"            # xorg-fonts-misc
    FontPath    "/usr/share/fonts/cyrillic"        # xorg-fonts-cyrillic
    FontPath    "/usr/share/fonts/100dpi"        # xorg-fonts-100dpi
    FontPath    "/usr/share/fonts/100dpi/:unscaled"    # xorg-fonts-100dpi
    FontPath    "/usr/share/fonts/75dpi"        # xorg-fonts-75dpi
    FontPath    "/usr/share/fonts/75dpi/:unscaled"    # xorg-fonts-75dpi
    FontPath    "/usr/share/fonts/Type1"        # xorg-fonts-type1
    FontPath    "/usr/share/fonts/TTF"            # 
    FontPath    "/usr/share/fonts/speedo"        # font-bitstream-speedo
    FontPath    "/usr/share/fonts/OTF"            # 
EndSection

and pacman -Qs -- -font

[wael@nasreddine ~]$ pacman -Qs -- -font
local/ttf-ms-fonts 1.3-7
    Un-extracted TTF Fonts from Microsoft
local/xorg-font-utils 1.0.0-1
    X.Org font utilities
local/xorg-fonts-100dpi 1.0.0-2
    X.org 100dpi fonts
local/xorg-fonts-75dpi 1.0.0-2
    X.org 75dpi fonts
local/xorg-fonts-alias 1.0.1-1
    X.org font alias files
local/xorg-fonts-cyrillic 1.0.0-1
    X.org cyrillic fonts
local/xorg-fonts-encodings 1.0.0-1
    X.org font encoding files
local/xorg-fonts-misc 1.0.0-2
    X.org misc fonts
local/xorg-fonts-type1 1.0.0-2
    X.org Type1 fonts

screenshot of http://www.danielgreene.com/fontprop.html page
14231_fonts.th.png

Offline

#2 2006-03-02 20:57:57

cdhotfire
Member
From: Ocala, Florida
Registered: 2006-02-13
Posts: 151

Re: share your fonts configuration

I love my fonts.  8)

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
  <test compare="more" name="pixelsize" qual="any">
  <double>7</double>
  </test>
  <edit mode="assign" name="antialias" >
    <bool>true</bool>
  </edit>
</match>
</fontconfig>

font3cb.th.png


[img]http://www.barbarawood.com/guestbook/images/smilies/koolaid.gif[/img]
"Ooooh Yaaaa!"

Offline

#3 2006-03-02 23:51:56

Mikos
Member
From: Prague, Czech Republic
Registered: 2005-05-03
Posts: 228
Website

Re: share your fonts configuration

My ~/.fonts.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>

Btw. I am using DejaVu Sans fonts - clone of Bitstream Vera with added support for Central European and other Unicode characters and also some truetype hinting improvements.

I totally love full hinting (and doesn't like autohinter), in my opinion linux have much nicer fonts rendering than Windows XP.

Offline

#4 2006-03-03 12:37:15

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: share your fonts configuration

Probably related to the monitor, but gandalf, many of your fonts have a red shadow at the left side and a blue shadow on the right side!

I use the defaults, I don't even know what autohinting is :oops:...

Offline

#5 2006-03-03 14:00:34

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: share your fonts configuration

Yep i noticed that, it's kinda annoying but i can't find out from where the shadow is coming...

Offline

#6 2006-03-03 14:51:13

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: share your fonts configuration

Mine definitely need some work, but I haven't taken the time to really mess with them.  I'm using a variation of one of the tweaks posted here in the forums (don't remember where exactly).  Here's my screenshot of the CSS Font Properties Test:
fonttest9sc.th.png
...and here's what my <code>~/.fonts.conf</code> looks like:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<!-- the cathectic LCD tweaks, from linuxquestions.org, 
http://www.linuxquestions.org/questions/showthread.php?postid=1361098#post1361098 --> 

<fontconfig>
    <!-- Disable sub-pixel rendering. X detects it anyway, and 
    if you set this as well, it just looks really horrible  --> 
    <match target="font" >
        <edit mode="assign" name="rgba" >
            <const>none</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>hintfull</const>
        </edit>
    </match> 

    <!-- The first part of the 'magic.' This makes the fonts 
    start to look nice, but some of the shapes will be distorted, 
    so hinting is needed still -->
    <match target="font" >
        <edit mode="assign" name="antialias">
            <bool>true</bool>
        </edit>
    </match> 

    <!-- Helvetica is a non true type font, and will look bad. 
    This replaces it with whatever is the default sans-serif font -->
    <match target="pattern" name="family" >
        <test name="family" qual="any" >
            <string>Helvetica</string>
        </test>
        <edit mode="assign" name="family" >
            <string>sans-serif</string>
        </edit>
    </match>
</fontconfig>

Offline

#7 2006-03-04 14:17:00

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,241

Re: share your fonts configuration

I would like to show my results, since i recently reinstalled and have very little tweaking.
I think the fonts look good, but
http://www.danielgreene.com/fontprop.html is to big to make a screenshot.

How did you guys make those screenshots ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2006-03-04 15:09:38

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: share your fonts configuration

Lone_Wolf wrote:

I would like to show my results, since i recently reinstalled and have very little tweaking.
I think the fonts look good, but
http://www.danielgreene.com/fontprop.html is to big to make a screenshot.

How did you guys make those screenshots ?

If you have imagemagick installed, use "import -window root image.png" for example

Offline

#9 2006-03-04 15:51:50

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: share your fonts configuration

I use a Firefox extension that takes advantage of the new canvas features of Firefox 1.5, it's called Pearl Crescent Page Saver.  It's extremely handy...

Offline

#10 2006-03-04 16:06:49

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: share your fonts configuration

Thx elasticdog very handy smile
[URL=http://serv2.imagehigh.com/view.php?id=15088_Arch_Linux_Forums__View_topic___share_your_fonts_configuration.png&path=/files/ih000001]15088_Arch_Linux_Forums__View_topic___share_your_fonts_configuration.th.png[/URL]

Offline

#11 2006-03-04 17:13:45

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,241

Re: share your fonts configuration

Indeed, very handy tool, thanks elasticdog.

Standard fontconfig, LCD monitor, KDE+Firefox , antialiasing medium hinting

fonts :
xorg-fonts-100dpi 1.0.0-2
xorg-fonts-75dpi 1.0.0-2
xorg-fonts-misc
xorg-fonts-type1
ttf-ms-fonts
ttf-cheapskate
ttf-bitstream-vera

scssfontpropertiestest5gl.th.png


Edit : sorry the image is so small, seems there's some automatic resizing going on.

2nd Edit : Uploaded to a different host, now it should work


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#12 2006-03-04 18:25:33

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: share your fonts configuration

Lone_Wolf wrote:

[..]
Edit : sorry the image is so small, seems there's some automatic resizing going on.

Go to Tools -> Extensions -> Pearl Crescent Page Saver -> Preferences and change the 25% value into 100% wink

Offline

#13 2006-03-05 02:27:43

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: share your fonts configuration

Uhm. Posting your font configs here is entirely useless if you happen to use KDE/Gnome or XFCE as they override some of those settings with their own.

Just thought it might be worth mentioning.

iphitus

Offline

#14 2006-03-05 05:40:14

soloport
Member
Registered: 2005-03-01
Posts: 442

Re: share your fonts configuration

iphitus wrote:

Uhm. Posting your font configs here is entirely useless if you happen to use KDE/Gnome or XFCE as they override some of those settings with their own.

Ah.  So that's what's wrong with my many attempts to get things looking even half-way like _Gandalf_'s image.  Bummer...

Offline

Board footer

Powered by FluxBB