Re: Need clarifications about text

Thierry Kormann wrote:
> 
> > For the case of gradientUnits="objectBoundingBox", the bounding box is the
> > tightest rectangle enclosing all of the rendered glyphs in the entire
> > 'text' element. This definitely warrants clarification in the spec. (I am
> > pretty sure the Adobe viewer has bugs in this area.)
> 
> According to this example :
> 
> <text style="fill:url(#horizontalGradient)">
> abc<tspan style="fill:url(#verticalGradient)">def</tspan>ghi
> </text>
> 
> You mean that if I have both a fill attribute on a text element and on its
> enclosed tspan element, the tspan must be rendered twice ?

No, it means that the size of the text element is the size of all its
content, including its children. Theabc and the def are rendered witha
horizontal gradient, and have a hole in between them big enough to
accomodate the tspan; the def is rendered in this hole witha vertical
gradient.

However, I would check what happens with text-decoration: underline. IIRC
the underline is not inherited and would thus have the horizontal gradient.

--
Chris

Received on Tuesday, 25 April 2000 09:36:26 UTC