How to fix ugly fonts in Qt-based applications

I was using Qt Creator and tried to change the editor’s font to Monaco, 9. But hey, Monaco is not that ugly:

Monaco before fix

So I googled a way to fix for this problem, and found the fix at Arch Linux forums. You’ll need to create a file called .fonts.conf in your home directory with this content:

[sourcecode language=”xml”]
<?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>hintslight</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>
[/sourcecode]

I closed Qt Creator and reopened it. The result was this:

Monaco after fix

19 thoughts on “How to fix ugly fonts in Qt-based applications”

  1. 当店は信頼できるルイヴィトンスーパーコピーN級品販売店。100%実物写真ですし、品質が完璧です。高品質ルイヴィトンコピー,安全税関対策+素早い配送+随時の在庫補給+丁寧な対応+スーパーコピー販売業界最低価格に挑戦!ルイヴィトンスーパーコピー http://www.gginza.com/%E6%99%82%E8%A8%88/%E3%83%AD%E3%83%AC%E3%83%83%E3%82%AF%E3%82%B9/daytona/04e74ce5ed154d2e.html

  2. 当店は信頼できるルイヴィトンスーパーコピーN級品販売店。100%実物写真ですし、品質が完璧です。高品質ルイヴィトンコピー,安全税関対策+素早い配送+随時の在庫補給+丁寧な対応+スーパーコピー販売業界最低価格に挑戦!ルイヴィトンスーパーコピー http://www.wtobrand.com/prada-bag1.html

  3. Out of 32 NFL teams, there are currently 5 black head coaches.2 of them are in conference champonship games.And you still have goobers bitchin about the &qoou;Rtoney Rule" and Affirmative Action.Lawd.

  4. Je me demande si les stats tiennent compte du 2ème prénom : mohammed martin Ben Ali ou alors Oliver Ben Mohammed Taylor !héhé les pauvres bébés à peine nés et déjà stigmatisés – à tous les futurs parents – choisissez des prénoms originaux un peu – parce que ni Oliver Twist ni Mohammed d’Arabie n’a eu d&crfuo;enqanse joyeuse !

  5. I see the article on your web very good and interesting ,, do not forget visit also my web botim app download – http://botimapp.download. You can get info on the new Video & Voice Call Application, Chat and calls are encrypted and not blocked.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.