1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

ADD inverted printing to set method

This commit is contained in:
Dean Rispin
2016-02-29 10:04:00 -08:00
committed by Patrick Kanzler
parent 8000cf258b
commit 7c98de6727
3 changed files with 13 additions and 3 deletions

View File

@@ -65,8 +65,8 @@ text("text")
Prints raw text. Raises ``TextError`` exception.
set("align", "font", "type", width, height)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
set("align", "font", "type", width, height, invert)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Set text properties.
* ``align`` set horizontal position for text, the possible values are:
@@ -79,6 +79,7 @@ Set text properties.
* ``type`` type could be ``B`` (Bold), ``U`` (Underline) or ``normal``. *Default:* normal
* ``width`` is a numeric value, 1 is for regular size, and 2 is twice the standard size. *Default*: 1
* ``height`` is a numeric value, 1 is for regular size and 2 is twice the standard size. *Default*: 1
* ``invert`` is a boolean value, True enables white on black printing. *Default*: False
cut("mode")
^^^^^^^^^^^