Skip to content
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] Specify fallback baselines estimations for text? #9232

Open
yiyix opened this issue Aug 23, 2023 · 3 comments
Open

[css-inline] Specify fallback baselines estimations for text? #9232

yiyix opened this issue Aug 23, 2023 · 3 comments
Labels
css-inline-3 Current Work

Comments

@yiyix
Copy link

yiyix commented Aug 23, 2023

In the CSS spec, hanging baseline is defined as the following Corresponds to hanging baseline from which characters in Tibetan and similar unicameral scripts with a strong but not absolute top edge seem to “hang”. Assigned to hang in OpenType and to bsln value 3 in TrueType AAT.

It didn't describe what's the fallback value for hanging baseline if "hang" is missing in OpenTyoe table. The definition is not entirely clear as well, it only says a strong but not absolute top edge. So it allows browsers to have their own interpretation of the baseline value if "hang" is missing in OpenType table. I am wondering if we could add a note to suggest how this value could be computed from font ascent and font descent when it's missing.

ideographic baseline has the same issue.

@drott drott added the css-inline-3 Current Work label Aug 24, 2023
@drott
Copy link
Collaborator

drott commented Aug 24, 2023

I agree this should be addressed. UA's implementing different heuristics when the hang entry is not available from the base OpenType table is not interoperable.

@drott
Copy link
Collaborator

drott commented Aug 24, 2023

CC @kojiishi

@drott
Copy link
Collaborator

drott commented Aug 29, 2023

Compare related CSS WG issue #5380 for a similar discussion on what to do when a metric is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-inline-3 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants