On Mon, 2012-04-16 at 12:47 +0200, Johan Engelen wrote:
I guess you are using the "visual bounding box" (preferences -> tools).
I don't think I ever modified this so it must be the default setting?
Oddly, my 1 px line is at .00 x .00 coordinates when I turn on geometric bounding box but the line is blurry / inbetween pixels. If I make the coordinates .05 x .05 then the line is crisp. (?!)
The path itself is at an integer coordinate. But because the stroke width is 1 px, the path spills out 0.5 px on both sides of the coordinates specified for the path. The X and Y coordinates in the toolbar correspond to the boundingbox values. (so you see a width of 1 px, for example).
I don't know exactly what you want to end up with.
I think if the pen tool is set by default to draw 1 px and it is impossible to draw a crisp, pixel-grid aligned 1 px wide (or any odd integer width) line, it's a bug, isn't it?
If you want your path to align exactly with pixels, I think you want the path itself to be at integer+0.5 (!!!). To do this, you could use a grid that is set to 0.5 px spacing, and then a major grid line every 2 lines. The major lines will then be pixel boundaries, and you can snap your paths to the minor grid lines at 0.5px.
It just seems odd to me that it's not possible to draw a straight pixel-grid aligned line in Inkscape out-of-the-box. Thanks for the workarounds and for confirming I'm not crazy though, I thought I must be missing something.
~m