Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-color] Add note for relationship between color property and color glyphs #561

Merged
merged 1 commit into from
Mar 8, 2017
Merged

[css-color] Add note for relationship between color property and color glyphs #561

merged 1 commit into from
Mar 8, 2017

Conversation

upsuper
Copy link
Member

@upsuper upsuper commented Oct 2, 2016

@upsuper upsuper added the css-color-4 Current Work label Oct 2, 2016
@Crissov
Copy link
Contributor

Crissov commented Oct 4, 2016

Text color (and its opacity) should probably not affect PNGinOTF glyphs (CBDT and Apple), but should it also not affect fonts with COLR or SVG  tables? Should we solely rely on future explicit CPAL control?

#352 is somewhat related and I hope to see the issue on a WG agenda soon.

@svgeesus svgeesus added the css-fonts-4 Current Work label Oct 6, 2016
@svgeesus
Copy link
Contributor

svgeesus commented Oct 6, 2016

The specification for COLR and CPAL says that the color values are in sRGB.
The specification for SVG allows whatever CSS defines.

CSS4 Fonts does, as @Crissov mentions, allow palette selection, and new palettes in CSS.

Copy link
Contributor

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the color glyph uses CPAL then there is a special value for currentColor so this note is not strictly true. Also for SVGinOpenType glyphs, currentColor could be used s the note is incorrect in that case also.

@tabatkins
Copy link
Member

I'd prefer text more like:

Note: This property has no effect on "color glyphs", such as emoji in some fonts, which are explicitly colored by a built-in palette, unless explicitly specified otherwise by a font specification. For example, some colored fonts use a palette with the ability to refer to the "current color", such as the CPAL table in OpenType; in that case the "current color" is set by this property, identically to how the ''currentcolor'' value works.

Am I referring to things correctly here? I'm just assuming CPAL is an OpenType table.

@litherum
Copy link
Contributor

litherum commented Mar 8, 2017

I prefer @tabatkins's comment too, because it is more descriptive.

@svgeesus
Copy link
Contributor

svgeesus commented Mar 8, 2017

Am I referring to things correctly here? I'm just assuming CPAL is an OpenType table.

It is, yes.
https://www.microsoft.com/typography/otspec/cpal.htm

@svgeesus svgeesus merged commit 27e274d into w3c:master Mar 8, 2017
@upsuper upsuper deleted the color-glyph-note branch March 8, 2017 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-color-4 Current Work css-fonts-4 Current Work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants