This commit is contained in:
Infinidoge 2025-01-31 02:31:56 -05:00
parent 9353b6499a
commit 15b40a6905
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -111,7 +111,15 @@ class ReceiptPrinter(CupsPrinter):
def title(self, text, size=6, width=None, height=None):
width = width or size
height = height or size
with self.set(align="center", bold=True, invert=True, smooth=True, custom_size=True, width=width, height=height):
with self.set(
align="center",
bold=True,
invert=True,
smooth=True,
custom_size=True,
width=width,
height=height,
):
self.textln(text)
self.ln()