Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 8757  / 2 Years ago, thu, december 9, 2021, 1:50:35

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.


More From » fonts

 Answers
1

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


[#44148] Thursday, December 9, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peratingcit

Total Points: 253
Total Questions: 122
Total Answers: 94

Location: Botswana
Member since Sat, Jan 7, 2023
1 Year ago
;