Still better font smoothing

Edit: Unfortunately, the images originally included in this post are gone, because of hosting problems in late 2009. My apologies.

I took a few minutes to experiment with more font smoothing and this seems to work better on my LCD. I had most of these settings already in my .fonts.conf file, but I edited it slightly and now things look … smoother. πŸ˜›

< ?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="pattern" >
	<edit mode="assign" name="autohint">
	 <bool>true</bool>
	</edit>
 </match>

 <dir>~/.fonts</dir>
</fontconfig>

Most of this was trimmed from the sample .fonts.conf file posted on the Arch Linux wiki. I don’t doubt for a second that it’ll work in Ubuntu too. πŸ˜‰

Edit: I’m rather foolish, to post this like a note to myself, and not even think about a screenshot. 😐 Here’s before, on the left, and after, on the right.

The only difference was that I didn’t really have the rgba set for my LCD before, so the antialiasing is a little smeared. Or at least I think that’s why it looked so sorry.

P.S.: I should mention that my GTK2 fonts still didn’t look perfect after I set this configuration, but when I changed them to use a specific font, and not just the “Sans Serif” generic setting, they smoothed out nicely.

19 thoughts on “Still better font smoothing

  1. K.Mandla Post author

    Ah … oh darn. How obvious was that, and I never even thought about a screenshot. 😐 Okay. Before and after, coming up. …

    Reply
  2. urukrama

    I should try this too. Bhutto is killed with no smooth fonts, but only wounded with smooth fonts! :p

    Reply
  3. K.Mandla Post author

    Sorry, WordPress.com eats XML at times. It’s something that I have learned to suffer.

    I’ll double-check the XML against the wiki when I get home. I had originally left out the bold-to-medium effect because I didn’t like how my fonts in particular looked. But if someone wants to add that term, it’s always an option.

    Reply
    1. mulenmar

      As nice as that would be, I seriously doubt that the original screenshots are still around after nearly two years. πŸ˜‰

      Here’s hoping omploader doesn’t go belly-up as well… 😦

      Reply
      1. K.Mandla Post author

        Unfortunately, that’s the problem. After two or three years it seems that almost any image host will erase the less popular stuff, so there’s little to be done. Sorry I can’t keep on top of the old posts too. 😐

        Reply
  4. Pingback: Arch’s -LCD font packages « Motho ke motho ka botho

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s