unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: two-pixel trace left when move overlay
Date: Mon, 24 Apr 2006 09:37:12 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICMEDEDFAA.drew.adams@oracle.com> (raw)
In-Reply-To: <444CAC3E.4070600@gnu.org>

      In Emacs 20, 21, and a CVS snapshot of June 26, 2005, this works OK.
In a
      CVS snapshot of 2006-03-20, when I move the overlay, a two-pixel (I
believe)
      trace is left behind. See attached screenshots.

    Perhaps it is a Windoze specific problem?

  It is almost certainly due to this change:

  2005-07-01  Jason Rumney  <jasonr@gnu.org>

    * w32term.c (cleartype_active): New flag for enabling sub-pixel
    workaround.
    (w32_initialize): Initialize it.
    (w32_native_per_char_metric): Allow a couple of extra pixels when
    Cleartype is active.

    * w32term.c (w32_initialize): Move check for screen reader here
    from syms_of_w32term.

  The history of this is:

  In Windows XP, "Cleartype" sub-pixel anti-aliasing was introduced. With
some fonts,
  this caused a garbaged display, since characters draw outside of their
advertised
  bounding box.

  In 21.3 I disabled the use of Cleartype in Emacs to avoid this problem,
but users
  complained, so a workaround of increasing the width of the bounding box by
one pixel
  left and right was installed. This should cause Emacs to always draw a
whole line at
  a time (after figuring out that characters on that line are overlapping),
which is
  the advice that Microsoft gives to avoid this problem.

  I guess the workaround must be adversely affecting the drawing of overlays
though -
  the extra two pixels being drawn on the background, but not detected when
it comes
  time to erase them.

Here's another piece of the puzzle (mentioned in my initial bug report): The
bug only appears if (setq-default indent-tabs-mode nil). If this is non-nil
there is no problem.

      reply	other threads:[~2006-04-24 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-01 19:24 two-pixel trace left when move overlay Drew Adams
2006-04-23 22:49 ` Kim F. Storm
2006-04-23 22:58   ` Drew Adams
2006-04-24  3:26   ` Eli Zaretskii
2006-04-24 10:45   ` Jason Rumney
2006-04-24 16:37     ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICMEDEDFAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).