Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SVG disable anti-aliasing

3,855 views
Skip to first unread message

dwi...@dwilson.us

unread,
Feb 8, 2007, 2:19:32 PM2/8/07
to
Howdy,

I have an xhtml with image and rect tags in it, and would like to
disable anti-aliasing. Is there a way to do this? Looking at the
specifications and DTDs on w3c, I am not finding anything that
indicates you can do this. I did see this was a requirement in a draft
at http://www.w3.org/1999/06/25/WD-SVG-19990625/reqts.html#DRAntialiasing
and found the attributes stroke-antialiasing and text-antialiasing
specified again in a draft at http://www.w3.org/1999/06/25/WD-
SVG-19990625/painting.html and http://www.w3.org/TR/1999/WD-
SVG-19990412/text.html respectively. Did these ever get implemented? I
tried using these attributes and it did not appear to disable anti-
aliasing. I also did not find anything for image tags. This is
possible in VML so I would hope there is an SVG equivalent.

Thanks in advance for help on this matter.

Dan W

Cameron McCormack

unread,
Feb 8, 2007, 3:48:51 PM2/8/07
to
Hi Dan.

They became the *-rendering CSS properties. So for a shape, you can do:

<circle cx="100" cy="100" r="50" shape-rendering="crispEdges"/>

See: http://www.w3.org/TR/SVG11/painting.html#RenderingProperties

--
Cameron McCormack, http://mcc.id.au/
xmpp:hey...@jabber.org ▪ ICQ 26955922 ▪ MSN c...@mcc.id.au

0 new messages