Jul 20

Adventures With Ubuntu

in Games, Geeky

ubuntu_logoThe other day I was bored. What does one do when bored? Well, generally it’s a good idea to install some variant of Linux. Why? Because Linux is supposed to be hard to install. You’re supposed to struggle in order to get it running smoothly on your machine. It should take hours. It’s supposed to earn you some mad geek cred.

Am I right? Well, let me tell you about my recent experience with Ubuntu (9.04 Jaunty Jackalope). The computer I installed it on is an older Dell laptop (Inspiron 6400). It’s roughly four or so years old, so not exactly new, but not quite ancient yet. It can run all of my utilities just fine as well as World of Warcraft, so it’s still a fairly decent machine.

Installing Ubuntu on it was hands down the most easiest operating system install I’ve done in years. At first I was simply running Ubuntu from a live USB flash drive installation, then I got a hold of an extra harddrive and installed it on there. First impressions? Well, it detected my native resolution which is an issue I’ve run into before. The touchpad worked, my media buttons worked, it detected my mouse, audio worked, external drives worked, pretty much everything I could think of worked. Ah, but then came the real test: I plugged in my Wacom Intuos tablet. It worked. Pressure sensitivity and all. Cool. I like it when operating systems just work. Video though? Hm…

After that, I thought I’d try to see if I could get World of Warcraft to work. No dice there unfortunately (or perhaps fortunately). Jaunty Jackalope is actually too new for my video card (ATI Mobility Radeon X1400). So while their open source driver works well enough for normal tasks, I’m going to have to wait until ATI releases something more compatible. In order to play WoW, I’d actually need to downgrade to an older version of Ubuntu for the closed-source fglrx driver. It’s probably for the better though, as I most likely should just designate this laptop  as a strict web development machine. Although I must say that I’m a little bit disappointed, as everything else passed with flying colours.  So close.

Disable Smoothing on Ubuntu

As it’s being turned into a development laptop, one of the things that I did was install Microsoft Windows’ default fonts. One thing that Ubuntu does is render fonts very nicely. It adds some nice smoothing and generally just makes it look good. Now this is a personal preference of mine, but I find that smoothing on some of Microsoft’s fonts make them a little bit unreadable, specially when shrunken down (less than 12px). So what did I want to do? Disable smoothing on a select few fonts. I bugged Aron about it, and he started helping me edit a configuration file to turn off some of the font effects.

Verdana at 11px. Smoothing enabled on the left, disabled on the right.

Verdana at 11px. Smoothing enabled on the left; disabled on the right.

I wanted smoothing disabled on the following fonts:Verdana, Trebuchet MS, Arial, & Tahoma, so here is how it was done… Just in case someone else has a crazy high resolution monitor and has difficulties reading specific fonts when they have smoothing enabled.

Open up the following file to edit (or create it if needs be):

[sourcecode language="bash"]gedit ~/.fonts.conf[/sourcecode]

Paste the following into it, and save. It will look for the fonts listed, and then turn off all forms of smoothing if the font is less than 15px.

[sourcecode language="xml"]<?xml version=’1.0′?>
<!DOCTYPE fontconfig SYSTEM ‘fonts.dtd’>
<fontconfig>
<match target="font">
<test compare="more" name="pixelsize" qual="any">
<double>12</double>
</test>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<test compare="more" name="pixelsize" qual="any">
<double>0</double>
</test>
<test compare="less" name="pixelsize" qual="any">
<double>15</double>
</test>
<test qual="any" name="family">
<string>Arial</string>
<string>Tahoma</string>
<string>Trebuchet MS</string>
<string>Verdana</string>
</test>
<edit mode="assign" name="antialias">
<bool>false</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>false</bool>
</edit>
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintnone</const>
</edit>
</match>
</fontconfig>
[/sourcecode]

No related posts.

Tags: , , , , , , , , , , , ,

6 Responses

  1. scouser73 says:

    An excellent article, especially for people that are new to Linux

  2. leaf says:

    aw, Linux can be on and off in terms of how easy and how hard it is. sometimes my Ubuntu is totally compliant with my Gateway… other times, it really ain’t.

    the newest version, Jacky, really works smoothly for me though. c: i adore it.

  3. steven says:

    what is a good font for a black background ?

  4. Wait…something easier than Windows 7!!! No can’t be!

    Stuart
    Calgary, AB

Pings

  1. [...] idea to install some variant of Linux. Why? Because Linux is supposed to be hard to install. More here Installing Ubuntu on it was hands down the most easiest operating system install I’ve done in [...]

  2. [...] Adventures With Ubuntu The other day I was bored. What does one do when bored? Well, generally it’s a good idea to install some variant of Linux. Why? Because Linux is supposed to be hard to install. You’re supposed to struggle in order to get it running smoothly on your machine. It should take hours. It’s supposed to earn you some mad geek cred. [...]

Leave a Reply