#557: [Review Request] New CSS @font-face descriptors for overriding font metrics
Discussions
Comment by @svgeesus Sep 18, 2020 (See Github)
The proposal can now be viewed in the CSS Fonts 4 specification
Comment by @atanassov Sep 23, 2020 (See Github)
@plinss and myself reviewed the request during our Cork virtual f2f. On the back of the exhaustive discussion and consensus with the CSSWG last week we are satisfied with the proposal. One nit which we have and will open as an issue with CSSWG is dropping the -override
from the name.
Comment by @xiaochengh Sep 23, 2020 (See Github)
Thanks for reviewing!
Comment by @drott May 4, 2021 (See Github)
With the same intent to closer match fallback metrics to primary fonts the size-adjust
descriptor to @font-face has been added.
OpenedSep 16, 2020
Saluton TAG!
I'm requesting a TAG review of new CSS descriptors
ascent-override
,descent-override
andline-gap-override
for @font-face rule. (design doc)Example usage:
This allows web authors to override the metrics of a font and control text position within a line: the ascent, descent and line gap are set to exactly 60%, 40% and 0% of the em size. See also demo and its video recording.
There are two major use cases:
Further details:
You should also know that...
[please tell us anything you think is relevant to this review]
We'd prefer the TAG provide feedback as (please delete all but the desired option):
💬 leave review feedback as a comment in this issue and @-notify @xiaochengh