[w3ctag/design-reviews] Canvas Text Metrics for Editing, Art and Design (Issue #1095)

schenney-chromium created an issue (w3ctag/design-reviews#1095)

こんにちは TAG-さん!

I'm requesting a TAG review of Additional Canvas TextMetrics features.

Web content developers often request improvements to canvas text support to enable richer text rendering and interaction. For rendering text there is a desire to perform per-glyph styling and rendering, where a glyph is the smallest unit of text. For editing, developers need better support for selection and caret position. Broadly speaking, developers would like editing capabilities similar to DOM content, and rendering capabilities similar to SVG text.

  - Explainer¹: https://github.com/Igalia/explainers/blob/main/canvas-formatted-text/text-metrics-additions.md
  - Specification: https://github.com/whatwg/html/pull/11000
  - WPT Tests: html/canvas/[element|offscreen]/text...
    * 2d.text.measure.index-from-offset*
    * 2d.text.measure.selection-rects*
    * 2d.text.measure.text-clusters*
  - Security and Privacy self-review²: https://docs.google.com/document/d/1YarKhEHqpvVJmzYkm_TzXmP-QGkmHo_G4mQtmPSb3m8/edit?usp=sharing
  - GitHub repo: https://github.com/whatwg/html/issues/10677
  - Primary contacts:
      - Stephen Chenney (@schenney-chromium), Igalia
      - Florin Malita, Google
  - Organization/project driving the specification: Google and Igalia
  - This work is being funded by: Google and Igalia
  - Primary standards group developing this feature: WHATWG
  - Incubation and standards groups that have discussed the design:
    - WHATWG - 11/21/24 [WHATNOT Meeting Notes](https://docs.google.com/document/d/1iaarr4Ho715CUULrvi_LD3TwshAcN2odDLBBEK0FjH0/edit?usp=sharing)  Limited visibility beyond our control. The issue of internationalization has been resolved already with the addition of a `lang` attribute to HTML canvas contexts.
  - Multi-stakeholder support³:
    - Chromium comments: Positive, https://chromestatus.com/feature/5075532483657728
    - Mozilla comments: https://github.com/mozilla/standards-positions/issues/1144
    - WebKit comments: https://github.com/WebKit/standards-positions/issues/436
  - Major unresolved issues with or opposition to this specification: Open discussion of the Text Clusters API, see https://github.com/whatwg/html/issues/10677 and https://github.com/whatwg/html/issues/11141
  - Status/issue trackers for implementations⁴: [Chromium](https://issues.chromium.org/issues/341213359)

Further details:

  - [X] I have reviewed the TAG's [Web Platform Design Principles](https://www.w3.org/TR/design-principles/)

You should also know that...

Our primary concerns is getting TAG feedback on the Text Clusters feature for querying and rendering per-glyph text information.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1095
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1095@github.com>

Received on Sunday, 18 May 2025 16:17:27 UTC