michaelrsweet / lprint

A Label Printer Application
https://www.msweet.org/lprint
Apache License 2.0
219 stars 29 forks source link

Add label definitions with a width of 105 mm #141

Open mairas opened 1 month ago

mairas commented 1 month ago

lprint seems to pick the maximum allowed width as the maximum supported label size width. This PR adds some 105mm label sizes to the TSPL driver to allow labels wider than 4in.

I'm not sure this is an ideal solution, though. What if some label printer supports, say, A4 width labels? Wouldn't it be better to allow arbitrary label sizes in pappl, or define an explicit and configurable max width parameter?

michaelrsweet commented 1 month ago

The roll_min_NNNxNNNuu and roll_max_NNNxNNNuu sizes in the list define the min and max label sizes that are allowed... We can update these to be metric and include the 105mm max width.

But that said, I'm not sure whether all TSPL printers will support 105mm max or just the one you are working with. There are a LOT of inexpensive label printers using a common 203dpi thermal print head/engine that supports a TSPL subset, in addition to the "original" TSC label printers.