Jump to content

Talk:Pinstripe/Printer: Difference between revisions

The purpose is to demonstrate how to position the dots on the printer.
No edit summary
(The purpose is to demonstrate how to position the dots on the printer.)
 
Line 17:
:::: It would be an acceptable solution to use the smallest marks that the language provides, rather than the printer provides, if this makes a difference. I do want to go too far down the road of "subpixel rendering" here, so true resolution is also an acceptable solution here. [[User:Markhobley|Markhobley]] 09:09, 9 July 2011 (UTC)
::::: There's no "smallest marks" provided by the language, at least not in postscript. You can draw a rectangle as small as the floating number precision the VM allows, and the language spec has something about how a renderer is supposed to rasterize it (if size is not zero, ''something'' should be drawn). If you have a PS printer, you could draw a line that's as thin as possible in some sense (0 setlinewidth), but you can't tell how much to move forward to draw the next line so that it's exactly "1 pixel" apart -- and why would you ever want to do that? For a printout, you always care more about how big it is physically in terms of inches and milimeters, and that's why PS and PCL (and PDF) are vector based page description. On a modern printer, you don't quite control if it does "subpixel rendering", and it normally doesn't need to: you have to sqint pretty hard to see a 600dpi dot, it's pointless. Really, this task serves what purpose exactly? Could you outline it here? --[[User:Ledrug|Ledrug]] 02:13, 10 July 2011 (UTC)
::::::The purpose is to demonstrate how to position the dots on the printer. The idea being, if you are able to produce the test pattern, then you have control of the printer. You can then adapt this technique for other printing tasks. The variation in the test pattern, enables you to gauge the usability of the printer in terms of effectiveness of the dot spacing. We probably need additional patterns for vertical spaces (using horizontal lines), but I didn't want to overcomplicate the code on here, so I decided to use separate tasks for these different elements. [[User:Markhobley|Markhobley]] 07:31, 10 July 2011 (UTC)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.