- From: fantasai via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 Aug 2024 03:09:29 +0000
- To: public-css-archive@w3.org
@michaeltaranto For a lot of fonts, the ascent is actually much higher than the cap height. So while your chart looks very nice, it doesn't actually match reality since what you're describing as ascent+descent is actually not the set of metrics that you get with `text`. (This is a lot more true in fonts that range outside of the English alphabet.) The closest to it would probably be cap+text. The `text` keywords match up to the `text-top` and `text-bottom` values of `vertical-align`, which matches to the boxes you see below: ![ascent-descent](https://github.com/user-attachments/assets/63d2a5fe-73a4-4090-9ae3-b79f5c1a80c4) The logic of matching it up to the `cap` and `ex` units does make sense. I just worry about people trimming more than they thought they were, if they are trying to only adjust the top line. -- GitHub Notification of comment by fantasai Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10703#issuecomment-2285258010 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 August 2024 03:09:30 UTC