You are not logged in.

#1 2009-11-18 01:01:38

thursdayknights
Member
Registered: 2007-08-25
Posts: 28

inconsolata font glitch [SOLVED]

I installed the ttf-inconsolata package. The font works in Leafpad fine, but when I try to set dwm's font to it, it doesn't work. I tried opening up xfontsel and it was there, but no characters showed in the space where they normally would, and also the drop down menus left a mark when I closed them. What's going on?

Here's a screenshot:
http://img194.imageshack.us/img194/5002/sshotx.png

Last edited by thursdayknights (2009-11-18 04:52:13)

Offline

#2 2009-11-18 01:33:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: inconsolata font glitch [SOLVED]

Have you added /usr/share/fonts/local to your xorg.conf?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2009-11-18 01:49:44

thursdayknights
Member
Registered: 2007-08-25
Posts: 28

Re: inconsolata font glitch [SOLVED]

Yeah.

Offline

#4 2009-11-18 03:15:58

pseup
Member
Registered: 2008-06-06
Posts: 103

Re: inconsolata font glitch [SOLVED]

Inconsolata doesn't even get installed to .../fonts/local.

However, I just tried it here with the same result. Other TTF fonts display fine so I assume its an issue with the font itself.

Offline

#5 2009-11-18 03:20:35

sr
Member
Registered: 2009-10-12
Posts: 51

Re: inconsolata font glitch [SOLVED]

does "fc-list | grep -i inconsolata" list the font for you?

Offline

#6 2009-11-18 03:32:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: inconsolata font glitch [SOLVED]

pseup wrote:

Inconsolata doesn't even get installed to .../fonts/local.

My bad: it gets installed to /usr/share/fonts/TTF

Section "Files"
   FontPath     "/usr/share/fonts/TTF"
   FontPath     "/usr/share/fonts/local"
EndSection

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2009-11-18 03:49:26

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: inconsolata font glitch [SOLVED]

Odd...I use inconsolata just fine with dwm (status bar -- with the xft patch, and urxvt). Just to be clear, when you say you're setting dwm's font to inconsolata, are you talking about the status bar, or terminal font or??? Because the dwm status bar won't work with Inconsolata unless you patch dwm for xft support. If you're just using it as a terminal font, that should be WM agnostic.

My configs here if they help at all. On my system, it's installed to /usr/share/fonts/TTF/ttf-inconsolata.otf And fc-list|grep -i inconsolata shows: Inconsolata:style=Medium. You could try reinstalling the font if you haven't already, maybe from a different mirror?

Ah yes, and I remember now -- xfontsel doesn't work with inconsolata. I don't know why, but it causes some funky behaviors with that program! So, you probably have the font installed correctly, and are just seeing that glitch.

Good luck!
Scott

Offline

#8 2009-11-18 04:52:02

thursdayknights
Member
Registered: 2007-08-25
Posts: 28

Re: inconsolata font glitch [SOLVED]

firecat53 wrote:

Odd...I use inconsolata just fine with dwm (status bar -- with the xft patch, and urxvt). Just to be clear, when you say you're setting dwm's font to inconsolata, are you talking about the status bar, or terminal font or??? Because the dwm status bar won't work with Inconsolata unless you patch dwm for xft support. If you're just using it as a terminal font, that should be WM agnostic.

My configs here if they help at all. On my system, it's installed to /usr/share/fonts/TTF/ttf-inconsolata.otf And fc-list|grep -i inconsolata shows: Inconsolata:style=Medium. You could try reinstalling the font if you haven't already, maybe from a different mirror?

Ah yes, and I remember now -- xfontsel doesn't work with inconsolata. I don't know why, but it causes some funky behaviors with that program! So, you probably have the font installed correctly, and are just seeing that glitch.

Good luck!
Scott

Thanks! I just didn't have the xft patch for dwm.

Offline

#9 2009-11-24 09:27:43

muchzill4
Member
From: Poland
Registered: 2009-03-30
Posts: 30

Re: inconsolata font glitch [SOLVED]

Can you please tell what lines exactly are to be patched? Cause, although it seems quite logic what to replace - I don't wanna mess with dwm.c too much and die trying to get  the patch working.

Offline

#10 2009-11-24 15:41:42

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: inconsolata font glitch [SOLVED]

@muchzill4 - my configs are here if you want to have a look at my dwm files. You'll have to look at the original patch and find the changed lines, 'cause I have several patches all in the same diff file. Also, if you're worried about borking your dwm.c, just put the source files in a git repo and commit as you go, so you can restore if you 'bork' it up smile

Good luck!
Scott

Offline

Board footer

Powered by FluxBB