svlug_funny_x_font_probs

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



From: svlug-request@lists.svlug.org
Subject: svlug digest, Vol 1 #566 - 1 msg
To: svlug@lists.svlug.org
Date: Wed, 14 Feb 2001 12:01:01 -0800

--198.186.203.43.69.26549.982180802.237.1550
Content-type: text/plain; charset=us-ascii
Content-description: Masthead (svlug digest, Vol 1 #566)

Send svlug mailing list submissions to
	svlug@lists.svlug.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.svlug.org/mailman/listinfo/svlug
or, via email, send a message with subject or body 'help' to
	svlug-request@lists.svlug.org

You can reach the person managing the list at
	svlug-admin@lists.svlug.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of svlug digest..."


--198.186.203.43.69.26549.982180802.237.1550
Content-type: text/plain; charset=us-ascii
Content-description: Today's Topics (1 msg)

Today's Topics:

   1. xterm fonts (Jean-Marc Libs)

--198.186.203.43.69.26549.982180802.237.1550
Content-type: multipart/digest; boundary="__--__--"


===

Date: Wed, 14 Feb 2001 20:33:36 +0100 (CET)
From: Jean-Marc Libs <libs@noos.fr>
To: svlug@svlug.org
Subject: [svlug] xterm fonts

Hello,

Here is my problem: my workstation is a debian potato box, and I 
work mainly in simple xterms (no scrollbar, plain vanilla xterm),
and at first, everything was well.
The xterm fonts were the default ones, which suit me.

Of course, while browsing  here and there, I may have gotten a
bit carried away with apt-get install whatever. Including installing
font-related packages.
When I popped up other xterms, I would get some warning "fonts 
<something> not found" but I ignored it, as no visible trouble
occured.

After a while, I had to quit X (kde2) for an unrelated reboot.
And then I got some amazingly illegible fonts.
(I am unable to recognise fonts by name)

It seems that xfontsel should allow me to choose any kind of font I
like, and then get them in the xterm with Ctrl+Right Click. Or I can
just put them in the alias I use for popping new xterms, like so:
alias ts='xterm -font "-*-fixed-medium-r-normal-*-*-*-*-100-*-*-iso8859-*" -rw +sb -cr red -ms blue &'
Now, "-*-fixed-medium-r-normal-*-*-*-*-100-*-*-iso8859-*" is not all 
bad, and I can work with it (at least, it's not in italics), but It's 
not really what I hoped for.

Does anyone know what the default, out-of-the-box fonts for xterms are ?

The frustrating part is, the correct fonts are right there on my home
computer (Red Hat 4.2), or my colleague's computer (debian) but I know 
of no way of making these xterms tell me what fonts they display :-(

I also tried to blindly comment/swap the FontPath lines in 
/etc/X11/XF86Config and quit/enter X, but although it does make a 
difference, I still can't figure out what font I want. Plus it is 
rather time consuming.

===


Date: Wed, 14 Feb 2001 13:20:56 -0800
From: Erik Steffl <steffl@bigfoot.com>
To: svlug@svlug.org
Subject: Re: [svlug] xterm fonts

  try xterm -fn fixed

===
Date: Thu, 15 Feb 2001 16:26:27 +0100 (CET)
From: Jean-Marc Libs <libs@noos.fr>
To: Erik Steffl <steffl@bigfoot.com>
Subject: Re: [svlug] xterm fonts

On Wed, 14 Feb 2001, Erik Steffl wrote:

>   try xterm -fn fixed

Thanks a lot.
It just.... Works great :-D

It still looks like black magic to me, especially as 
xterm -font "-*-fixed-*-*-*-*-*-*-*-*-*-*-*-*" does not give the same
result at all (it's bold, slanted and too big), but it really solves
my problem.

Now that the problem is solved, my curiosity remains, so if anyone
has pointers to interesting newbie-grade linux font documentation, I'm
interested. Sadly, the Font-HOWTO isn't it. The Font-HOWTO is for people
who are new to linux, but know what fonts they want. I'd like to see the
reverse.



===

Subject: Re: [svlug] xterm fonts 
Date: Wed, 14 Feb 2001 21:54:35 -0800
From: J C Lawrence <claw@kanga.nu>

On Wed, 14 Feb 2001 20:33:36 +0100 (CET) 
Jean-Marc Libs <libs@noos.fr> wrote:

> It seems that xfontsel should allow me to choose any kind of font
> I like, and then get them in the xterm with Ctrl+Right Click. Or I
> can just put them in the alias I use for popping new xterms, like
> so: alias ts='xterm -font
> "-*-fixed-medium-r-normal-*-*-*-*-100-*-*-iso8859-*" -rw +sb -cr
> red -ms blue &' Now,
> "-*-fixed-medium-r-normal-*-*-*-*-100-*-*-iso8859-*" is not all
> bad, and I can work with it (at least, it's not in italics), but
> It's not really what I hoped for.

I prefer using X resources to control such displays.  My stanza for
xterm is:

--<black>--
xterm*background: Black
xterm*foreground: DeepSkyBlue
xterm*cursorColor: Orange
xterm*reverseVideo: false
xterm*scrollBar: true
xterm*rightScrollBar: true
xterm*reverseWrap: true
xterm*fullCursor: true
xterm*scrollTtyOutput: off
xterm*scrollKey: on
xterm*saveLines:5120
xterm*VT100.Translations: #override\n\
	<KeyPress>Prior : scroll-back(1,page)\n\
	<KeyPress>Next : scroll-forw(1,page)
xterm*titleBar: false
xterm*geometry: 80x25
xterm*font: -*-lucidatypewriter-medium-*-*-*-13-*-*-*-*-*-*-*

! Scrolling on wheel mouse: half a page normally, line per line with shift

xterm.vt100.translations: #override\n\
	Shift<Btn4Down>,<Btn4Up>:scroll-back(1,line)\n\
	Shift<Btn5Down>,<Btn5Up>:scroll-forw(1,line)\n\
	Ctrl<Btn4Down>,<Btn4Up>:scroll-back(1,page)\n\
	Ctrl<Btn5Down>,<Btn5Up>:scroll-forw(1,page)\n\
	<Btn4Down>,<Btn4Up>:scroll-back(1,halfpage)\n\
	<Btn5Down>,<Btn5Up>:scroll-forw(1,halfpage)\n\

! In the scrollbar we map buttons 5 & 4 to 1 and 2 otherwise, core dump
! This will move proportionnaly to cursor position but we dont know how to
! program the same exact behavior as in the text widget.

xterm.vt100.Scrollbar.translations: #override\n\
     <Btn5Down>: StartScroll(Forward)\n\
     <Btn4Down>: StartScroll(Backward)\n\
--<cut>--


===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu