Bold dream
Imagination is limitless. So is stupidity.

Fixing QT fonts in Ubuntu 9.10 Keramic

November 12th 2009 in Default

A few days ago I decided to bite the bullet and update Ubuntu. The last time I did this it caused me quite a lot of frustration – but amazingly this time it was almost painless. The wireless stopped working but I managed to get it back in about 30 minutes. The other thing was Qt fonts (the fonts in skype or qbittorrent). After a bit of searching and a few false attempts I managed to fix it.

The fix1 is quite simple, actually – just paste the following code in ~/.fonts.conf. This settings seem to work, unlike the many I tried before that.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
  <edit name="rgba" mode="assign">
    <const>rgb</const>
  </edit>
  <edit name="antialias" mode="assign">
   <bool>true</bool>
  </edit>
  <edit name="hintstyle" mode="assign">
   <const>hintfull</const>
  </edit>
   <edit name="hinting" mode="assign">
    <bool>true</bool>
   </edit>
  </match>
</fontconfig>

The forts are anti-aliased, as expected, and look fine in FF, Gnome and Qt-based applications.

____________________
1 http://swiss.ubuntuforums.org/showthread.php?t=1316216




required



required - won't be displayed


Your Comment:

A few days ago I found a nice ringtone for SMS notifications, but couldn’t find a way to use it on my HTC Magic (except using a 3rd party app from the store). After a bit of digging I got it:

On the SD card there must be a directory structure as follows:

sdcard
⌊media
[...]

Previous Entry

On my computer at work the pdf printer has been broken for a while and today, happily, I found a way to fix it.

Go to System → Administration → Printing and delete the pdf printer.
Create the ~/PDF folder if it does not exists
Run sudo aptitude reinstall cups-pdf to reinstall it.
Add a pdf printer again using [...]

Next Entry

Blogroll