You are not logged in.

#1 2013-02-27 11:23:39

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

fonts under gtk2 applications and firefox

I got a 23" wide screen LCD monitor (I used to be on a 17" LCD monitor).
fonts in Qt4/KDE applications look wonderful on both screens.
KDE and the fonts are just beautiful now on a wide screen.

But gtk+ applications and firefox fonts look like poo (used to look fine on old screen). I'm guessing this is a limitation in pango?
if so, how do I work around it? any patches or whatever for pango?

Last edited by hussam (2013-02-27 11:24:51)

Offline

#2 2013-02-27 11:39:44

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: fonts under gtk2 applications and firefox

It's freetype, not pango. Google for Infinality.

Offline

#3 2013-02-27 11:53:16

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: fonts under gtk2 applications and firefox

Qt doesn't use freetype?

Last edited by hussam (2013-02-27 11:53:53)

Offline

#4 2013-02-27 12:09:35

elkoraco
Member
Registered: 2013-02-18
Posts: 140

Re: fonts under gtk2 applications and firefox

Put this in .Xresources (create it if it isn't there):

Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault

Adjust according to preferences: hintslight, hintfull, hintmedium, rgb, grayscale and so on. Basically, recreate the values in your KDE font preferences panel. Run

xrdb -merge .Xresources

. If it still doesn't work, create a file named .fonts.conf in ~ and put this in there:

<?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="antialias" >
       <bool>true</bool>
     </edit>
   </match>
   <match target="font"><edit mode="assign" name="lcdfilter">
       <const>lcddefault</const>
     </edit>
   </match>
 </fontconfig>

I'm guessing your LCD filter value isn't set. You may need to log out and back in. I had the same thing happen in Gnome. Vanilla freetype has better rendering than any of the patched packages IMO, it's just a matter of tweaking.

Last edited by elkoraco (2013-02-27 12:13:03)

Offline

#5 2013-02-27 12:16:20

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: fonts under gtk2 applications and firefox

can I make those systemwide changes? I don't really like per-user settings.

Offline

#6 2013-02-27 12:25:46

elkoraco
Member
Registered: 2013-02-18
Posts: 140

Re: fonts under gtk2 applications and firefox

I think .fonts.conf would go into /etc/fonts/conf.d/51-local.conf
.Xresources can't be set system-wide AFAIK, but check: https://wiki.archlinux.org/index.php/Xresources
You may not need the .Xresources workaround, most applications I know of respect fontconfig, but I just do .Xresources as a safety measure.

Offline

#7 2013-02-27 16:15:22

AurosGamma
Member
From: San Cristobal,Venezuela
Registered: 2011-02-22
Posts: 132

Re: fonts under gtk2 applications and firefox

You can also try what I posted here. It should work for any gtk application.

Best Regards.

Edit: It's mostly the same thing that elkorako told you to do, but the path of  ~/.fonts.conf changed to ~/.config/fontconfig/fonts.conf a while ago.

Last edited by AurosGamma (2013-02-27 16:18:11)

Offline

Board footer

Powered by FluxBB