Re: [csswg-drafts] [css-fonts-4] Behavior for variable fonts with 'ital' axis ambiguous / underspec'ed

The [`ital` axis](https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxistag_ital) is a bit weird; as registered, it is more for grouping roman and italic within a family than for a roman to italic variation axis:

> The 'ital' axis tag is used within a STAT table of italic fonts to provide a complete characterization of a font in relation to its family within the STAT table. The Italic axis can be used as a variation axis within a variable font, though this _is not expected to be common_.

The problem is that when it **is** used as a variation axis, it is not used for matching.

```
@font-face { /* Font Face 1 has ital = 0.3 */
font-family: Example1;
font-style: auto
}
p { 
  font-style: italic; 
}
```
Currently, regardless of the value of the `ital` axis, it will never be matched with auto, only by explicitly declaring `font-style: italic` in the descriptor:

> The auto values for these three descriptors have the following effects:
>    For font selection purposes, the font is selected as if the appropriate initial value is chosen

The initial value for the font-style descriptor is `normal`, so even with `ital=1.0` it will never match unless explicitly described as italic. Instead, the low-level property has to be used:

```
i, em {
  font-family: Example1;
  font-variation-settings: ital 0.8; 
}
```

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3125#issuecomment-422478397 using your GitHub account

Received on Tuesday, 18 September 2018 17:24:56 UTC