unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Abrahams <dave@boost-consulting.com>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs defeats ClearType
Date: Mon, 06 Jun 2005 12:46:21 -0400	[thread overview]
Message-ID: <uoeajbfhe.fsf@boost-consulting.com> (raw)
In-Reply-To: <1118072836.42a47004de422@webmail.freedom2surf.net> (jasonr@f2s.com's message of "Mon, 6 Jun 2005 16:47:16 +0100")

jasonr@f2s.com writes:

> Quoting David Abrahams <dave@boost-consulting.com>:
>
>> Incidentally, it seemed to work just fine for me if I remove the
>> checks for whether cleartype is enabled altogether, and just make the
>> width adjustments unconditionally.
>
> That is not a good idea. Your patch potentially affects performance,
> since it tells lies about the width of characters to counteract the
> system's lies, and may make them appear to be wider than their
> bounding box when they are not. If a character being redisplayed is
> detected to be wider than its bounding box, then the next character
> needs to be redrawn also, possibly cascading out to the full line in
> the worst cases. So we should only tell these lies when we know the
> system could be lying.

Yes, if you're concerned about redrawing the minimum possible number
of characters on a line, you don't want to do that.  I think that's a
needless optimization in most cases, but I'm sure there are machines
and buffers where you can observe a difference in speed.

> What would be better is to do the test for Cleartype once per font
> and cache the result. Actually, you use a system setting for the
> test, so if there is not a way to find out if Cleartype is used for
> a specific font (I think there is), then a single test at startup is
> all that will be needed.

But then you'll pay for your evil lies even when the user turns off
ClearType during an emacs session, and the user who turns on ClearType
during an emacs session will get poor visual results and probably
conclude that Emacs doesn't work with ClearType.

Anyway, please let me know if you want to take what I've done and
massage it yourself or if you'd like me to make specific changes so it
can be integrated into the Emacs sourcebase.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

  reply	other threads:[~2005-06-06 16:46 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-02 12:38 Emacs defeats ClearType David Abrahams
2005-06-03  8:30 ` jasonr
2005-06-03 10:54   ` David Abrahams
2005-06-03 15:22     ` jasonr
2005-06-03 15:27   ` David Abrahams
2005-06-06 15:47     ` jasonr
2005-06-06 16:46       ` David Abrahams [this message]
2005-06-07  1:15         ` Miles Bader
2005-06-07 13:20           ` David Abrahams
2005-06-08 13:45         ` [PING] ClearType Patch David Abrahams
2005-06-08 14:33           ` Eli Zaretskii
2005-06-08 15:46             ` David Abrahams
2005-06-08 16:44               ` Stefan Monnier
2005-06-08 20:01                 ` David Abrahams
2005-06-08 18:22               ` Eli Zaretskii
2005-06-08 19:57                 ` David Abrahams
2005-06-08 21:29                   ` jasonr
2005-06-08 21:23                 ` jasonr
2005-06-08 22:17                   ` David Abrahams
2005-06-09  8:10                     ` jasonr
2005-06-11 13:12                       ` Eli Zaretskii
2005-06-11 16:50                         ` David Abrahams
2005-06-15  7:15                           ` David Abrahams
2005-06-15  9:19                             ` David Abrahams
2005-06-18 23:02                               ` How is highlighting done in show-paren-mode? David Abrahams
2005-07-14 18:55                                 ` Who can explain the display architecture? David Abrahams
2005-07-15  9:41                                   ` Kim F. Storm
2005-06-08 23:34                   ` [PING] ClearType Patch Stefan Monnier

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=uoeajbfhe.fsf@boost-consulting.com \
    --to=dave@boost-consulting.com \
    --cc=emacs-devel@gnu.org \
    /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).