unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Steve Purcell <steve@sanityinc.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: Eli Zaretskii <eliz@gnu.org>,
	Bozhidar Batsov <bozhidar@batsov.com>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: sRGB color support in NS port
Date: Fri, 20 Dec 2013 20:21:55 +0000	[thread overview]
Message-ID: <19227E72-22D7-4466-AAA3-6C55D7CB31C0@sanityinc.com> (raw)
In-Reply-To: <16B838CD-13DC-468E-94D1-108EBFE68F6D@swipnet.se>

On 20 Dec 2013, at 18:55, Jan Djärv <jan.h.d@swipnet.se> wrote:
>>> From: Steve Purcell <steve@sanityinc.com>
>>> My understanding is that everyone who cares about colour accuracy on OS X builds his Emacs with an sRGB patch of some sort.
> 
> Your understanding is not fact.


Agreed. It would be nice to do a survey sometime.



> 
>>> As for making this a build option, I don’t even think the non-sRGB colours should be an option on OS X, though I can’t speak for the whole NS platform.
> 
> It must be an option.  The patch uses colorWithSRGBRed, which isn't availiable on OSX < 10.7.
> sRGBColorSpace isn't available on OSX 10.4, which Emacs still supports.
> Are you proposing ditching earlier OSX versions than 10.7?


No, in that case an option is clearly the better choice. But it should likely be enabled by default when supported:

In Windows, sRGB is the default color space [1], and sRGB is also the most widely-used standard color space on OS X. This presumably means that when people on those platforms pick RGB colors which they would like Emacs to reproduce, the hex values they obtain and use are for sRGB. (When picking colors on X, results will vary due to the patchy color management.)

And in any case, Generic RGB is not an “absolute color space” [2], meaning that its values have no correspondence with absolute well-defined colours, so telling a host OS to just display a given generic RGB colour is going to result in OS-dependent mapping into an absolute color space, which may or may not be sRGB. Better then, I would think, to just handle colors as sRGB throughout where possible.

-Steve


[1] http://msdn.microsoft.com/en-us/library/windows/hardware/gg487409.aspx
[2] https://en.wikipedia.org/wiki/Absolute_color_space


  parent reply	other threads:[~2013-12-20 20:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 17:41 sRGB color support in NS port Bozhidar Batsov
2013-12-20 18:04 ` Steve Purcell
2013-12-20 18:13   ` Eli Zaretskii
2013-12-20 18:55     ` Jan Djärv
2013-12-20 20:19       ` Bozhidar Batsov
2013-12-21 14:10         ` sRGB color support in NS port [PATCH] Steve Purcell
2013-12-21 14:59           ` Bozhidar Batsov
2013-12-21 16:16           ` Jan Djärv
2013-12-21 17:37             ` Steve Purcell
2013-12-21 18:10               ` Jan Djärv
2013-12-21 19:59                 ` Steve Purcell
2013-12-21 20:26               ` David De La Harpe Golden
2013-12-21 21:11                 ` Steve Purcell
2013-12-22  0:31                 ` Stephen J. Turnbull
2013-12-22 13:55                   ` Steve Purcell
2013-12-22 21:20                   ` David De La Harpe Golden
2013-12-22 21:32                     ` Jan Djärv
2013-12-22 22:41                       ` David De La Harpe Golden
2013-12-22 23:52                         ` Jan Djärv
2013-12-23 12:42                     ` Stephen J. Turnbull
2013-12-24 10:56                       ` Steve Purcell
2013-12-26  9:45                         ` Julien Danjou
2013-12-26 12:12                           ` Steve Purcell
2013-12-26 18:07                             ` Steve Purcell
2013-12-20 20:21       ` Steve Purcell [this message]
2013-12-20 18:12 ` sRGB color support in NS port 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

  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=19227E72-22D7-4466-AAA3-6C55D7CB31C0@sanityinc.com \
    --to=steve@sanityinc.com \
    --cc=bozhidar@batsov.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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).