Bug#412599: xterm: boldMode does not work as described

2007-03-02 Thread Jörg Sommer
Hi Thomas,

Thomas Dickey schrieb am Thu 01. Mar, 20:38 (-0500):
> On Tue, Feb 27, 2007 at 12:50:11AM +0100, Jörg Sommer wrote:
> > Package: xterm
> > Version: 224-1
> > Severity: normal
> > 
> > Hi,
> > 
> > the manual page of xterm says: Note that xterm has one bold font which
> > you may set explicitly. It attempts to match a bold font for the other
> > font selections (font1 through font6). If the normal and bold fonts are
> > distinct, this resource [boldMode] has no effect.
> > 
> > So I set boldFont and boldMode:
> > % xrdb -query|grep -E '(XTerm.*ont|bold)'
> > XTerm.*.boldFont:   -misc-fixed-bold-*-*-*-18-*-*-*-*-*-iso10646-1
> > XTerm.*.font:   -misc-fixed-medium-*-*-*-18-*-*-*-*-*-iso10646-1
> > XTerm.*.boldMode:   false
> 
> I need a little more information to see if I'm reconstructing this
> properly.  Your locale appears to be de_DE.UTF-8,

Correct.

> but the given resources are for "XTerm" rather than "UXTerm".

Correct.

> Are you starting xterm using the "-u8" option, or using the "utf8" or
> "wideChars" resource, then?

Nothing of it. But I don't have problems with UTF-8. I start xterm with
the variable LANG=de_DE.UTF-8.

> btw - the ".*." is really the same as "*"

Thanks for this hint. I thought it's like shell patterns, so XTerm.*.font
wouldn't match XTerm.foo.barfont.

> > As you can see the font and boldFont entities are distinct, ergo the
> > boldMode resource should get ignored. But it isn't so. I don't get bold
> > characters. If I set the boldMode to true, I get ugly characters for
> > font1 through font6.
> 
> Well it could be distinct (even as specified) for a couple of different
> reasons, e.g.,
> 
>   a) the pattern might not match a real font

% xlsfonts -fn '-misc-fixed-bold-*-*-*-18-*-*-*-*-*-iso10646-1'
-misc-fixed-bold-r-normal--18-120-100-100-c-90-iso10646-1
-misc-fixed-bold-r-normal--18-130-100-100-c-0-iso10646-1
-misc-fixed-bold-r-normal--18-130-100-100-c-0-iso10646-1
-misc-fixed-bold-r-semicondensed--18-130-100-100-c-0-iso10646-1

>   b) another resource could override one of the given patterns.
> 
>  For instance, I started with "*font", but that was overridden
>  by "*VT100.font".  But "UXTerm*font" worked.

Not at me. This are my settings:

% xrdb -query
*customization: -color
Fig.latexfonts: true
Fig.rigidtext:  true
Fig.specialtext:true
XLock*logoutButton: -1
XLock.endCmd:   xlock_kb restore
XLock.startCmd: xlock_kb save
XTerm*boldMode: false
XTerm.*.Scrollbar.translations: #override\n : StartScroll(Forward)\n 
: StartScroll(Backward)\n
XTerm.*.background: black
XTerm.*.boldFont:   -misc-fixed-bold-*-*-*-18-*-*-*-*-*-iso10646-1
XTerm.*.color4: blue3
XTerm.*.eightBitInput:  false
XTerm.*.font:   -misc-fixed-medium-*-*-*-18-*-*-*-*-*-iso10646-1
XTerm.*.foreground: gray90
XTerm.*.metaSendsEscape:true
XTerm.*.rightScrollBar: true
XTerm.*.scrollBar:  false
XTerm.*.vt100.translations: #override\n 
Shift,:scroll-back(1,line)\n 
Shift,:scroll-forw(1,line)\n 
Ctrl,:scroll-back(1,page)\n 
Ctrl,:scroll-forw(1,page)\n 
,:scroll-back(1,halfpage)\n 
,:scroll-forw(1,halfpage)\n Home: string(0x1b) 
string("[1~")\n End: string(0x1b) string("[4~")\n KP_Enter: 
string(0xd)\n ShiftUp: scroll-back(1, line)\n ShiftDown: 
scroll-forw(1, line)\n
XTerm.messages: false
gnuplot.*.line2Color:   darkgreen
irssi.*.popOnBell:  true
rootsh.*.ScrollBar: true
rootsh.*.background:firebrick
server.*.ScrollBar: false
server.*.background:darkgreen
server.*.geometry:  80x25
server.*.multiScroll:   true
server.*.scrollLines:   0
server.title:   Server Terminal
slrn.*.boldMode:false
slrn.*.font:-misc-fixed-medium-r-normal-*-*-140-100-100-c-*-iso8859-1
slrn_cp.*.boldMode: false
slrn_cp.*.font: -misc-fixed-medium-r-normal-*-*-140-100-100-c-*-iso8859-1
xdvi.shrinkButton1: 4
xdvi.shrinkButton2: 5
xdvi.shrinkButton3: 6
xdvi.shrinkFactor:  5
xdvi.sideMargin:1cm
xdvi.topMargin: 2cm
xjed.font:  -misc-fixed-medium-*-*-*-*-200-*-*-*-*-iso10646-1
xprop.title:xprop
xterm.*.scrollBar:  true

Bye, Jörg.
-- 
Life can only be understood backwards, but it must be lived forwards.
 (Soren Kierkegaard)


pgpGibBYJR0SR.pgp
Description: PGP signature


Bug#412599: xterm: boldMode does not work as described

2007-03-01 Thread Thomas Dickey
On Tue, Feb 27, 2007 at 12:50:11AM +0100, Jörg Sommer wrote:
> Package: xterm
> Version: 224-1
> Severity: normal
> 
> Hi,
> 
> the manual page of xterm says: Note that xterm has one bold font which
> you may set explicitly. It attempts to match a bold font for the other
> font selections (font1 through font6). If the normal and bold fonts are
> distinct, this resource [boldMode] has no effect.
> 
> So I set boldFont and boldMode:
> % xrdb -query|grep -E '(XTerm.*ont|bold)'
> XTerm.*.boldFont:   -misc-fixed-bold-*-*-*-18-*-*-*-*-*-iso10646-1
> XTerm.*.font:   -misc-fixed-medium-*-*-*-18-*-*-*-*-*-iso10646-1
> XTerm.*.boldMode:   false

I need a little more information to see if I'm reconstructing this
properly.  Your locale appears to be de_DE.UTF-8, but the given resources
are for "XTerm" rather than "UXTerm".  Are you starting xterm using the
"-u8" option, or using the "utf8" or "wideChars" resource, then?

btw - the ".*." is really the same as "*"
 
> As you can see the font and boldFont entities are distinct, ergo the
> boldMode resource should get ignored. But it isn't so. I don't get bold
> characters. If I set the boldMode to true, I get ugly characters for
> font1 through font6.

Well it could be distinct (even as specified) for a couple of different
reasons, e.g.,

a) the pattern might not match a real font

b) another resource could override one of the given patterns.

   For instance, I started with "*font", but that was overridden
   by "*VT100.font".  But "UXTerm*font" worked.  That was in
   my local app-defaults file (running with fvwm - none of that
   xrdb stuff to confuse).

   I see that by compiling xterm with tracing enabled (though
   it seems I should supply a shell script to do the queries,
   since this topic comes up regularly ;-)
 
> Bye, Jörg.
> 
> -- System Information:
> Debian Release: unstable/experimental
>   APT prefers unstable
>   APT policy: (990, 'unstable'), (1, 'experimental')
> Architecture: powerpc (ppc)
> Shell:  /bin/sh linked to /bin/dash
> Kernel: Linux 2.6.20
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp9EDvNmjf2p.pgp
Description: PGP signature


Bug#412599: xterm: boldMode does not work as described

2007-02-26 Thread Jörg Sommer
Package: xterm
Version: 224-1
Severity: normal

Hi,

the manual page of xterm says: Note that xterm has one bold font which
you may set explicitly. It attempts to match a bold font for the other
font selections (font1 through font6). If the normal and bold fonts are
distinct, this resource [boldMode] has no effect.

So I set boldFont and boldMode:
% xrdb -query|grep -E '(XTerm.*ont|bold)'
XTerm.*.boldFont:   -misc-fixed-bold-*-*-*-18-*-*-*-*-*-iso10646-1
XTerm.*.font:   -misc-fixed-medium-*-*-*-18-*-*-*-*-*-iso10646-1
XTerm.*.boldMode:   false

As you can see the font and boldFont entities are distinct, ergo the
boldMode resource should get ignored. But it isn't so. I don't get bold
characters. If I set the boldMode to true, I get ugly characters for
font1 through font6.

Bye, Jörg.

-- System Information:
Debian Release: unstable/experimental
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.20
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages xterm depends on:
ii  libc6   2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libfontconfig1  2.4.2-1.2generic font configuration library
ii  libice6 1:1.0.1-2X11 Inter-Client Exchange library
ii  libncurses5 5.5-5Shared libraries for terminal hand
ii  libsm6  1:1.0.1-3X11 Session Management library
ii  libx11-62:1.0.3-5X11 client-side library
ii  libxaw7 1:1.0.2-4X11 Athena Widget library
ii  libxext61:1.0.1-2X11 miscellaneous extension librar
ii  libxft2 2.1.8.2-8FreeType-based font drawing librar
ii  libxmu6 1:1.0.2-2X11 miscellaneous utility library
ii  libxt6  1:1.0.2-2X11 toolkit intrinsics library
ii  xbitmaps1.0.1-2  Base X bitmaps

Versions of packages xterm recommends:
ii  xutils  1:7.1.ds.3-1 X Window System utility programs

-- no debconf information


pgp6PFHsB1hsz.pgp
Description: PGP signature