1
Fork 0
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:
MacDue 2024-02-11 17:18:55 +00:00 committed by Alexander Kalenik
parent 774119bb57
commit f19b17e089
5 changed files with 124 additions and 5 deletions

View file

@ -0,0 +1,9 @@
<style>
* {
margin: 0;
}
body {
background-color: white;
}
</style>
<img src="./images/canvas-text-ref.png">