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

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