[csswg-drafts] [css-fonts-5][css-inline-3] Text Edge Metrics Registry (#11384)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-5][css-inline-3] Text Edge Metrics Registry ==
One of the [known issues](https://github.com/w3c/csswg-drafts/issues/5244) with the `text-box-trim` property, the `initial-letter` property, and `font-size-adjust`, is that we only have metrics for Western and CJK writing systems. To the extent that these happen to correspond to the metrics for other scripts _for a given font_, authors can use them for other writing systems as well; but the correspondence is not guaranteed. For example, depending on  the font, Hebrew's top edge sometimes coincides with the cap height, sometimes the ex height, and sometimes partway in between.

We need to support metrics for _all_ writing systems. And to do that, we need to identify what's missing.

As I mentioned in https://github.com/w3c/csswg-drafts/issues/5244, I think we need a registry; but until we have one set up, I suggest we collect the information here. Specifically, the information we need for each writing system (ideally from actual graphic designers and typographers) is:

- Name of the script
- Name of top-edge metrics used for alignment and spacing (as known by typographers and calligraphers).
- Name of bottom-edge metrics used for alignment and spacing (same)
- Whether or not these metrics _always_ correspond to the Latin cap-height/ex-height/baseline or CJK ideographic top/bottom when designed into the same font as Latin or CJK glyphs.
- If the answer isn't _always_, design samples (ideally from multiple fonts with differing metrics) showing:
      - a mixture of Latin glyphs and the script's own glyphs (and optionally also CJK glyphs, if relevant and available) _from the same font_ for comparison
      - text wrapped and optically aligned within a rectangular colored box
      - text optically centered against a rectangular colored box
      - text optically top-aligned to a rectangular colored box
      - text optically bottom-aligned to a rectangular colored box
- Optionally: List of other scripts to which this script's metrics typographically correspond. (For example, the height of Greek capital letters basically always correspond to the height of Latin capital letters.)
- Optionally: Ideas on how to figure out the top/bottom edge metrics if they're missing, whether by calculating from existing metrics or by measuring certain glyphs... (For example, [CSS suggests](https://www.w3.org/TR/css-values-4/#ex) a missing `ex` metric fall back to either 0.5em or a measurement of the letter 'o'.)
- If not a member of the CSSWG, permission to include this information in a future W3C [technical report](https://www.w3.org/policies/process/#Reports). :)


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11384 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 16 December 2024 23:17:34 UTC