-
Notifications
You must be signed in to change notification settings - Fork 715
[css-inline] Define how to synthesize ideographic-over
and ideographic-under
#10850
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
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. |
Feedback from JLReq TF Meeting on 1/28/2025 For idtp/ideo: For icft/icfb: It goes without saying that these values must be calculated based on the first CJK font in the font list because the first font in the list is typically chosen based on the author’s intent for Latin glyphs rather than CJK text. This remains true even in cases where CJK is the primary script in an internationalized environment. Does this answer your questions? |
I received a response from a font designer regarding possible representative glyphs for estimating icft/icfb. Characters with many strokes tend to have less flexibility in stroke placement, bringing their boundaries closer to the limits of the font’s design space. Because of this, characters with many strokes are better representative glyphs for estimating icft/icfb. Additionally, rightward sweeps on the right or leftward sweeps on the left often extend beyond the design space (e.g., 東 or 水), so they are best avoided. As a result, he recommended the following characters: 輩, 鬱, 酬, 湖 |
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: