mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
LibWeb: Implement painting for svg text
The implementation of painting for SVG text follows the same pattern as the implementation of painting for SVG geometries. However, instead of reusing the existing PaintableWithLines to draw text, a new class called SVGTextPaintable is introduced. because everything that is painted inside an SVG is expected to inherit from SVGGraphicsPaintable. Therefore reusing the text painting from regular text nodes would require significant refactoring.
This commit is contained in:
parent
81a6976e90
commit
0d8d7ae94e
9 changed files with 216 additions and 0 deletions
|
@ -22,6 +22,8 @@ namespace Web::SVG::AttributeNames {
|
|||
E(contentStyleType) \
|
||||
E(cx) \
|
||||
E(cy) \
|
||||
E(dx) \
|
||||
E(dy) \
|
||||
E(diffuseConstant) \
|
||||
E(edgeMode) \
|
||||
E(filterUnits) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue