Kemin
02-18-2005, 12:22 AM
Does any one out there know how to render the background of text. In html it would
by very easy to make the background a particular color with CSS. This turned out to be
harder to do in SVG. You could do it with <g><rect some size /><text> to be the
same size as the rect</text></g>
The problem with drawing a rect then the text is how do you know the size of the text,
especially if the text is not fixed (as comming from a database and <tspan> was
used to break long lines).
Appreciate your comment.
Kemin
by very easy to make the background a particular color with CSS. This turned out to be
harder to do in SVG. You could do it with <g><rect some size /><text> to be the
same size as the rect</text></g>
The problem with drawing a rect then the text is how do you know the size of the text,
especially if the text is not fixed (as comming from a database and <tspan> was
used to break long lines).
Appreciate your comment.
Kemin