[RESOLVED] fc-cache not listing .pcf or .bdf fonts

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

[RESOLVED] fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 7:42 pm

I have a feeling that the answer to my woes is quite simple, but I haven't had any luck with Google, Arch/BBQ Wiki, Reddit, or man pages.

I am immigrating to BORK! from Hot Dog and realized that for some odd reason, even though 'fc-list | grep Monaco' returns

Code: Select all

/home/drchroot/.fonts/Monaco_Linux.ttf: Monaco:style=Regular
my 'URxvt*font: xft:Monaco:Regular:size=7:antialias=true' line causes any attempt to spawn a new terminal with:

Code: Select all

urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.
Hmm. That was strange. So I decided that I was tired of Monaco anyway, cloned the Tewi repo and tossed both the .pcf and .bdf versions of the fonts in to my .fonts, then gave it a 'fc-cache -f' and 'fc-list' with only Monaco and no Tewi anywhere to be found:

Code: Select all

/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf: DejaVu Serif:style=Bold
/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book
/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold
/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/home/drchroot/.fonts/Monaco_Linux.ttf: Monaco:style=Regular
/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf: DejaVu Serif:style=Book
So, I've had a cup of coffee, went for a jog, meditated on my navel for a bit, and then waved a dead chicken over it (my navel, not my precious Thinkpad) and then tried it again. Nada. Shamefully, I even rebooted the darn thing to see if that worked. Nada x2. What did I screw up in a profound way, and why did the dead chicken thing not work? No rush (actually, you should listen to Rush) and thanks for any advice!
Last edited by Dr_Chroot on Wed Feb 11, 2015 2:40 am, edited 1 time in total.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by GekkoP » Tue Feb 10, 2015 7:51 pm

I usually put pcf fonts in /usr/share/fonts/local and then do this

Code: Select all

sudo fc-cache -fs
sudo mkfontscale /usr/share/fonts/local
sudo mkfontdir /usr/share/fonts/local
Also, I have this in my .xinitrc:

Code: Select all

## xset for custom fonts
xset +fp /usr/share/fonts/local
xset fp rehash

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 8:03 pm

Hmm... tossed Tewi-normal-11.pcf into /usr/share/fonts/local and followed the steps. fc-list still returns the same old list, so I might try to restart X.org and see what gives.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 8:10 pm

Dang. Nothing has changed. Even restarted BORK itself.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by GekkoP » Tue Feb 10, 2015 8:15 pm

Sorry, then. I always do that and it never failed me. I'm out of ideas.

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 8:18 pm

That's fine! Thanks for the help, anywho :D I'll thinker around with it and see what I can conjure up.

Good news is that 'fc-cache -fsv' included

Code: Select all

/usr/share/fonts/local: caching, new cache contents: 18 fonts, 0 dirs
, so at least I know that it is in there and working. I just need to find out why fc-list isn't pulling it up, or why X.org isn't able to find it when I include it in my .Xresources.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by wuxmedia » Tue Feb 10, 2015 8:50 pm

you know I just had that exact thing this morning.
Installed BORK! had the same error, except I put my weird .Xres in
I installed tty-dejavu or something and it worked better.

Tried all of what gekko posted, from googling the error.
working now. not sure what I did right.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 9:22 pm

^ Thou hast given me hope. I am reworking the .Xresources to see what I can come up with...
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 9:42 pm

Would anyone else like to welcome Captain Oblivious and His Orchestra? I forgot to include the ampersand at the end of the xset options in my .Xresources. Oops.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by GekkoP » Tue Feb 10, 2015 9:45 pm

If you fixed it, mark it SOLVED please. Just for future searches' sake.

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 9:50 pm

Whelp, it didn't work. Sorry :/ I might toss Arch on another partition and see if it is something with Debian.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Tue Feb 10, 2015 11:37 pm

Ok, lets see what I can do here. I sifted through some Google searches and decided to give another .ttf a try. I downloaded Envy Code R and extracted the fonts to /usr/share/fonts/local then did the

Code: Select all

fc-cache -fsv
and then had the delightful reply to my 'fc-list | grep Envy' of

Code: Select all

/usr/share/fonts/local/Envy Code R.ttf: Envy Code R:style=Regular
/usr/share/fonts/local/Envy Code R Italic.ttf: Envy Code R:style=Italic
/usr/share/fonts/local/Envy Code R Bold.ttf: Envy Code R:style=Bold


So, just to clarify that I am not out of my mind, is the correct .Xresources syntax to enter this:

Code: Select all

URxvt*font: xft:Envy Code R:Regular:size=8:antialias=true
Because it still doesn't seem to want to work for me -_-
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by dkeg » Wed Feb 11, 2015 2:30 am

alright, first off, check this out. So I generally list my fonts like this

Code: Select all

$ xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*'
$ xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'
or just

Code: Select all

xlsfonts
or for example

Code: Select all

xlsfonts|grep artwiz
I personally have a $HOME/.fonts. But I just grabbed some new fonts and tried Gekko's method. Logged out, came back in (may or may not be necessary), and I can confirm it works. When you place what was suggested in your .xinitrc, you do not need the ampersand at the end. That seriously should work.

Work hard; Complain less

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Wed Feb 11, 2015 2:36 am

THAT WORKED!
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Wed Feb 11, 2015 2:37 am

xlsfonts... That'll be my first tattoo. Thanks for that.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Wed Feb 11, 2015 2:38 am

Jeez, I'm happy. Thanks, dkeg! (Thanks everyone, for that matter!)
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: fc-cache not listing .pcf or .bdf fonts

Unread post by Dr_Chroot » Wed Feb 11, 2015 2:39 am

http://youtu.be/eBa2Mm-nP50 <--- me right now. And it isn't even Christmas...
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: [RESOLVED] fc-cache not listing .pcf or .bdf fonts

Unread post by dkeg » Wed Feb 11, 2015 2:54 am

Yeah man, happy to help.

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: [RESOLVED] fc-cache not listing .pcf or .bdf fonts

Unread post by wuxmedia » Wed Feb 11, 2015 9:14 am

good stuff, never quite got to understand fonts on any system I've used.
"Seek, and Ye shall find"
"Github | Chooons | Site"

Post Reply