installing pcf fonts in X

January 7, 2010

as I keep forgetting, here is how to install pcf fonts in X

  1. create a new directory for the fonts, usually under /usr/share/fonts:
    $> mkdir /usr/share/fonts/
  2. copy the pcf file(s) into it (sometimes the pcf files are gzipped):
    $> cp /path/to/pcf/*.pcf* /usr/share/fonts/
  3. run mkfontdir, to create a fonts.dir file, used by X to find font files
    $> mkfontdir /usr/share/fonts/
  4. add the new dir to X font path. The easiest way to do it is to stick this line in your .xinitrc:
    xset fp+ /usr/share/fonts/

now your new font should compare in xfontsel and you should be able to use it as normal.

by the way, this is a very nice font for programming!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: