W3C home > Mailing lists > Public > www-style@w3.org > August 2014

Re: [css-fonts] selecting color or monochrome glyphs for emoji fonts

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 21 Aug 2014 11:34:02 +0100
Message-ID: <53F5CB1A.7040207@mcc.id.au>
To: Christoph Päper <christoph.paeper@crissov.de>
CC: www-style list <www-style@w3.org>, public-webfonts-wg <public-webfonts-wg@w3.org>
Christoph Päper wrote:
> There are some points to consider, though.
>
>   — Are glyphs with inherent color(s) affected by the ‘color’ property?

I'm unsure how this works with the COLR table, but with the SVG table, 
there is a special paint value context-fill which represents the fill of 
the text specified in the outer document.  So if your glyph were:

   <g glyphid="1">
     <rect ... fill="blue"/>
     <circle ... fill="context-fill"/>
   </g>

and glyph ID 1 was for "A" and the document had:

   <span style="font-family: MyColourfulFont; color: red">A</span>

then the <rect> would always render as blue and the circle as blue.

>   — Does this change if the stylesheet says something non-default,
>     e.g. using ‘font-variant-color’?

font-variant-color would only switch whether the glyph from the 
COLR/SVG/CBDT tables is used or whether the glyf/CFF glyph is used.
Received on Thursday, 21 August 2014 10:34:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:45 UTC