better spacing

This commit is contained in:
Joe Lothan 2026-06-15 17:56:01 -04:00
parent e8c39012a9
commit 72b73da310

View file

@ -45,6 +45,9 @@ def main():
p.hw("INIT")
# ESC V 1: 90° clockwise character rotation (not exposed by python-escpos)
p._raw(b"\x1b\x56\x01")
# ESC 3 n: set line spacing to n/180 inch. Font A chars are 12 dots wide,
# so n=12 makes rotated characters sit flush with no gap.
p._raw(b"\x1b\x33\x0c")
with open(csv_file) as f:
reader = csv.reader(f)