Enable Bitmap Fonts on Ubuntu Jaunty

I like to use tiny bitmap fonts like MonteCarlo for programming, but by default Ubuntu has bitmap font support turned off.  From (at least) Gutsy through to Intrepid, this method worked for enabling bitmap font support, but after installing the Jaunty beta I found this no longer works.

Luckily, after a brief look in /etc/fonts, I found that font configuration now follows the nice pattern of a conf.avail directory containing all the available configuration parts, and conf.d containing symlinks to these parts.  This makes enabling bitmap fonts even simpler now:

# "Un-disable" bitmap fonts
sudo rm /etc/fonts/conf.d/70-no-bitmaps.conf
# Clear the font cache
sudo fc-cache -f -v

Now you should be able to drop bitmap (i.e. PCF) fonts into ~/.fonts as you would with TTF fonts and be able to use them with no extra hassle.

Update: Andreas asked in the comments if there was a way to do this that doesn’t require root access. In fact there is! If you copy /etc/fonts/conf.avail/70-force-bitmaps.conf to ~/.fonts.conf then it has the same effect. (If you already have a ~/.fonts.conf then you’ll want to merge them together – copy everything inside <fontconfig>...</fontconfig> from 70-force-bitmaps.conf and put it just before </fontconfig> in ~/.fonts.conf)

  • Mikee

    Thank you, this worked perfectly! :)

  • Mikee

    Thank you, this worked perfectly! :)

  • Thomas Mittelstaedt

    Thanks, man. I started to get nervous at this upgrade from intrepid to jaunty!!

  • Thomas Mittelstaedt

    Thanks, man. I started to get nervous at this upgrade from intrepid to jaunty!!

  • Brad

    THANK YOU! I can get my MiscFixed back in Jaunty now! ^_^ My terminal felt so strange without it…

  • Brad

    THANK YOU! I can get my MiscFixed back in Jaunty now! ^_^ My terminal felt so strange without it…

  • Happy

    Works perfect on Ubuntu 9.04, thank you very much!!! You’re great! I was looking for this for hours…

  • Happy

    Works perfect on Ubuntu 9.04, thank you very much!!! You’re great! I was looking for this for hours…

  • brandon

    Much thanks!! I can’t breathe without my Dina bitmap font…

  • brandon

    Much thanks!! I can’t breathe without my Dina bitmap font…

  • Pingback: crankycoder.com » Links for October 5th

  • Pingback: Using Bitmap fonts in Ubuntu | edward's few and rare thoughts

  • falen

    Man…I still can’t believe how easy it was. I spent hours yesterday looking for a solution on how to install that damn fonts and all it took was removing one file. Your solution puts all those so called HOW TOs to shame. Cheers, buddy.

  • falen

    Man…I still can’t believe how easy it was. I spent hours yesterday looking for a solution on how to install that damn fonts and all it took was removing one file. Your solution puts all those so called HOW TOs to shame. Cheers, buddy.

  • Andreas L.

    This is of course just fine on self-administered systems.

    I’m just curious whether there’d also be a way for users to enable bitmap-fonts (for their X11-clients) without root privileges.

  • Andreas L.

    This is of course just fine on self-administered systems.

    I’m just curious whether there’d also be a way for users to enable bitmap-fonts (for their X11-clients) without root privileges.

  • Asafyat

    works for Ubuntu 11.04