Re: [Bug 44630] Re: xterm rendering this font real ugly

2010-11-02 Thread Thomas Dickey
On Tue, 2 Nov 2010, Zenaan Harkness wrote:

 Second:
 The following shell code disables bold (overstrike) fonts in xterm:
 echo -e \e[1mA\e[2J\e[7mB\e[m\e[?5h\e[?5l

 well... that doesn't disable bold fonts.

 Actually, this does disable overstrike (sometimes called bold) fonts.

 May be it's not meant to, but it does, so your words are incorrect and/
 or based on false assumptions. This solution has been working for me for
 2 to 3 years.

I'm curious what you're seeing.  I tested it last night, found that it 
didn't work.  (I tested it with ncurses' test-screen 'b', found that I 
still got overstruck bold...).

 Please see the following URLs:

 http://superuser.com/questions/15226/how-do-i-make-xterm-not-use-bold

...which in turn refers you to

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347790

(lacking a mechanism by which the flash, etc., can make xterm stop
using the screen-enbolden flag, I don't have much to go on).

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

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2010-11-02 Thread Thomas Dickey
** Bug watch added: Debian Bug tracker #347790
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347790

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 44630] Re: xterm rendering this font real ugly

2010-11-02 Thread Zenaan Harkness
On Tue, Nov 2, 2010 at 19:11, Thomas Dickey dic...@his.com wrote:
 On Tue, 2 Nov 2010, Zenaan Harkness wrote:
 Second:
 The following shell code disables bold (overstrike) fonts in xterm:
 echo -e \e[1mA\e[2J\e[7mB\e[m\e[?5h\e[?5l

 well... that doesn't disable bold fonts.

 Actually, this does disable overstrike (sometimes called bold) fonts.

 May be it's not meant to, but it does, so your words are incorrect and/
 or based on false assumptions. This solution has been working for me for
 2 to 3 years.

 I'm curious what you're seeing.  I tested it last night, found that it
 didn't work.  (I tested it with ncurses' test-screen 'b', found that I
 still got overstruck bold...).

Ok sure. I've attached two images, before-echo-trick.png and
after-echo-trick.png. They are screen capture of my xterm, cropped,
zoomed four or so times in gimp, screen captured + cropped again (so
it's easy to see what's going on, and keep them small, and since
gimp-image-scale image, produces a fuzzy larger image not a crisp
larger image).

It is really easy to see the difference, and moreso with these zoomed
images.

This was an xterm that I ran from an icon on my gnome shell taskbar
which simply runs xterm.

Also attached is my ~/.Xresources

I'm happy to send further details if you need something else to check.

Please note, I am on Ubuntu 8.04.

PLEASE NOTE, even though I am on Ubuntu 8.04, when I chroot into an
Ubuntu 10.04 Lucid chroot, and start an xterm (without having run the
echo... trick in the 'parent/host' term), the new xterm does not have
the problem.

So this problem appears to be a bug in xterm which has indeed been
fixed, as it suggests near the bottom of the debian bug you point out
here:

 Please see the following URLs:

 http://superuser.com/questions/15226/how-do-i-make-xterm-not-use-bold

 ...which in turn refers you to

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347790

OK, this guy says he uses these settings to stop bolding (in his
original bug report at the top there):

  *XTerm*boldMode: false
  *XTerm*boldFont: fixed

Well, these xterm settings simply didn't work for me, and the solution
I found, with the 'echo' incantation, does work, as you can see from
my attached images.

Best
Zenaan


** Attachment added: before-echo-trick.png
   
https://bugs.launchpad.net/bugs/44630/+attachment/1720542/+files/before-echo-trick.png

** Attachment added: after-echo-trick.png
   
https://bugs.launchpad.net/bugs/44630/+attachment/1720543/+files/after-echo-trick.png

** Attachment added: .Xresources
   https://bugs.launchpad.net/bugs/44630/+attachment/1720544/+files/.Xresources

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 44630] Re: xterm rendering this font real ugly

2010-11-02 Thread Zenaan Harkness
Oh, and as you can see in those two tiny images I just posted, there
is another bug, where colorized text displays 1 pixel lower than
white-on-black text (can't speak to other color schemes). This is a
1-pixel vertical shift downwards of colorized text in xterm, which
causes some redraw issues on occasion, at least in Vim with split
panes.

This bug is also fixed for me with the xterm in Ubuntu 10.04 Lucid
chroot - so when Intel fixes the 00:02.0 VGA compatible controller:
Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
graphics controller chip problems in the recent X org servers, and I
can finally upgrade my laptop without one or a number more daily
hangs, I shall be happy. In the meantime I am patient. It's libre
software and so I feel at peace in this regard.

Best
Zenaan

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2010-11-02 Thread Thomas Dickey
I see - then it may be a bug that I fixed (recalling a few cases where there 
was a problem
with the font-caching which I made for xterm a few years ago.

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 44630] Re: xterm rendering this font real ugly

2010-11-02 Thread Zenaan Harkness
On Tue, Nov 2, 2010 at 14:01, Zenaan Harkness
launchpad@freedbms.net wrote:
 First, re my statement above:

BUT, I have not found a way to automate this

 is false. Indeed the line echo -e ... can simply be placed at the end of 
 your .bashrc to have the desired effect.
 I suspect I was source-ing the snippet because it had annoying properties on 
 logins in other terminals, which I did not want (perhaps gnome-terminal).

Just got bitten by one of the annoying properties - after open a few
addition GNU Screen 'windows' in my gnu screen session, suddenly all
screen windows are stuffed! And the echo trick fails to fix things. So
by repeatedly running, it ends up stuffing up. But by running once
only, it persists, and does not un-fix itself at all.

 Anyway, as of just now, I have put it at the end of my .bashrc, so that
 should work for you too.

Back to manual sourcing for me...
Zen

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2010-11-01 Thread Zenaan Harkness
WORKAROUND:
This is still pretty clunky but I've been using this solution since 8.04, to 
solve this very problem:

The following shell code disables bold (overstrike) fonts in xterm:
echo -e \e[1mA\e[2J\e[7mB\e[m\e[?5h\e[?5l

BUT, I have not found a way to automate this - it's like an environment
variable export, if you don't export it, it won't apply to the current
(parent) shell/term process.

SO, I put the above code into a file, say ~/nobold or ~/bin/fixfont, and then 
for each xterm I open I manually source the file:
. ~/bin/fixfont

This solves the problem for a each xterm. The fix does not propagate to
xterms opened from current xterm unfortunately!

I have been asked why not use gnome-terminal.

Well, gnome-terminal does NOT allow me to use a neep font, or at
least, not a neep font less than 12 pixels in size.

Also, when I run screen, I have my .screenrc config with the following three 
lines:
# Make CTRL-Pgup go to previous screen, CTRL-Pgdn to next:
bindkey ^[[5;5~ prev
bindkey ^[[6;5~ next

These bindkey screenrc options give me a firefox-like CTRL-PageUP and
CTRL-PageDN to swap between my screen tabs as they could be called :)

Problem is, with gnome-terminal and my above screenrc config, only CTRL-
PageUP works, and CTRL-PageDN does not work.

gnome-terminal pre- ubuntu 8.04 had performance problems which precluded
its use for me then. It is now adequate, but xterm is still higher
performance.

Time to file a gnome-terminal bug report or three I guess.

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 44630] Re: xterm rendering this font real ugly

2010-11-01 Thread Thomas Dickey
On Mon, 1 Nov 2010, Zenaan Harkness wrote:

 WORKAROUND:
 This is still pretty clunky but I've been using this solution since 8.04, to 
 solve this very problem:

 The following shell code disables bold (overstrike) fonts in xterm:
 echo -e \e[1mA\e[2J\e[7mB\e[m\e[?5h\e[?5l

well... that doesn't disable bold fonts.  Breaking it down, it's doing

tput bold
echo -n A
clear
tput smso
echo -n B
tput sgr0  (more or less)
tput flash

xterm's alwaysBoldMode resource might help for this bug report.

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

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2010-11-01 Thread Zenaan Harkness
First, re my statement above:

BUT, I have not found a way to automate this

is false. Indeed the line echo -e ... can simply be placed at the end of your 
.bashrc to have the desired effect.
I suspect I was source-ing the snippet because it had annoying properties on 
logins in other terminals, which I did not want (perhaps gnome-terminal).

Anyway, as of just now, I have put it at the end of my .bashrc, so that
should work for you too.

Second:
 The following shell code disables bold (overstrike) fonts in xterm:
 echo -e \e[1mA\e[2J\e[7mB\e[m\e[?5h\e[?5l

well... that doesn't disable bold fonts.

Actually, this does disable overstrike (sometimes called bold) fonts.

May be it's not meant to, but it does, so your words are incorrect and/
or based on false assumptions. This solution has been working for me for
2 to 3 years.

Please see the following URLs:

http://superuser.com/questions/15226/how-do-i-make-xterm-not-use-bold

http://www.google.com.au/search?num=20hl=ensafe=offclient=firefox-ahs=89Qrls=com.ubuntu
%3Aen-
US%3Aunofficialq=%22echo+-e+\e[1mA\e[2J\e[7mB\e[m\e[%3F5h\e[%3F5l%22btnG=Search

 Breaking it down, it's doing
...

I don't know what the tput hold etc do so can't respond sorry, and you
haven't explained, so I cannot comment on why it (should not? but) does
disable bold overstrike fonts in xterm!

xterm's alwaysBoldMode resource might help for this bug report.

From memory (couple of years or more ago), I tried this - I extensively
read xterm man page and X and xorg and xresources and google of above,
and tried many combinations... without success. This is one very
stubborn bug (at least in my case where I use smallish neep fonts).

The ONLY solution I found which SOLVED my problem, is the disable bold
(overstrike) fonts in xterm solution which I posted above.

SO, that's why I posted this solution to this bug. I was doing a search
and hoping a more elegant solution might have popped up in the last few
years. Came across this bug report (don't remember seeing it before),
and _no_ solution was posted, so I posted my _current_ and
_working_for_2.5_years_now_ solution because I thought someone may just
need it and be reading this bug report and not know a solution
otherwise.

Thank you for your feedback though, I now have some commands tput ...
which I can search to try finding some doco to help me decipher the
magic incantation which I've been using to disable bold overstrike fonts
in xterm, should I be so inclined. This is useful information.

BTW, if someone can suggest a test or would like other information from
me, I am very willing to run tests if I can. I am competant to run
chroot tests too (I have lucid/10.04 in a chroot, and can install debian
testing or unstable too if desired - I manage a number of workstations
and servers, and run local repo mirrors of debian testing/unstable and
ubuntu lts releases).

Please note, this bug (44630) is from 20060514 and is not a bug I
created, but is a bug which affects me. Either way, I'm willing to
assist if I can, just ask...

Thanks again,
Zenaan

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2009-01-20 Thread gnubuntu
Here is a screenshot with the font dejavu sans mono i use in x-term. My
GNOME Desktop font-setting is Best Form.

** Attachment added: x-term nice  clean bold font
   http://launchpadlibrarian.net/21493697/x-term-irssi.png

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2009-01-19 Thread gnubuntu
I've tried Timos suggestion and can't see any difference. The bold font
in xterm in ubuntu 8.10 looks ok.

Here is a nicer font i've found out:

xterm*faceName: dejavu sans mono:pixelsize=10

Just put it in ~/.Xdefaults and after that run xrdb ~/.Xdefaults.
For anybody who don't know what x-recources are. I've spend more than 1 hour to 
find it out :)

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2007-08-05 Thread Timo Aaltonen
Closing the bug because no replies. If you can reproduce it with gutsy,
please reopen.

** Changed in: xterm (Ubuntu)
   Status: Incomplete = Invalid

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2007-08-05 Thread Timo Aaltonen
actually, reading xterm faq says this:

The bold font is ugly

   Xterm lets you directly specify one bold font, which is assumed to
   correspond to the default font. Older versions of xterm make a fake
   bold font for the other choices via the fonts menu by drawing the
   characters offset by one pixel. I modified xterm to ask the font server
   for a bold font that corresponds to each font (other than the default
   one). Usually that works well. However, sometimes the font server gives
   a poor match. Xterm checks for differences in the alignment and size,
   but the font server may give incorrect information about the font size.
   The scaled bitmap font feature gives poor results for the smaller
   fonts. In your X server configuration file, that can be fixed by
   disabling the feature, e.g., by appending :unscaled to the path:
FontPath/usr/lib/X11/fonts/100dpi/:unscaled
FontPath/usr/lib/X11/fonts/75dpi/:unscaled
FontPath/usr/lib/X11/fonts/misc/:unscaled


** Changed in: xterm (Ubuntu)
   Status: Invalid = Won't Fix

-- 
xterm rendering this font real ugly
https://bugs.launchpad.net/bugs/44630
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 44630] Re: xterm rendering this font real ugly

2007-02-15 Thread Timo Aaltonen
can you try with edgy or feisty?

** Changed in: xterm (Ubuntu)
   Status: Unconfirmed = Needs Info

-- 
xterm rendering this font real ugly
https://launchpad.net/bugs/44630

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs