[csswg-drafts] [css-inline-3] sTypoAscender / sTypoDescender should not be recommended (#5485)

litherum has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline-3] sTypoAscender / sTypoDescender should not be recommended ==
https://drafts.csswg.org/css-inline-3/#ascent-descent

> Note: It is recommended that implementations that use OpenType or TrueType fonts use the metrics sTypoAscender and sTypoDescender from the font’s OS/2 table (after scaling to the current element’s font size) to find the ascent metric and descent metric for CSS layout. In the absence of these metrics, the "Ascent" and "Descent" metrics from the HHEA table should be used.

WebKit on macOS and iOS uses Core Text, and Core Text usually uses the metrics from the `hhea` table. (Note, `hhea` [is](https://docs.microsoft.com/en-us/typography/opentype/spec/hhea) lowercase, not uppercase.) The CSS spec should not pretend that using metrics from `hhea` is any worse than using metrics from `OS/2`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5485 using your GitHub account


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

Received on Saturday, 29 August 2020 04:16:14 UTC