better spacing
This commit is contained in:
parent
e8c39012a9
commit
72b73da310
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue