Install some debs from Ubuntu on Debian Squeeze to get nice font rendering

fonts

I have both Debian Squeeze and Ubuntu 10.04 machines; the font rendering in 10.04/10.10 is beautiful out of the box but Squeeze is still ugly even after hours and hours of messing with configuration. (IMO – I realize this is subjective.)

Obviously Ubuntu is doing something right. Can I simply install a few packages from Ubuntu on my Debian box and have it work? If so, which are the relevant packages (cairo, freetype, xft are the libraries which seem to keep getting mentioned)? And which is the right version of Ubuntu to pull from? I'm currently on Lenny but I could upgrade to Squeeze.

Alternately, are there patches I can pull from the Ubuntu deb sources that I can apply to to the corresponding Debian versions and rebuild?

Best Answer

Before you do anything else, upgrade your Debian distribution to at least Squeeze. Squeeze has been the active stable tree for a long time now (and will likely be superseded by Wheezy sometime this year) and Lenny is more than a year past its end-of-life date.

What that means is that not only is all of its software dangerously outdated, it hasn't been receiving security updates for at least that long.

If that doesn't solve your problem outright (Ubuntu tends to be a bit ahead of Debian stable because it's much less rigorous about what they consider acceptable for a stable release) I'd still recommend you look at Debian backports before you start trying to graft ubuntu packages onto a debian system, especially where libraries are concerned.