all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alp Aker <alptekin.aker@gmail.com>
To: "Aurélien Aptel" <aurelien.aptel@gmail.com>
Cc: 10736@debbugs.gnu.org, Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: bug#10736: Add "underwave" face attribute
Date: Fri, 13 Apr 2012 19:35:28 -0400	[thread overview]
Message-ID: <CACxch4o=pcBa+nFxq=q6sePArs5Nhkwm-P=k=mAFhv8oMhqMoQ@mail.gmail.com> (raw)
In-Reply-To: <CA+5B0FOa=VZdsZHu0NKuFr0ScDtBqxfi3UVp3Ka=wza981=tzw@mail.gmail.com>

On Fri, Apr 13, 2012 at 6:05 AM, Aurélien Aptel
<aurelien.aptel@gmail.com> wrote:
> Concerning the NS port, as I understand drawing primitives work on a
> non-discrete plane where integer coordinates falls "between" pixels
> resulting in two blurred pixels instead of a filled one. Since I can't
> experiment on this platform I was wondering if you could try shifting
> every coordinate by .5 to see if it looks better.

It's not a matter of the coordinate system.  The Cocoa line drawing
functions draw each line so that it's centered on its path.  If the
width of the line is an odd number of pixels, anti-aliasing can then
make it look wider than expected.

In my (limited) experience, this effect is only noticeable when
drawing straight vertical or horizontal line segments.  In the present
case, shifting by 0.5 pixels has no discernable affect on the
appearance of the underwave.





  reply	other threads:[~2012-04-13 23:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06 12:00 bug#10736: Add "underwave" face attribute Aurélien Aptel
2012-04-12 20:16 ` Lars Magne Ingebrigtsen
2012-04-12 21:57   ` Stefan Monnier
2012-04-13  0:49     ` Alp Aker
2012-04-13 10:05       ` Aurélien Aptel
2012-04-13 23:35         ` Alp Aker [this message]
2012-06-05 19:05           ` Aurélien Aptel
2012-06-05 22:54             ` Stefan Monnier
2012-06-06 12:30               ` Alp Aker
2012-06-17  0:40                 ` Alp Aker
2012-06-17  1:47                   ` Glenn Morris
2012-06-17 16:16                     ` Alp Aker
2012-06-18  0:55                       ` Aurélien Aptel
2012-06-18 18:30                         ` Glenn Morris
2012-04-13 17:49     ` Jan Djärv

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

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

  git send-email \
    --in-reply-to='CACxch4o=pcBa+nFxq=q6sePArs5Nhkwm-P=k=mAFhv8oMhqMoQ@mail.gmail.com' \
    --to=alptekin.aker@gmail.com \
    --cc=10736@debbugs.gnu.org \
    --cc=aurelien.aptel@gmail.com \
    --cc=larsi@gnus.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.