There's not a choice of either text or tspan, they can both appear within a text element.
Handling of x and y needs changes: for every element drawn within a text element, the next one starts where the previous one left off. So we need to measure text to be able to draw several spans correctly. Sample:
There's not a choice of either text or
tspan
, they can both appear within a text element.Handling of
x
andy
needs changes: for every element drawn within atext
element, the next one starts where the previous one left off. So we need to measure text to be able to draw several spans correctly. Sample:tspan
s may introduce different stylinghandle underline and strikethrough by drawing a separate line for each span.
x
,y
,dx
, anddy
may have more than one value, in which case the values get distributed to each character in the text/span.text with
stroke
is not strokedPerhaps we should divide this into several tasks ...