text background

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

hauke
02-22-2005, 04:17 AM
may be this example 'Using getBBox (http://www.learnsvg.com/tutorial2/example/getBBox.svg)' helps!?!

greetings - hauke

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum