- From: Cameron McCormack <cam@mcc.id.au>
- Date: Fri, 22 Aug 2014 07:14:14 +1000
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: John Hudson <tiro@tiro.com>, Behdad Esfahbod <behdad@google.com>, John Daggett <jdaggett@mozilla.com>, www-style list <www-style@w3.org>, public-webfonts-wg <public-webfonts-wg@w3.org>
Tab Atkins Jr. wrote: > This seems easily addressable, if browsers are willing, by changing > 'color' to accept a comma-separated list of values, which are used by > multi-color glyphs in some defined order. I think I would prefer this to be at least partly defined in the @font-face rule, since the palette entries between different fonts are going to be entirely incompatible, and it wouldn't be great if you end up getting a font other than the one you expect. So something like the following what I've been imagining. I thought I had sent this to the list already but perhaps not. @font-palette FancyPalette { highlight: 0; shadow: 1; ornaments: 2; } @font-face { font-family: Fancy; src: url(MyFancyFont.woff); font-palette: FancyPalette; } h1 { font-family: Fancy; font-palette: highlight red, ornaments blue, shadow rgba(10, 20, 30, 0.5); }
Received on Thursday, 21 August 2014 21:14:51 UTC