You are not logged in.

#1 2013-12-20 14:57:01

senft
Member
Registered: 2012-02-13
Posts: 13

dzen2 can't find specific font

Hey,
I installed the font termsyn from AUR. Since it is installed to /usr/share/fonts/local, I did a

xset +fp /usr/share/fonts/local
xset fp rehash

But (also after restarting) I cannot use the font in dzen2 (dzen2-git from AUR). I can however use it in urxvt with this in in .Xdefaults:

URxvt.font: -*-termsyn-medium-r-*-*-13-*-*-*-*-*-*-* 

I try it with something like this:

echo 'hello word' | dzen2 -p -fn "termsyn"
echo 'hello word' | dzen2 -p -fn "-*-termsyn-medium-r-*-*-13-*-*-*-*-*-*-*"

but it just uses some default font.

Some tools find it, but some others dont:

~ % xlsfonts | grep termsyn
-misc-termsyn-bold-r-normal--0-0-100-100-c-0-iso8859-1
-misc-termsyn-bold-r-normal--0-0-100-100-c-0-iso8859-2
-misc-termsyn-bold-r-normal--0-0-75-75-c-0-iso8859-1
-misc-termsyn-bold-r-normal--0-0-75-75-c-0-iso8859-2
-misc-termsyn-bold-r-normal--11-79-100-100-c-60-iso8859-1
-misc-termsyn-bold-r-normal--11-79-100-100-c-60-iso8859-2
-misc-termsyn-bold-r-normal--12-87-100-100-c-70-iso8859-1
-misc-termsyn-bold-r-normal--12-87-100-100-c-70-iso8859-2
-misc-termsyn-bold-r-normal--13-120-75-75-c-60-iso8859-1
-misc-termsyn-bold-r-normal--13-120-75-75-c-60-iso8859-2
-misc-termsyn-bold-r-normal--14-101-100-100-c-70-iso8859-1
-misc-termsyn-bold-r-normal--14-101-100-100-c-70-iso8859-2
-misc-termsyn-medium-r-normal--0-0-100-100-c-0-iso8859-1
-misc-termsyn-medium-r-normal--0-0-100-100-c-0-iso8859-2
-misc-termsyn-medium-r-normal--0-0-75-75-c-0-iso8859-1
-misc-termsyn-medium-r-normal--0-0-75-75-c-0-iso8859-2
-misc-termsyn-medium-r-normal--11-79-100-100-c-60-iso8859-1
-misc-termsyn-medium-r-normal--11-79-100-100-c-60-iso8859-2
-misc-termsyn-medium-r-normal--12-87-100-100-c-70-iso8859-1
-misc-termsyn-medium-r-normal--12-87-100-100-c-70-iso8859-2
-misc-termsyn-medium-r-normal--13-120-75-75-c-60-iso8859-1
-misc-termsyn-medium-r-normal--13-120-75-75-c-60-iso8859-2
-misc-termsyn-medium-r-normal--14-101-100-100-c-70-iso8859-1
-misc-termsyn-medium-r-normal--14-101-100-100-c-70-iso8859-2
-misc-termsyn.icons-bold-r-normal--0-0-100-100-c-0-iso8859-1
-misc-termsyn.icons-bold-r-normal--0-0-75-75-c-0-iso8859-1
-misc-termsyn.icons-bold-r-normal--11-79-100-100-c-60-iso8859-1
-misc-termsyn.icons-bold-r-normal--12-87-100-100-c-70-iso8859-1
-misc-termsyn.icons-bold-r-normal--13-120-75-75-c-60-iso8859-1
-misc-termsyn.icons-bold-r-normal--14-101-100-100-c-70-iso8859-1
-misc-termsyn.icons-medium-r-normal--0-0-100-100-c-0-iso8859-1
-misc-termsyn.icons-medium-r-normal--0-0-75-75-c-0-iso8859-1
-misc-termsyn.icons-medium-r-normal--11-79-100-100-c-60-iso8859-1
-misc-termsyn.icons-medium-r-normal--12-87-100-100-c-70-iso8859-1
-misc-termsyn.icons-medium-r-normal--13-120-75-75-c-60-iso8859-1
-misc-termsyn.icons-medium-r-normal--14-101-100-100-c-70-iso8859-1
-misc-termsynu-bold-r-normal--0-0-100-100-c-0-iso10646-1
-misc-termsynu-bold-r-normal--0-0-75-75-c-0-iso10646-1
-misc-termsynu-bold-r-normal--11-79-100-100-c-60-iso10646-1
-misc-termsynu-bold-r-normal--12-87-100-100-c-70-iso10646-1
-misc-termsynu-bold-r-normal--13-120-75-75-c-60-iso10646-1
-misc-termsynu-bold-r-normal--14-101-100-100-c-70-iso10646-1
-misc-termsynu-medium-r-normal--0-0-100-100-c-0-iso10646-1
-misc-termsynu-medium-r-normal--0-0-75-75-c-0-iso10646-1
-misc-termsynu-medium-r-normal--11-79-100-100-c-60-iso10646-1
-misc-termsynu-medium-r-normal--12-87-100-100-c-70-iso10646-1
-misc-termsynu-medium-r-normal--13-120-75-75-c-60-iso10646-1
-misc-termsynu-medium-r-normal--14-101-100-100-c-70-iso10646-1
~ % fc-list | grep termsyn
~ % 
~ % xset q
[...]
Font Path:
  /usr/share/fonts/local,/usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,built-ins

The strangest thing is I did the same thing on a similar machine and everything worked ootb there.
I have absolutely no idea how to tackle this problem.

Best, senft

Last edited by senft (2013-12-20 16:37:46)

Offline

#2 2013-12-20 17:56:04

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: dzen2 can't find specific font

i just installed termsyn to see, and can't reproduce the problem.
i use dzen2 git version 0.9.5git-1.
i have noticed that dzen2 sometimes likes to have the exact font string, e.g.
-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1
instead of
-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*

Offline

#3 2013-12-20 19:13:16

senft
Member
Registered: 2012-02-13
Posts: 13

Re: dzen2 can't find specific font

Yeah, I cannot reproduce this on another machine neither. It just happens on my laptop.
I was hoping someone could point me in some direction to "debug" this...
And I also tried it with -misc-termsyn-medium-r-normal--12-87-100-100-c-70-iso8859-1

Last edited by senft (2013-12-20 19:28:51)

Offline

#4 2013-12-20 22:36:51

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: dzen2 can't find specific font

there's like 10 different dzen2 versions inthe aur - you could just try them 1 by 1, maybe get a hit?

Offline

#5 2013-12-21 09:37:46

senft
Member
Registered: 2012-02-13
Posts: 13

Re: dzen2 can't find specific font

I've tried them all. None works with termsyn on this machine. I also don't think dzen2 is the problem here. When I install for example terminus-font (which is also installed to /usr/share/fonts/local) I can use terminus with dzen2. `fc-list` and `xlsfonts`recognize terminus.
I assume that is the exact problem. Somehow termsyn is not recognized by "all systems" (xlsfonts lists termsyn, fc-list does not).

Btw the output of fc-cache

~ % fc-cache -vf
/usr/share/fonts: caching, new cache contents: 0 fonts, 12 dirs
/usr/share/fonts/100dpi: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/75dpi: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/OTF: caching, new cache contents: 17 fonts, 0 dirs
/usr/share/fonts/TTF: caching, new cache contents: 107 fonts, 0 dirs
/usr/share/fonts/Type1: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/cantarell: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/local: caching, new cache contents: 24 fonts, 0 dirs  <--------------------------------
/usr/share/fonts/microsoft: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/misc: caching, new cache contents: 77 fonts, 0 dirs
/usr/share/fonts/util: caching, new cache contents: 0 fonts, 0 dirs
/home/jln/.local/share/fonts: skipping, no such directory
/home/jln/.fonts: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts: caching, new cache contents: 0 fonts, 12 dirs
/home/jln/.local/share/fonts: skipping, no such directory
/home/jln/.fonts: caching, new cache contents: 3 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/jln/.cache/fontconfig: cleaning cache directory
/home/jln/.fontconfig: cleaning cache directory
fc-cache: succeeded

Those 24 fonts in /usr/share/fonts/local are termsyn font files.

Last edited by senft (2013-12-21 09:48:17)

Offline

#6 2013-12-21 16:36:06

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: dzen2 can't find specific font

hmm. you have only termsyn in /usr/share/fonts/local?
are there also the other files, fonts.dir (and sometimes fonts.scale)?
iiuc you have also terminus installed, but on my machine it's also in /usr/share/fonts/local???
did you also reboot (not only restart X)? I found xft is very particular about this, but dzen2 shouldn't be using it.

Offline

#7 2013-12-23 10:26:31

senft
Member
Registered: 2012-02-13
Posts: 13

Re: dzen2 can't find specific font

ondoho wrote:

hmm. you have only termsyn in /usr/share/fonts/local?

Yes, I just tried terminus for testing purposes, because I knew it would be installed to /usr/share/fonts/local and I just wanted to see if the directory is detected correctly.

ondoho wrote:

are there also the other files, fonts.dir (and sometimes fonts.scale)?

Yep, everything is in place.

/usr/share/fonts/local % ll        
▕ -rw-r--r--▏root:root▕▏24 sec ▕▏   2K▕▏fonts.dir
▕ -rw-r--r--▏root:root▕▏24 sec ▕▏   2B▕▏fonts.scale
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  18K▕▏termsyn6x11b.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  18K▕▏termsyn6x11b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  18K▕▏termsyn6x11b2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  18K▕▏termsyn6x11r.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  18K▕▏termsyn6x11r.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  18K▕▏termsyn6x11r2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  20K▕▏termsyn6x13b.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  20K▕▏termsyn6x13b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  20K▕▏termsyn6x13b2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  20K▕▏termsyn6x13r.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  20K▕▏termsyn6x13r.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  20K▕▏termsyn6x13r2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  19K▕▏termsyn7x12b.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  19K▕▏termsyn7x12b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  19K▕▏termsyn7x12b2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  19K▕▏termsyn7x12r.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  19K▕▏termsyn7x12r.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  19K▕▏termsyn7x12r2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  21K▕▏termsyn7x14b.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  21K▕▏termsyn7x14b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  21K▕▏termsyn7x14b2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  21K▕▏termsyn7x14r.icons.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  21K▕▏termsyn7x14r.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏  21K▕▏termsyn7x14r2.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 157K▕▏termsynu6x11b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 157K▕▏termsynu6x11r.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 160K▕▏termsynu6x13b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 160K▕▏termsynu6x13r.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 158K▕▏termsynu7x12b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 158K▕▏termsynu7x12r.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 161K▕▏termsynu7x14b.pcf
▕ -rw-r--r--▏root:root▕▏2  day ▕▏ 161K▕▏termsynu7x14r.pcf
ondoho wrote:

did you also reboot (not only restart X)? I found xft is very particular about this, but dzen2 shouldn't be using it.

Yeah, multiple times...

Still no luck. This is so strange...

Last edited by senft (2013-12-23 10:27:30)

Offline

#8 2014-02-22 08:51:00

senft
Member
Registered: 2012-02-13
Posts: 13

Re: dzen2 can't find specific font

So vimperator also fails to find termsyn (while urxvt still finds it, if specified in .Xdefaults).
Does anyone have other ideas where to look for solutions?

Last edited by senft (2014-02-22 08:57:59)

Offline

#9 2014-02-23 13:02:11

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: dzen2 can't find specific font

senft wrote:

Does anyone have other ideas where to look for solutions?

inside the font, i'd say.
you can try to rebuild it with fontforge, or try to reproduce the error with a different font...
or maybe the aur package is wrong?
try installing it "manually"?

as an aside, are you aware that termsyn is a hybrid of terminus and tamsyn?
i like both fonts, but never saw the need for the hybrid.

Offline

#10 2014-02-24 06:37:48

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: dzen2 can't find specific font

@senft, are you using the same wm on each computer? I would check for typos first. When you say you did a 'xset ...', I assume you put that in your .xinitrc, right? Maybe post the relevant parts of your configs after you double check everything.

@ondoho, hybrids get better mileage.. ymmv though smile

Last edited by stlarch (2014-02-24 06:38:14)

Offline

#11 2014-04-15 08:07:25

senft
Member
Registered: 2012-02-13
Posts: 13

Re: dzen2 can't find specific font

Sorry for the late reply, but I just figured it out! I had /etc/fonts/conf.avail/70-no-bitmaps.conf symlinked to /etc/fonts/conf.d. I don't really remember why I once did this, but removing 70-no-bitmaps.conf and symlinking 70-yes-bitmaps.conf sorted things out.
Thanks everyone for helping!

Last edited by senft (2014-04-15 15:22:27)

Offline

Board footer

Powered by FluxBB