Re: [css3-fonts] "font-feature-settings: none" shorthand?

On Thu, May 30, 2013 at 11:50 PM, John Daggett <jdaggett@mozilla.com> wrote:

>
> Glenn Adams wrote:
>
> > My interpretation of that is "ideological fascism". In any case, I'm
> > not proposing something that can't be expressed already. I'm just
> > proposing a shorthand. It is irrelevant if the shorthand makes it
> > easier for an author to abuse himself.
>
> Um, discussions of fascism aside I don't think what you're describing
> is any sort of improvement over:
>
>   font-variant: none;
>   font-feature-settings: normal;
>
> This is pretty dang close to what you've described as the use case.
>

Not really.

Let's say for script S, the following features are enabled by default:

'ccmp'
'liga'
'loca'
'kern'
'mark'
'mkmk'

Now I could specify:

font-feature-settings:
'ccmp' off,
'liga' off,
'loca' off,
'kern' off,
'mark' off,
'mkmk' off;

that is, if I happen to know that the implementation enables these by
default and that the font I'm using uses these, or I could specify:

font-feature-settings: none;

or, if you prefer,

font-feature-settings: off;

or, if you prefer a wildcard:

font-feature-settings: * off;

In any case, this is not what you get by:

font-variant: none; font-feature-settings: normal;

Frankly, this is a very straightforward syntactic shorthand, easily
implementable (if one supports font-feature-settings at all).






> The only features left enabled are localized forms and mark-related
> features.  If you really think we need a property value to disable
> those universally, I suggest a slight rename of the value:
>
>   font-feature-settings: shoot-myself-in-the-foot;
>
> :P
>
> Cheers,
>
> John Daggett
>
>

Received on Friday, 31 May 2013 06:02:11 UTC