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”;



firefox sans screenshot

Firefox with Sans Font - Looks Ugly


firefox deja vu font bug fixed

Firefox with Deja Vu Font Working - Looks Good

I love this font 🙂

For storyline please read this :

Posted on Aug 11, 2008
Written byAbhinay Omkar

4 thoughts on “Deja Vu Sans Condensed is working in Firefox”

  1. ak says:

    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…

  2. Damym says:

    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 😉

  3. alex says:

    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;


  4. keramida says:

    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

Leave a Reply

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