Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Today I did a fresh install of ubuntu 10.04. In my .Xdefaults file there are following lines:

urxvt*font:     -adobe-courier-medium-r-normal--24-240-75-75-m-150-iso8859-1
urxvt*boldFont: -adobe-courier-bold-r-normal--24-240-*-*-*-*-iso8859-1

Now urxvt only starts if I comment out those lines. I think the reason is that the adobe-courier font seems to be not installed as

xlsfonts|grep adobe|grep courier
-bitstream-courier 10 pitch-bold-i-normal--0-0-0-0-m-0-adobe-standard
-bitstream-courier 10 pitch-bold-r-normal--0-0-0-0-m-0-adobe-standard
-bitstream-courier 10 pitch-medium-i-normal--0-0-0-0-m-0-adobe-standard
-bitstream-courier 10 pitch-medium-r-normal--0-0-0-0-m-0-adobe-standard

shows. xfont-base, xfont-100dpi and xfont-75dpi are installed.

Now my question is, how to find out which package contains the desired font.

share|improve this question
    
You could try to search for the font name in package descriptions or in package contents. You can search for this at packages.ubuntu.com –  N.N. Jul 22 '11 at 11:05
    
Thanks, but I had no success –  student Jul 22 '11 at 11:09
add comment

2 Answers

up vote 3 down vote accepted

If you have a file on your system that belongs to the package whose name you don't know, you can figure out the pkg name with:

dpkg -S <file>

Most font files are in /usr/share/fonts/.

In there, I (natty) find /usr/share/fonts/X11/100dpi and other directories.

In 100dpi I find many files, including helvR24.pcf.gz.

So I use dpkg -S on that:

$ dpkg -S /usr/share/fonts/X11/100dpi/helvR24.pcf.gz
xfonts-100dpi: /usr/share/fonts/X11/100dpi/helvR24.pcf.gz
$ 

The pkg is listed first: xfonts-100dpi

share|improve this answer
add comment

Packages:

xfonts-100dpi

xfonts-75dpi

(ISO 10646-1 en ISO 8859-1 fonts in 75 and 100 dots per inch)

Directory font-adobe-75dpi holds, amongst others:

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

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.