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:

<?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>

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

Monaco after fix

7 Responses

  1. Handzo December 1, 2013 / 16:51

    Thanks, that works perfect!

  2. winuser May 3, 2014 / 15:26

    Hell yeah, that worked for me too (Fedora 20 MATE), thanks !

  3. 当店は信頼できるルイヴィトンスーパーコピー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

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

  5. Sagar May 18, 2016 / 10:18

    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.

  6. Rosie May 18, 2016 / 11:20

    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 !

  7. william2789 August 2, 2016 / 9:02

    amazing, Thanks for sharing.
    checkout this amazing free HD movie streaming app.
    http://terrarium-tv.com/

Leave a Reply

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