You are not logged in.
Hi all,
I have dwm configured with statuscolors and pertag, but changing the font to lime doesn't work. It keeps falling back on the "fixed" font.
For the font line in config.h, I've tried:
static const char font[] = "-artwiz-lime-medium-r-normal--10-110-75-75-m-50-ISO8859-1";
and
static const char font[] = "-*-lime-*-*-*--*-*-*-*-*-*-*-*";
I've redirected stderr from dwm, and it always outputs something to this effect:
dwm: missing fontset: ISO10646-1
dwm: missing fontset: JISX0201.1976-0
dwm: missing fontset: GB2312.1980-0
dwm: missing fontset: KSC5601.1987-0
dwm: missing fontset: JISX0208.1983-0
dwm: missing fontset: ISO8859-15
dwm: missing fontset: ISO8859-14
dwm: missing fontset: ISO8859-13
dwm: missing fontset: ISO8859-9
dwm: missing fontset: ISO8859-7
dwm: missing fontset: KOI8-R
dwm: missing fontset: ISO8859-5
dwm: missing fontset: ISO8859-4
dwm: missing fontset: ISO8859-3
dwm: missing fontset: ISO8859-2
dwm: missing fontset: ISO8859-1
dwm: missing fontset: ISO8859-1
I installed the font by copying it (the pcf) into /usr/share/fonts/artwiz and running fc-cache -vf. I also added to my .xinitrc the following lines:
xset +fp /usr/share/fonts/artwiz
xset fp rehash
Nothing seems to be working, as it keeps falling back on "fixed".
Could anyone help me?
Thanks
-scen
Last edited by uberness132 (2011-12-06 06:04:37)
Offline
static const char font[] = "-artwiz-lime-medium-r-normal--10-110-75-75-m-50-ISO8859-1";
static const char font[] = "-*-lime-*-*-*--*-*-*-*-*-*-*-*";
The first of these lines is wrong (too may fields and there should be an asterisk in any empty fields).
I don't know about the second, but are you sure that is the correct font name.
The easiest way to generate a correct string is to use xfontsel.
Last edited by jasonwryan (2011-12-06 04:51:29)
Offline
I used gbdfed to get the font string.
Anyways, xfontsel can't find the font (?). It doesn't give me the option for it.
Offline
Anyways, xfontsel can't find the font (?). It doesn't give me the option for it.
gdbfed is not generating a correct string.
If xfontsel can't find it, it won't be rendered...
Do you have an xorg.conf? With FontPath pointing to /usr/share/fonts/artwiz?
Offline
Nope, I don't use Xorg.conf.
Shouldn't xset +fp /usr/share/fonts/artwiz do the same thing? Correct me if I'm wrong.
Offline
I just installed them via pacman. They were installed to /usr/share/fonts/artwiz-fonts.
Adding that path and rehashing the font cache worked. The string is:
-*-lime-medium-r-*-*-*-110-*-*-*-*-iso8859-*
# edit: works fine in dwm -- but, man, is that one small font...
Last edited by jasonwryan (2011-12-06 05:57:07)
Offline
Thank you! That font string worked.
Also, I feel stupid for not running mkfontdir inside /usr/share/fonts/artwiz.
(xset +fp /usr/share/fonts/artwiz was failing because of so).
Edit: How do I mark this as solved?
Last edited by uberness132 (2011-12-06 06:02:06)
Offline
No problem. Please mark your thread as [Solved].
Offline