Funny font story

Forum rules
We believe in Hello and Thank You.
User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Funny font story

Unread post by dkeg » Thu May 07, 2015 3:07 am

Well wasn't funny really til I figured it out. Happened while setting up the different outputs explained below for a scrot. I happened to notice something I have been overlooking.

Since I wrote all this up, first in support, I figured why not still post, but elsewhere. Let's keep the timeline intact.
Hi all.
fontA = font in question

So today, out of nowhere, I lost my font! I switched from fontA to fontB. No reason other than for the sake of changing it. At some point in the next little bit, I went to switch back. Merged xresources, attempted to open a new terminal, and nothing. Switched to tty1 to see the error which was the typical

Code: Select all

urxvt unable to load base fontset .... blah". WFT
So checked

Code: Select all

xlsfonts|grep fontA
and it was there. So even though nothing happened in between the font changing, no upgrade, nothing new, no other issues, I double checked syntax.

Then I took the same font string from xresource file to append to with -fn

Code: Select all

urxvt -fn fontA
And that works. Also is everything else works fine, such as notifications, dmenu, and lemonbar which is getting the font from xresouces. Essentially, it works everywhere except in urxvt unless I specify in -fn.

Even

Code: Select all

xrdb -query all
as expected, provides fontA.

Did the font.pcf get corrupted somehow? I replaced it with the same from my github, and still the same.

Reminder, this font was working like minutes before and still does everywhere its used automatically, and manually in urxvt.

Even blew away the whole directory and recreated, still nothing.

Also did a

Code: Select all

sudo apt-get install --reinstall rxvt-unicode-256color
Yeah, I'm baffled too.

I've done everything I know to do with fc-cache, xset +fp, blah, blah, blah.

So in the meantime I have changed my config.h for 2bwm to

Code: Select all

"urxvt", "-fn", "fontA" ...
and that of course works fine. Very strange indeed.

Not even sure what else could be tried. But i thought I'd throw it out there, if nothing else, but for an interesting topic.
Back to the present.

This is the font as should be

Code: Select all

-spectrum-berry-medium-r-normal-sans-11-80-75-75-m-50-iso10646-1
Okay, so what I was missing was

Code: Select all

>  xrdb -query all|grep font
*font: -spectrum-berry-medium-r-normal-sans-11-80-75-75-#796a70-50-iso10646-1
Notice anything??

And in my included colorfile, as I use the define method, In making a change I made mag just m, so as to not get sourced. So I had

Code: Select all

#define m #796a70
isn't that a fuckme in the hole miss. I thought you all would get a kick out of that.

Work hard; Complain less

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Funny font story

Unread post by machinebacon » Thu May 07, 2015 3:55 am

m got replaced with #colorcode, not bad :D
..gnutella..

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

Re: Funny font story

Unread post by wuxmedia » Thu May 07, 2015 8:21 am

Nice.
funny how some of these stories one can't really shared outside of certain circles.
"Hey honey, you'll never guess what I just did..."
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Funny font story

Unread post by machinebacon » Thu May 07, 2015 8:30 am

^ Hahaha, yes!

The thing with pasting shit into the wrong files happened to me quite often when using middle-mouse insert in an X session with some terminal editor. Note to self: cursor is not cursor.
..gnutella..

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

Re: Funny font story

Unread post by dkeg » Thu May 07, 2015 12:27 pm

True. Definitely a highlight of the lowlights.

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: Funny font story

Unread post by Dr_Chroot » Thu May 07, 2015 6:50 pm

Ah yes, my life from 14 til now is primarily a timeline of "oops/foot-in-mouth/that-was-dumb-of-me" moments. Like when I copy/pasted xft settings from the ArchWiki to my... xinitrc. Or when I accidentally deleted my .private directory on my encfs ecrypted home partition on BORK? That was stupid. And that was on Monday. Life is grand. Thankfully I rsynced all of my ~/audio and ~/videos to my USB on Friday, so I didn't loose too much, sans my dignity.
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: Funny font story

Unread post by dkeg » Thu May 07, 2015 10:16 pm

Fuck ups are more fun with friends.

Work hard; Complain less

Post Reply