Closed rosshadden closed 5 years ago
Declined for the same reasons as #5.
What is the reason for the denial? I don't see anything in #5 about it. You reference your comment about the ZPL, but it's not overridable. So without configuration options, and without overriding the ZPL, the only option is fork the repo. I must be missing something.
There are many reasons.
1) This is a project for debugging GRF rasters from CUPS. It is not a "printer driver" and the printing code only exists to test the rasters. There is no need to customise the origin.
2) The official Apple and Zebra rastertolabels always use 0,0. If you can convince either of them to update their filters then I'll consider it but most likely they will blame your printer's state.
https://github.com/steveathon/cups/blob/master/filter/rastertolabel.c#L624
https://sourceforge.net/p/zebratechcups/code/HEAD/tree/trunk/filter/rastertolabel.c#l691
3) For you it's just ^FO but for the next person it's ^LH, then the next wants the ^C* commands, etc. If even Zebra hasn't seen the need to offer these options in their official filter for the last 18 years why should I open that can of worms?
4) By adjusting the origin you are effectively setting a margin which begins to defeat the whole purpose of using rasters. Other thermal label languages such as Brother's are more explicit about this and will ignore margin settings when in raster mode (I have a private fork with Brother raster support so it'll make more sense in that context). It also destroys portability (which will be why Apple and Zebra stick to 0,0) and it's much better to always print to 0,0 and fix minor alignment issues by calibrating each individual printer in their LCD options (they will all be slightly different, even the same models).
5) The ZPL is easily customisable by subclassing it or using to_zpl_line() instead.
Fixes #7.