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

Implement ctx.strokeTextCluster() #50942

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Feb 25, 2025

This CL creates a new method for CanvasRenderingContext2d that strokes
a TextCluster object. Its fill counterpart, ctx.fillTextCluster(), was
merged in https://crrev.com/c/5854270.

This new method came to be from the discussion around the spec for the
TextMetrics additions: whatwg/html#11000

The existing tests for fillTextCluster() were renamed to include the
method name in the title, since before only "rendering" was mentioned.
The new tests are explicitly named using strokeTextCluster().

A line that was duplicated on the tests for fillTextCluster() was also
removed.

Bug: 341213359
Change-Id: Icd792b56e48f3ea5091e958671c19fcefe67fdec

Reviewed-on: https://chromium-review.googlesource.com/6282180
WPT-Export-Revision: c92ffa514b2a0bc920064d9bd5a199b558500777

This CL creates a new method for CanvasRenderingContext2d that strokes
a TextCluster object. Its fill counterpart, ctx.fillTextCluster(), was
merged in https://crrev.com/c/5854270.

This new method came to be from the discussion around the spec for the
TextMetrics additions: whatwg/html#11000

The existing tests for fillTextCluster() were renamed to include the
method name in the title, since before only "rendering" was mentioned.
The new tests are explicitly named using strokeTextCluster().

A line that was duplicated on the tests for fillTextCluster() was also
removed.

Bug: 341213359
Change-Id: Icd792b56e48f3ea5091e958671c19fcefe67fdec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants