One Dot Overshoot
Salutations gentlemen.
I'm trying to render a series of high precision lines, like those in a reticle. To that end, I'm attempting to control the rendering of the lines in device space. The issue I'm having at the moment is that I get lines that are one dot wider than expected, which I term overshoot. For example, if I use the following code fragment:
72 100 div 1 scale
[ 100 720 1 18 102 720 1 18 104 720 1 18 ] rectfill
assuming an output device with a resolution that is a multiple of 100 (e.g. 300 dpi, 600 dpi, etc.) the resulting lines are one dot wider than I would expect. In the example, if rendered at 300 dpi, I would expect lines that are 3 dots wide separated by spaces 3 dots wide, but instead I get lines that are 4 dots wide with spaces that are 2 dots wide. I use rectfill here instead of lineto to avoid the path centering issue (the leading edge of the line begins at a specified coordinate and proceeds for the specified width). Also note that the length of the lines are not required to be at such a high degree of precision. I can trim one dot off the resulting lines to compensate for this behaviour, but I wish to understand why the rendering works this way.
