From 72b73da310f045e2cc54f119659c52359d88f9aa Mon Sep 17 00:00:00 2001 From: Joe Lothan Date: Mon, 15 Jun 2026 17:56:01 -0400 Subject: [PATCH] better spacing --- print_tape.py | 3 +++ 1 file changed, 3 insertions(+) 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)