Re: [csswg-drafts] [css-fonts] Reconsider the definition of "first available font" (#4796)

> The first available font, used for example in the definition of [font-relative lengths](https://drafts.csswg.org/css-values-4/#font-relative-length) such as [ex](https://drafts.csswg.org/css-values-4/#ex) or in the definition of the [line-height](https://drafts.csswg.org/css2/#propdef-line-height) property, is defined to be the first font whose glyph for the U+0020 (space) character is not excluded by [unicode-range](https://drafts.csswg.org/css-fonts/#descdef-font-face-unicode-range), given the font families in the [font-family](https://drafts.csswg.org/css-fonts/#propdef-font-family) list (or a user agent’s default font, if none are available).

The phrasing "whose glyph for the U+0020 (space) character" could be thought to imply that the font necessarily must *have* such a glyph.

Maybe something more like "the first font for which the character U+0020 (space) is not excluded by a [unicode-range](https://www.w3.org/TR/css-fonts-4/#descdef-font-face-unicode-range) descriptor"?

Alternatively, we could keep the current text "the first font whose [unicode-range](https://www.w3.org/TR/css-fonts-4/#descdef-font-face-unicode-range) includes the U+0020 (space) character", but add a note that "installed fonts referenced directly by family name, rather than via `@font-face` rules, are considered to have a unicode-range that covers the entire Unicode code space".

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 4 November 2022 19:28:02 UTC