You are not logged in.

#1 2011-12-06 04:19:14

uberness132
Member
Registered: 2011-12-06
Posts: 4

[Solved] Using Artwiz lime with DWM

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

#2 2011-12-06 04:51:11

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

Re: [Solved] Using Artwiz lime with DWM

uberness132 wrote:
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)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-12-06 04:55:41

uberness132
Member
Registered: 2011-12-06
Posts: 4

Re: [Solved] Using Artwiz lime with DWM

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

#4 2011-12-06 05:35:07

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

Re: [Solved] Using Artwiz lime with DWM

uberness132 wrote:

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?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-12-06 05:39:27

uberness132
Member
Registered: 2011-12-06
Posts: 4

Re: [Solved] Using Artwiz lime with DWM

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

#6 2011-12-06 05:54:38

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

Re: [Solved] Using Artwiz lime with DWM

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)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2011-12-06 06:01:30

uberness132
Member
Registered: 2011-12-06
Posts: 4

Re: [Solved] Using Artwiz lime with DWM

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

#8 2011-12-06 06:02:40

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

Re: [Solved] Using Artwiz lime with DWM

No problem. Please mark your thread as [Solved].


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB