diff --git a/print_tape.py b/print_tape.py index 42d784e..404fbe3 100644 --- a/print_tape.py +++ b/print_tape.py @@ -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)