Re: Lines are too thick

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>
eddy wrote:
> I am trying to draw an svg image in Firefox with dojo. It works fine,
> except 1px line are really 2 or 3 pixels wide which is very
> annoying...
....
 > <rect fill="none" fill-
> opacity="0" stroke="rgb(170, 170, 170)" stroke-opacity="1" stroke-
> width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-
> miterlimit="4" x="0" y="0" width="100" height="1000" stroke-
> dasharray="none" dojoGfxStrokeStyle="Solid"/>
...
> Any ideas on why this might be?

http://www.cairographics.org/FAQ/#sharp_lines I suspect, given the 
coordinates of your rectangle.  Put simply, you're trying to draw your 
line exactly halfway between two screen dots, so it ends up covering 
both of them.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.