W3C home > Mailing lists > Public > www-style@w3.org > May 2013

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

From: Glenn Adams <glenn@skynav.com>
Date: Fri, 31 May 2013 00:01:24 -0600
Message-ID: <CACQ=j+f1qkh60Y1_03sn+JQDOi+sf--UP1oTCJP1Srv6HnY-PA@mail.gmail.com>
To: John Daggett <jdaggett@mozilla.com>
Cc: W3C Style <www-style@w3.org>
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:


Now I could specify:

'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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:11 UTC