W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css-fonts] controlling palette use in multi-colour fonts

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 10 Feb 2015 11:30:28 +1100
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>
Message-ID: <20150210003028.GC6531@wok.mcc.id.au>
Tab Atkins Jr.:
> >   h1 {
> >     font: 48px FancyFont;
> >     font-palette: dark-background;  /* select the first palette in the
> >               font flagged as appropriate for use on dark backgrounds */
> >   }
> 
> So these are predefined palette names that indirect to one of the
> built-in palettes?  Sounds good to me.

Yes.

> So, in summary, I like:
> 
> @font-features {
>   @palettes {
>     /* map of author-chosen names to font-chosen palette indexes */
>   }
>   @palette-entries {
>     /* map of author-chosen palette entry names
>        to font-chosen palette entry indexes */
>   }
> }
> 
> font-palette: light | dark | <palette-name> | [ <palette-index-name> <color> ]#

I think the names “light” and “dark” might be confusing.  It’s not clear
whether “light” means you are selecting a palette that has light colours
(and thus looks good on a dark background) or selecting a palette that
looks good on a light background.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 10 February 2015 00:30:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC