From b29ef6df69401778a9c51ad7383bcb24c9e603c4 Mon Sep 17 00:00:00 2001 From: Curtis // mashedkeyboard Date: Thu, 1 Sep 2016 11:57:58 +0100 Subject: [PATCH 1/2] 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")`. --- doc/user/methods.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/user/methods.rst b/doc/user/methods.rst index 12a076c..3edf37b 100644 --- a/doc/user/methods.rst +++ b/doc/user/methods.rst @@ -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 From f5c706db34f3330293e7fba7a61236bfa5c5afd6 Mon Sep 17 00:00:00 2001 From: Curtis // mashedkeyboard Date: Thu, 1 Sep 2016 12:10:35 +0100 Subject: [PATCH 2/2] Extended underline to fit the wording of the new subtitle --- doc/user/methods.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/user/methods.rst b/doc/user/methods.rst index 3edf37b..228170f 100644 --- a/doc/user/methods.rst +++ b/doc/user/methods.rst @@ -85,7 +85,7 @@ text("text") Prints raw text. Raises ``TextError`` exception. set("align", "font", "text_type", width, height, invert, smooth, flip) -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Set text properties.