Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am annoyed by Courier New on different web sites (most notably, GitHub) and would like to replace it with another font (say, Liberation Mono). I would like the solution to work in all browsers (so not to be browser specific), and I wouldn't like to uninstall all MS core fonts (I like the others).

Any ideas?

share|improve this question

I managed to do it following this article:

Just created ~/.fonts.conf with following contents:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

  <!-- Replace Courier with a better-looking font -->
  <match target="pattern" name="family">
    <test name="family" qual="any"><string>Courier New</string></test>
    <edit name="family" mode="assign">
      <string>Liberation Mono</string>

and didn't even had to log out in order to make effective, just restarted Chromium.

share|improve this answer
I had to replace mode="assign" with mode="assign" binding="same" when attempting do this with Firefox – daithib8 May 24 '11 at 18:29

Your GNOME font settings are in System -> Preferences -> Appearance -> Fonts. There you can set which default fonts you want to use for different things (Application font is the only one I've found to affect web sites). The changes are immediate, but don't work on GitHub (probably because they have specified a font rather than leaving it to the system).

To override web site fonts, I don't think there's any setting to override for all browsers - You'll have to configure per browser, for example Edit -> Preferences -> Content -> Fonts & Colors -> Advanced -> Allow ... for Firefox.

share|improve this answer

How about installing only required fonts from MS core fonts i.e downloading each fonts and configuring each browsers to your priority fonts ?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.