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

LibWeb: Add support for text in the AffineCommandExecutorCPU #24556

Merged
merged 4 commits into from
Jun 10, 2024

Conversation

MacDue
Copy link
Member

@MacDue MacDue commented Jun 9, 2024

Demo:
image

8mb.video-DSd-UCakbkty.mp4

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Jun 9, 2024
@MacDue
Copy link
Member Author

MacDue commented Jun 9, 2024

These are my last few commits a week or so ago. Probably won't continue with this experiment anymore (as transforms are likely not needed for the Serenity-only LibWeb, especially considering they won't work well with bitmap fonts)... but it was fun while it lasted :)

Maybe this is still useful though? Otherwise, I can just close this.

Copy link
Contributor

@nico nico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think merging this would be great! And who knows, maybe you'll continue it one day :)

A few test failures, otherwise looks great:

https://github.com/SerenityOS/serenity/actions/runs/9439428736/job/25997539818?pr=24556

Fail: /Users/runner/work/serenity/serenity/Tests/LibWeb/Ref/svg-text-effects.html
Fail: /Users/runner/work/serenity/serenity/Tests/LibWeb/Ref/canvas-text.html

Might need rebaselining or something? On https://github.com/SerenityOS/serenity/actions/runs/9439428736/job/25997539866?pr=24556 too (same tests).

Userland/Libraries/LibGfx/Path.cpp Show resolved Hide resolved
These are only cached via the `append_glyph_path_to()` API, so uses of
fonts that only care about bitmaps do not pay for this cache.
This applies an affine transform to a path in-place.
@nico
Copy link
Contributor

nico commented Jun 10, 2024

fddffdfdwfsf!

@nico nico merged commit 860804b into SerenityOS:master Jun 10, 2024
11 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants