I want CSS to have access to font metrics #201
aarongustafson
started this conversation in
Wants
Replies: 1 comment
-
This would only do what you want as long as But this is covered in https://www.w3.org/TR/css-inline-3/#leading-trim |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are a lot of typography-related properties in CSS, but we are still far from what can be done in print. For instance, we rely on hacks to clean up the start/end of a paragraph's ascender/descender space for optical alignment. It would be useful to expose some font metrics to CSS to be able to adjust this in a clean way:
Imagine the possibilities with a font function similar to custom properties or environment variables!
https://webwewant.fyi/wants/129/
Beta Was this translation helpful? Give feedback.
All reactions