-
Notifications
You must be signed in to change notification settings - Fork 709
[css-inline-3] sTypoAscender / sTypoDescender should not be recommended #5485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
399aebf / https://lists.w3.org/Archives/Public/www-style/2010Aug/0419.html seems to be the origin of this recommendation |
/cc @jfkthame |
[emphasis mine] Are there circumstances where it uses something else? What else, and when? |
Recommending
My hazy recollection is that Windows had a broken way of measuring ascender and descender, Mac had a broken way to measure them, and |
@litherum Was expecting you'd file this issue. :) The text is copied over from CSS2. @litherum @jfkthame @svgeesus What do you think the spec should say about ascent/descent metrics? Should we just remove the note? Replace it with one talking about platform differences? Continue to suggest sTypo for anyone who's not using a platform API that has its own opinions? Something else? |
It is copied over all the way from the pre-CSS Web Fonts draft. At that time, sTypoAscender was the new shiny, and the hope was that Mac would move away from their old one and Windows would move away from their old one. (The latter did happen). I think just removing the note is best. |
+1 |
What needs to happen in order for this to progress? Since we're just discussing a note, can this be an editorial change? |
Sure, let's just remove the note. |
From https://twitter.com/nedley/status/1350145513849384961
If Ned Holbrook is describing using |
https://drafts.csswg.org/css-inline-3/#ascent-descent
WebKit on macOS and iOS uses Core Text, and Core Text usually uses the metrics from the
hhea
table. (Note,hhea
is lowercase, not uppercase.) The CSS spec should not pretend that using metrics fromhhea
is any worse than using metrics fromOS/2
.The text was updated successfully, but these errors were encountered: