Read more

How to set the default monospace font on Xfce (Xubuntu)

Arne Hartherz
November 13, 2012Software engineer at makandra GmbH

While you can set your own font in your terminal or other tools, it will not change the default "Monospace" font that some applications use.

Illustration money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
Read more Show archive.org snapshot

To change that, edit ~/.fonts.conf Show archive.org snapshot and add settings for the "monospace" family. Here is how it looks on my machine now:

<fontconfig>
  <match target="pattern">
    <test qual="any" name="family">
      <string>monospace</string>
    </test>
    <edit name="family" mode="assign">
      <string>DejaVu Sans Mono</string>
    </edit>
  </match>
</fontconfig>

Fill in "DejaVu Sans Mono" with your preferred font's name.

Posted by Arne Hartherz to makandra dev (2012-11-13 17:57)