-
Notifications
You must be signed in to change notification settings - Fork 719
[css-inline-3] Define em-top and em-bottom baselines #5312
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
Thank you for working on this. A few questions:
|
i* corresponds to ideographic-* defined in https://drafts.csswg.org/css-inline-3/#baseline-types
I'm unsure, but I guess so.
Yes. jfkthame says particular metric is should be normalized to 1em. (Please note this is not a metric used for CSS layout. This is just for this particular Canvas API. See https://html.spec.whatwg.org/multipage/canvas.html#dom-textmetrics-fontboundingboxascent ) |
Thank you, so:
?
Thank you, yes, I think we're in sync. Fonts have horizontal and vertical metrics. Which metrics do we want? Maybe we suggest HTML Canvas to add horizontal and vertical metrics? |
Depends on the font format, some formats have an explicit ideographic-central baseline.
Yes.
I guess that's an issue for Canvas API :) In CSS we use the correct set depending on writing-mode... |
The CSS Working Group just discussed
The full IRC log of that discussion, right? |
See w3c/csswg-drafts#5312. And also #5429 for where all of this started. Ideally though w3c/csswg-drafts#5431 would be fixed too and we'd figure out how to update images/baselines.png (I've asked Ian if there's an original somewhere).
See w3c/csswg-drafts#5312. And also #5429 for where all of this started. Ideally though w3c/csswg-drafts#5431 would be fixed too and we'd figure out how to update images/baselines.png (I've asked Ian if there's an original somewhere).
See w3c/csswg-drafts#5312. And also #5429 for where all of this started. Ideally though w3c/csswg-drafts#5431 would be fixed too and we'd figure out how to update images/baselines.png (I've asked Ian if there's an original somewhere).
See w3c/csswg-drafts#5312. And also #5429 for where all of this started. This should help #6731 quite a bit too.
See w3c/csswg-drafts#5312. And also whatwg#5429 for where all of this started. This should help whatwg#6731 quite a bit too.
The Canvas API has several references into the metrics defined in
It also defines emHeightAscent and emHeightDescent but doesn't have a concrete definition for them. Talked with @jfkthame about what they might be defined as and currently thinking maybe we add in definitions for these for HTML to refer into, so all the related metrics are all defined in one place (even if CSS doesn't end up using this particular pair).
Proposed definition from me and @jfkthame is:
Roughly in code, something like:
CC @annevk @yiyix
The text was updated successfully, but these errors were encountered: