mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:57:36 +00:00
LibWeb: Support transforms, stroking, gradients, etc for SVG <text>
This makes use of the new Gfx::Path::text() to handle SVG text elements, with this text is just a regular path, and can be manipulated like any other graphics element. This removes the SVGTextPaintable and makes both <text> and geometry elements use a new (shared) SVGPathPaintable. This is identical to the old SVGGeometryPaintable. This simplifies painting as once something is resolved to a Gfx::Path, the painting logic is the same.
This commit is contained in:
parent
50d33f79fa
commit
4c5d48f861
30 changed files with 144 additions and 180 deletions
|
@ -6,16 +6,16 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
SVGSVGBox <svg> at (8,8) content-size 784x261.328125 [SVG] children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
SVGTextBox <text.small> at (73.34375,79.859375) content-size 50.265625x42.46875 children: inline
|
||||
SVGTextBox <text.small> at (73.34375,88.359375) content-size 48.109375x37.484375 children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
SVGTextBox <text.heavy> at (138.6875,24.328125) content-size 153.703125x98 children: inline
|
||||
SVGTextBox <text.heavy> at (138.6875,43.953125) content-size 148.234375x79.71875 children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
SVGTextBox <text.small> at (187.671875,145.1875) content-size 36.90625x42.46875 children: inline
|
||||
SVGTextBox <text.small> at (187.671875,153.703125) content-size 34.59375x34.703125 children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
SVGTextBox <text.Rrrrr> at (220.34375,57) content-size 526.609375x130.65625 children: inline
|
||||
SVGTextBox <text.Rrrrr> at (220.34375,83.15625) content-size 519.34375x115.359375 children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
|
@ -24,7 +24,7 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x261.328125]
|
||||
SVGSVGPaintable (SVGSVGBox<svg>) [8,8 784x261.328125]
|
||||
SVGTextPaintable (SVGTextBox<text>.small) [73.34375,79.859375 50.265625x42.46875]
|
||||
SVGTextPaintable (SVGTextBox<text>.heavy) [138.6875,24.328125 153.703125x98]
|
||||
SVGTextPaintable (SVGTextBox<text>.small) [187.671875,145.1875 36.90625x42.46875]
|
||||
SVGTextPaintable (SVGTextBox<text>.Rrrrr) [220.34375,57 526.609375x130.65625]
|
||||
SVGPathPaintable (SVGTextBox<text>.small) [73.34375,88.359375 48.109375x37.484375]
|
||||
SVGPathPaintable (SVGTextBox<text>.heavy) [138.6875,43.953125 148.234375x79.71875]
|
||||
SVGPathPaintable (SVGTextBox<text>.small) [187.671875,153.703125 34.59375x34.703125]
|
||||
SVGPathPaintable (SVGTextBox<text>.Rrrrr) [220.34375,83.15625 519.34375x115.359375]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue