Improving Font rendering to reach Ubuntu quality

If you have any suggestions or ideas about improving Salix, here's the place to post them.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Improving Font rendering to reach Ubuntu quality

Post by thenktor »

My font rendering is excellent in KDE with sub pixel hinting style full.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
gatewayasteroid
Posts: 54
Joined: 9. Dec 2009, 14:30
Location: Milano, Italy, EU

Re: Improving Font rendering to reach Ubuntu quality

Post by gatewayasteroid »

thenktor wrote:My font rendering is excellent in KDE with sub pixel hinting style full.
but just in KDE or in Openbox as well?
Can you shot a PNG and post it here? Thanks! :)

I can assure you (but you can check it yourself easily) that the differences are really impressive...
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Improving Font rendering to reach Ubuntu quality

Post by thenktor »

Image

You have to use gtk/qt/kde settings to change the rendering style in Openbox.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
gatewayasteroid
Posts: 54
Joined: 9. Dec 2009, 14:30
Location: Milano, Italy, EU

Re: Improving Font rendering to reach Ubuntu quality

Post by gatewayasteroid »

thenktor wrote:Image

You have to use gtk/qt/kde settings to change the rendering style in Openbox.
They look very good indeed, more or less like mine now!
I tried tweaking my ~/.fonts.conf (this is what I tried and using now) without success :(

Code: Select all

<?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>hintfull</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 will try again, thanks a lot!
User avatar
gatewayasteroid
Posts: 54
Joined: 9. Dec 2009, 14:30
Location: Milano, Italy, EU

Re: Improving Font rendering to reach Ubuntu quality

Post by gatewayasteroid »

thenktor wrote:Image

You have to use gtk/qt/kde settings to change the rendering style in Openbox.
I just tried with a Slackware 13.37 RC3. Font rendering in KDE, in Dolphin windows and such is great. The rest (GTK apps like firefox) is worse as always :(

Any clue?

Thanks!
Last edited by gatewayasteroid on 27. Mar 2011, 14:32, edited 1 time in total.
User avatar
gatewayasteroid
Posts: 54
Joined: 9. Dec 2009, 14:30
Location: Milano, Italy, EU

Re: Improving Font rendering to reach Ubuntu quality

Post by gatewayasteroid »

thenktor wrote:My font rendering is excellent in KDE with sub pixel hinting style full.
Also for me, in KDE, it's excellent. The problem is Firefox, or GIMP. See here:
http://www.mediafire.com/?xzr221hoay0aqnk
look for example at the "/" of the URL in the address bar(s).
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Improving Font rendering to reach Ubuntu quality

Post by JRD »

In Firefox 4, got to about:config and search for "cleartype", then enable the use of clear type for content, this will improve font rendering.
Image
User avatar
gatewayasteroid
Posts: 54
Joined: 9. Dec 2009, 14:30
Location: Milano, Italy, EU

Re: Improving Font rendering to reach Ubuntu quality

Post by gatewayasteroid »

JRD wrote:In Firefox 4, got to about:config and search for "cleartype", then enable the use of clear type for content, this will improve font rendering.
I don't have that :(
Image
pevsner
Posts: 81
Joined: 12. Apr 2010, 16:08

Re: Improving Font rendering to reach Ubuntu quality

Post by pevsner »

I usually have to add a .fonts.conf for Qt programs,
& edit ~/.Xresources to get hinting looking right for gtk programs in Openbox as lxappearance doesn't set hinting (xfce hinting works fine).
eg. of my .Xresources

Code: Select all

Xft.antialias: 1
Xft.hinting: 1
Xft.rgba: none
Xft.hintstyle: hintslight
Xft.dpi: 87
Best of luck, crappy fonts sux!
User avatar
gatewayasteroid
Posts: 54
Joined: 9. Dec 2009, 14:30
Location: Milano, Italy, EU

Re: Improving Font rendering to reach Ubuntu quality

Post by gatewayasteroid »

pevsner wrote:I usually have to add a .fonts.conf for Qt programs,
& edit ~/.Xresources to get hinting looking right for gtk programs in Openbox as lxappearance doesn't set hinting (xfce hinting works fine).
Best of luck, crappy fonts sux!
Thanks I already have tweaked .fonts.conf and .Xresources in a similar way, but I still have differences between KDE/QT apps (font rendering is perfect, same as Ubuntu) and GTK/Gnome (good, but not as good).
Anyway it seems that is something related to some packackes. Frugalware, for example:
New LCD font rendering available in GNOME. If you use digital video output, this will improve font appearance.
http://www.frugalware.org/news/197

These are patched:
http://www7.frugalware.org/pub/frugalwa ... freetype2/
http://www7.frugalware.org/pub/frugalwa ... ontconfig/
http://www7.frugalware.org/pub/frugalwa ... 11/libxft/
and probably Cairo as well.

Right now I'm using the Droid fonts with bytecode and full hinting, it seems to be the best option so far.
Not perfect as KDE :)
Post Reply