Deja Vu Sans Condensed is working in Firefox

It was too annoying that i was not getting Deja Vu Sans Condensed font for firefox itself, whereas this font is working with other applications in Gnome. I was getting Sans font instead in Firefox. After gooooogling (too long) i got a workaround for this.

Just add this lines to userChrome.css (create a new file if it is not there), create this file in ~/.mozilla/firefox/(profile)/chrome folder.

* {

font-family: “Deja Vu Sans Condensed”;

}

Before:

firefox sans screenshot

Firefox with Sans Font - Looks Ugly

After:

firefox deja vu font bug fixed

Firefox with Deja Vu Font Working - Looks Good

I love this font 🙂

For storyline please read this : http://www.jasonlefkowitz.net/blog1archive/2007/02/howto_pretty_up.html

Posted on Aug 11, 2008
Written byAbhinay Omkar
  • ak

    Sweeet! Works like a charm. Now my Firefox isn’t out of place anymore.

    If only we can fix OOo to use DejaVu Sans Condensed…

  • Hi,
    I solved it moving DejaVuSans.ttf and DejaVuSans-*.ttf in a directory that isn’t scanned by fc-cache. Now it works! But I think your workaround is better.
    Bye from Italy… and sorry for my english 😉

  • For some reason, this stopped working for me after updating to Firefox 3.5.4. I fixed it simply by adding “sans-serif” afterwards:

    * {
    font-family: “Deja Vu Sans Condensed”, sans-serif;
    }

    cheers

  • I prefer the condensed version of the DejaVu fonts too. So I started reading about fontconfig this morning, and I installed a local “hack” that transparently converts all references to “DejaVu Sans” to “DejaVu Sans Condensed”, and all references to “DejaVu Serif” to “DejaVu Serif Condensed”.

    It seems to work nicely so far. If you feel like trying it, the fontconfig tweaks are described at the post I uploaded today at http://keramida.wordpress.com/2009/11/07/dejavu-condensed-as-default/