W3C home > Mailing lists > Public > www-svg@w3.org > November 2006

Background Color for Text

From: Darrik Spaude <dspaude@multitech.com>
Date: Tue, 14 Nov 2006 14:09:30 -0600
Message-ID: <1CD05B980C94AC408B37C82BBABAA3E604961DEE@mtsexchange.dc.multitech.prv>
To: <www-svg@w3.org>

Hello,

I have been working on implementing a method for highlighting text
through the use of a rectangular, solid-fill background behind text.
Currently I have been using <rect> and some math to generate the
"highlight" behind the text. However, if there was a background-color
option for text just like in CSS this would make everything much easier
and more accurate (different font families cause my highlight scheme to
fail horribly). My application is dynamic generation of SVG images with
embedded text with the option to highlight certain text elements while
leaving other text elements unhighlighted.

Is there any method for the person writing HTML/CSS/SVG (to be viewed in
a browser/SVG viewer) to generate a background color for text without
resorting to complex algorithms and assumptions about fonts/glyphs
(technical details about which are typically are not available to the
SVG document itself)?

Thanks for your time,
Darrik
Received on Wednesday, 15 November 2006 13:44:36 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:35 GMT