On 16-4-2012 2:28, Máirín Duffy wrote:
Hi,
I need a sanity check from you, my fellow Inkscape users, if you don't mind:
Draw a 1 px straight vertical line using the pen tool, holding down Ctrl to make sure it's straight.
Is there any way to do this such that the line does not end up on an X value that is X.5, where X is any integer?
Same for a 1 px straight horizontal line - no matter where I click, no matter which snapping options I enable, that sucker will only land on Y values of something + 0.5.
Is this right? Is there anyway to avoid this? I've trained myself to manually go in and delete the 0.5 and not even think about it, but I'm trying to explain something to a new Inkscape user and I feel quite silly explaining my odd way of going in to the X and Y coordinate boxes and erasing the .5 off the end of the number to her.
I guess you are using the "visual bounding box" (preferences -> tools). 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. 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.
Cheers, Johan