HenrikBengtsson/brother-ptouch-label-printer-on-linux

Is there a way to set a fixed tape length

rileytuttle opened this issue · 0 comments

my use case needs the labels to be a fixed length.
Ideally the auto detect fontsize option would take the input text and the fixed length input to find the right font size.

seems like this might add a lot of complexity to the find_fontsize function though.

A simpler alternative might be to just print out the length of tape needed at the given fontsize. then I can just play around with the font sizes until it fits my needed length. Is there a way to equate the pixel length to physical length?
I guess I could look up the resolution of my printer and do the math myself. but if there is a way for the software to know the resolution of the print and then do the math, that would be better.