mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibWeb: Use paths for text in CRC2D (if possible)
This allows for: * Transformed text (e.g. rotated text) * Stroked text * Filling/stroking text with PaintStyles (e.g. gradients) * Squashed/condensed text (via maxWidth parameter) Fixes part of #22817
This commit is contained in:
parent
774119bb57
commit
f19b17e089
5 changed files with 124 additions and 5 deletions
9
Tests/LibWeb/Ref/reference/canvas-text-ref.html
Normal file
9
Tests/LibWeb/Ref/reference/canvas-text-ref.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
body {
|
||||
background-color: white;
|
||||
}
|
||||
</style>
|
||||
<img src="./images/canvas-text-ref.png">
|
Loading…
Add table
Add a link
Reference in a new issue