-
Notifications
You must be signed in to change notification settings - Fork 659
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
[css-inline] Define how to synthesize ideographic-over
and ideographic-under
#10850
Comments
cc @alanbaradlay who implemented this in WebKit. Maybe he can help answer? |
This is currently defined in https://www.w3.org/TR/css-inline-3/#baseline-synthesis ; though if it needs some improvement, we can improve it. |
Thank you for the pointer, I didn't know the section. I read it, but I'm not sure if I understand the algorithm in this section. Can you help?
and the central baseline:
Am I reading this correctly that this is defined from each other? I'm having difficulty to understand what it suggests when all of them are missing. If it means to fallback to the item 3:
Is this suggesting to use ascent/descent as the synthesized ideographic-over and ideographic-under? For |
My thoughts on the two original questions here:
From metrics present in the first available font (as described in css-inline). (I think synthesizing by measuring the actual bounds of specific glyphs would problematic for a couple of reasons: the results may be poor for more ornately-styled fonts that do not have such "regular" glyph shapes as a standard Gothic or similar face; and because of the potential interaction with font subsetting, which will be confusing/unpredictable for authors.)
From the first font. For predictable behavior, these layout metrics should be consistently derived from the primary font specified by the author, not dependent on what fonts happen to be present later in the cascade. |
The
text-box-edge
property has text-edge as its value.It defines that:
ideographic
: Use the ideographic-over baseline/ideographic-under baseline as the over/under edge.ideographic-ink
: Use the ideographic-ink-over baseline/ideographic-ink-under baseline as the over/under edge.Which goes to these definitions:
Questions:
@fantasai @nt1m @vitorroriz @Clqsin45 @bfgeek @jfkthame @kidayasuo @xfq
The text was updated successfully, but these errors were encountered: