Corrected set() command documentation

The documentation currently says that `printer.set(type="B")` is the way to bold text. It won't work - you need to use `printer.set(text_type="B")`.
This commit is contained in:
Curtis // mashedkeyboard 2016-09-01 11:57:58 +01:00 committed by GitHub
parent cbe38648f5
commit b29ef6df69
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ text("text")
Prints raw text. Raises ``TextError`` exception.
set("align", "font", "type", width, height, invert, smooth, flip)
set("align", "font", "text_type", width, height, invert, smooth, flip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Set text properties.
@ -96,7 +96,7 @@ Set text properties.
* RIGHT > > *Default:* left
* ``font`` type could be ``A`` or ``B``. *Default:* A
* ``type`` type could be ``B`` (Bold), ``U`` (Underline) or ``normal``. *Default:* normal
* ``text_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