Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dwm statusbar font (xfontsel?) woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
slag
n00b
n00b


Joined: 17 Feb 2005
Posts: 30

PostPosted: Mon Mar 10, 2014 3:30 am    Post subject: [SOLVED] dwm statusbar font (xfontsel?) woes Reply with quote

Can't get the dwm statusbar to display any font other than the default. If I modify savedconfig to set the font to terminus, dmenu uses the specified font but dwm statusbar does not...

I only have one locale configured, en_US.UTF8. I've tried all sorts of USE flags for the whole environment, here's what I have currently:

/etc/portage/make.conf USE flags:

USE="bindist mmx sse sse2 X unicode nls cjk xft -kde -gnome -gtk -gtk2 -qt3support -qt4 -qt5"


/etc/portage/savedconfig/x11-wm/dwm-6.0 - recent font[] values:

/* static const char font[]            = "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*"; */
static const char font[]            = "Terminus:pixelsize=12";


/var/log/Xorg.0.log shows no errors related to fonts.

xfontsel shows only fixed-medium-semicondensed variants.
fc-list shows terminus and dejavu.
xlsfonts shows a restricted selection.

fc-list:

/usr/share/fonts/terminus/ter-118n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf: DejaVu Serif:style=Bold
/usr/share/fonts/dejavu/DejaVuSerif-Italic.ttf: DejaVu Serif:style=Italic
/usr/share/fonts/terminus/ter-128n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-120n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-112n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-x18n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-132n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-x28n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-x12b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-122n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/dejavu/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
/usr/share/fonts/terminus/ter-x20n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
/usr/share/fonts/terminus/ter-x12n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
/usr/share/fonts/terminus/ter-x32b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/terminus/ter-x22b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-x32n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-x22n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-x18b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/usr/share/fonts/terminus/ter-112b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-x28b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-x20b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-x16b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-132b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-122b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book
/usr/share/fonts/terminus/ter-118b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-x14b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-128b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-120b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-116b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-x24b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/dejavu/DejaVuSerifCondensed-BoldItalic.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold Italic,Bold Italic
/usr/share/fonts/dejavu/DejaVuSerifCondensed-Bold.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold,Bold
/usr/share/fonts/terminus/ter-114b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/terminus/ter-124b.pcf.gz: Terminus:style=Bold
/usr/share/fonts/dejavu/DejaVuSerif.ttf: DejaVu Serif:style=Book
/usr/share/fonts/dejavu/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold
/usr/share/fonts/dejavu/DejaVuSerifCondensed.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed,Book
/usr/share/fonts/dejavu/DejaVuSerifCondensed-Italic.ttf: DejaVu Serif,DejaVu Serif Condensed:style=Condensed Italic,Italic
/usr/share/fonts/terminus/ter-114n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-124n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/dejavu/DejaVuSansCondensed.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
/usr/share/fonts/dejavu/DejaVuSerif-BoldItalic.ttf: DejaVu Serif:style=Bold Italic
/usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf: DejaVu Sans,DejaVu Sans Light:style=ExtraLight
/usr/share/fonts/terminus/ter-116n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/terminus/ter-x14n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf: DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
/usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf: DejaVu Sans:style=Oblique
/usr/share/fonts/terminus/ter-x24n.pcf.gz: Terminus:style=Regular
/usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf: DejaVu Sans:style=Bold Oblique
/usr/share/fonts/terminus/ter-x16n.pcf.gz: Terminus:style=Regular


xlsfonts:

-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed


Last edited by slag on Mon Mar 10, 2014 11:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Mon Mar 10, 2014 1:28 pm    Post subject: Reply with quote

Create /etc/X11/xorg.conf.d/15-fonts.conf. Put inside:
Code:
Section "Files"
FontPath "/usr/share/fonts/terminus"
EndSection

Go to /usr/share/fonts/terminus and run
Code:
mkfontdir
mkfontscale


In dwm config use this format to set font (you can use xfontsel to adjust settings):
Quote:
static const char font[] = "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*";
Back to top
View user's profile Send private message
slag
n00b
n00b


Joined: 17 Feb 2005
Posts: 30

PostPosted: Mon Mar 10, 2014 11:36 pm    Post subject: Reply with quote

Thank you Tractor Girl! I've been futzing with this for a long time, but your instructions worked perfectly. xfontsel shows terminus options now and recompiling dwm with the X format fontconfig string works perfectly.
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Tue Mar 11, 2014 12:15 am    Post subject: Reply with quote

Yeah I had a hard time with this one too :wink:
But all credits go to v_andal
BTW there's also a patch which allows to use fontconfig with dwm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum