[FIX] xfontsel shows no fonts

You won't understand.
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

[FIX] xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 4:08 pm

xfontsel shows nothing except of the asterisks, though it says that names match. Clicking on fndry, fmly, etc etc shows only an asterisk.

xlsfonts brings up the full list.

------------------------------------------------------

Solution:
pidsley wrote: Comment out the "geometry" line, reload the Xresources, and the list becomes visible.
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: xfontsel shows no fonts

Unread post by GekkoP » Tue Feb 11, 2014 4:15 pm

It's working on mine.
Image

Same x11-utils version.

Code: Select all

x11-utils:
  Installed: 7.7+1
  Candidate: 7.7+1
  Version table:
 *** 7.7+1 0
        500 http://ftp.de.debian.org/debian/ unstable/main i386 Packages
        100 /var/lib/dpkg/status

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 4:16 pm

Which Spring edition is it? amd64/686/pae/486?
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: xfontsel shows no fonts

Unread post by GekkoP » Tue Feb 11, 2014 4:16 pm

No, I'm an idiot, and I'm on Elektra. Sorry.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 4:18 pm

Haha, no matter :) Thanks anyway, so I know it's something I fucked up. Though, now it's the same on Pony Muncher....
..gnutella..

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: xfontsel shows no fonts

Unread post by pidsley » Tue Feb 11, 2014 4:26 pm

Which version of the iso? Are you using the live session, or installed?

I just booted the live 686 iso I have, and there are no fonts in /usr/share/fonts/X11. This is very strange, because in the installed version I used for Old School, they are there. Are the fonts there on the system you are testing? Let me download your updated 686 iso and see if they are there.

xfontsel works fine in Old School and Psychedelic Shitstorm.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 4:30 pm

It's an installed base plus X, tried 486, 686 and PAE, and I installed the
xfonts-100dpi
xfonts-75dpi
xfonts-base
xfonts-encodings
xfonts-jmk
xfonts-scalable
xfonts-terminus
xfonts-traditional
xfonts-utils
x11-common
x11-utils
x11-xkb-utils
x11-xserver-utils

from the X11 packages.

The funny thing is that xfontsel does show the number of matching fonts, but nothing can be selected.

Pid, do you have your .Xresources at hand? Can you post it? Thanks :)
..gnutella..

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: xfontsel shows no fonts

Unread post by pidsley » Tue Feb 11, 2014 4:32 pm

Are the fonts in /usr/share/fonts ? Try re-running mkfontdir and mkfontscale in the directory containing the fonts.

(edit) the Xresources I used for Old School are here: https://github.com/pidsley/bbq-oldschool

(edit2) OK weird. I downloaded your new 2014 686 iso, and running it live I can't see fonts in xfontsel either. They are in the right place, and mkfontdir doesn't help, nor does explicitly running xset +fp and xset fp rehash. I hate fonts. Let me try some other things.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 4:40 pm

Thank you, I did that before and no reaction. The fonts.dir and fonts.scale (and fonts.alias) files are there, fonts.scale only prints a "0", the others are populated.

It's strange that fonts are normally rendered, for example in xfontsel, rxvt, xcalc, xedit, etc. Only the selection in xfontsel is not possible, as nothing shows up (but the demo text is rendered correctly)
..gnutella..

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 4:42 pm

Ok, I just guess that the scale "0" is the problem -- but why did it happen in the first place? In the Type1 directory mkfontscale creates a nice big file.

edit: that's how it shows in xfontsel
fontselect.png
fontselect.png (1.64 KiB) Viewed 6472 times
..gnutella..

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: xfontsel shows no fonts

Unread post by pidsley » Tue Feb 11, 2014 4:51 pm

No, on my Arch machine, and in Old School, fonts.scale is also 0, and xfontsel works fine.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 4:54 pm

Right, it only generates them where there are scalable fonts, it seems.

Packing a pipe now maybe make a diff in /usr/share/fonts/X11 and /etc/X11 between Noob Killah (which works) and Pony Muncher. Somewhere must be something missing.
..gnutella..

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: xfontsel shows no fonts

Unread post by pidsley » Tue Feb 11, 2014 4:56 pm

OK; I have a few other things to do this morning before I can do much more with this. The diffs should tell you what's wrong.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 5:03 pm

Thanks Pid, it does not hurry. I just noticed it today, when I opened xfontsel in IceWM, the window didn't expand (usually it is as wide as the selection field in xfontsel), then I already knew something is not OK. Have a good day, and thank you for your prompt reply.
..gnutella..

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: xfontsel shows no fonts

Unread post by pidsley » Tue Feb 11, 2014 5:10 pm

OK, it's something in your .Xresources. You won't believe this. The terminal geometry is too small to show the list.
Comment out the "geometry" line, reload the Xresources, and the list becomes visible.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 5:26 pm

Yup, that was it. The .Xresources file broke it. Thank you for your help.
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: xfontsel shows no fonts

Unread post by dkeg » Tue Feb 11, 2014 7:24 pm

sorry, gents, just popped on for lunch. Yep, that would be my fault as the xres file in Spring Edition I believe is mine.

What can I say. I like it tight.

Work hard; Complain less

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: xfontsel shows no fonts

Unread post by machinebacon » Tue Feb 11, 2014 8:16 pm

My fault, I should have checked 'xfontsel' before spinning :)

I close this one, because users can inject their own .Xresources/.Xdefaults

Thanks for your help.
..gnutella..

Locked