You are not logged in.

#1 2007-07-11 18:41:10

caust1c
Member
Registered: 2005-12-02
Posts: 56

[Solved] Cant enable anti-aliased Fonts

Hi!
Yaft- Yet another Fontproblem Thread

I tried all those font configs from this forum/wiki/gentoowiki, but none helps me to enable Anti-Aliasing.

I also tried to symlink /etc/fonts/conf.avail/10-sub-pixel-rgb.conf  to /etc/fonts/conf.d but this doesnt help.

I reran fc-cache and restartet my xserver, the settings seme to be ignored. I dont use any DE, just dwm.

thx for reply smile

Last edited by caust1c (2007-07-11 19:23:21)

Offline

#2 2007-07-11 18:52:16

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: [Solved] Cant enable anti-aliased Fonts

i these in ~/.Xdefaults

urxvt*font:             xft:Terminus:pixelsize=14

Xft*dpi:                96
Xft*antialias:          true
Xft*hinting:            full

There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2007-07-11 18:56:08

caust1c
Member
Registered: 2005-12-02
Posts: 56

Re: [Solved] Cant enable anti-aliased Fonts

doh!

i had xft*antialias: false in my .Xdefaults wall.gif

Last edited by caust1c (2007-07-11 18:56:29)

Offline

#4 2007-08-30 21:03:21

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [Solved] Cant enable anti-aliased Fonts

Am I mistaken or I can't see much of a difference in the dwm bar? The fonts there don't seem to have been affected by antialiasing...


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#5 2007-08-30 21:18:42

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [Solved] Cant enable anti-aliased Fonts

finferflu wrote:

Am I mistaken or I can't see much of a difference in the dwm bar? The fonts there don't seem to have been affected by antialiasing...

$ ldd /usr/local/bin/dwm
        linux-gate.so.1 =>  (0xb7f61000)
        libc.so.6 => /lib/libc.so.6 (0xb7e19000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d30000)
        /lib/ld-linux.so.2 (0xb7f62000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7d2e000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7d17000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d13000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7d10000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7d0a000)

$ ldd /usr/bin/urxvt | grep font
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7f3e000)

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2007-08-30 21:40:34

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [Solved] Cant enable anti-aliased Fonts

I get the same output over here...

 >ldd /usr/bin/dwm
        linux-gate.so.1 =>  (0xb7f5a000)
        libc.so.6 => /lib/libc.so.6 (0xb7e0e000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d25000)
        /lib/ld-linux.so.2 (0xb7f5b000)
        libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7d23000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7d0c000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d08000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7d05000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cff000)
 >ldd /usr/bin/urxvt | grep font
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7ea5000)

Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#7 2007-08-30 22:22:56

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [Solved] Cant enable anti-aliased Fonts

finferflu wrote:

I get the same output over here...

I was just showing that dwm didn't use fontconfig, so it isn't affected by /etc/fonts/ configs.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2007-08-30 22:59:18

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [Solved] Cant enable anti-aliased Fonts

Cool, before replying I had the doubt that fontconfig was needed for antialiased fonts, so I had to choose my reply: either asking you if my speculation was right, or trying to show you my output to compare it with yours, obviously I picked the *right* one tongue

Thanks anyway smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#9 2007-08-31 10:30:06

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [Solved] Cant enable anti-aliased Fonts

I don't know all details, but there are at least 3 parts : Xft , freetype and fontconfig.
I believe these always come together, at least they are all there for urxvt :

        libXft.so.2 => /usr/lib/libXft.so.2 (0xb7f4b000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7f43000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7f18000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e9d000)

So maybe the actual anti aliasing is done by freetype, and freetype rendering can be configured thanks to fontconfig.
And Xft (which, according to the man page, is related to Xrender) might be the interface that the applications uses for opening / displaying fonts.

I guess the best way to understand this fully is to write a litte application using these libs smile
But I just wanted to give a quick way to find out if a given program supports this stuff or not.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB