diff --git a/adafruit_epd/epd.py b/adafruit_epd/epd.py index f2abc04..c62efa3 100644 --- a/adafruit_epd/epd.py +++ b/adafruit_epd/epd.py @@ -289,13 +289,13 @@ def line(self, x_0, y_0, x_1, y_1, color): # pylint: disable=too-many-arguments """Draw a line from (x_0, y_0) to (x_1, y_1) in passed color""" self._color_dup("line", (x_0, y_0, x_1, y_1), color) - def text(self, string, x, y, color, *, font_name="font5x8.bin"): + def text(self, string, x, y, color, *, font_name="font5x8.bin", size=1): """Write text string at location (x, y) in given color, using font file""" if self._blackframebuf is self._colorframebuf: # monochrome self._blackframebuf.text( string, x, - y, + y, size=size, font_name=font_name, color=(color != Adafruit_EPD.WHITE) != self._black_inverted, ) @@ -303,7 +303,7 @@ def text(self, string, x, y, color, *, font_name="font5x8.bin"): self._blackframebuf.text( string, x, - y, + y, size=size, font_name=font_name, color=(color == Adafruit_EPD.BLACK) != self._black_inverted, ) @@ -311,7 +311,7 @@ def text(self, string, x, y, color, *, font_name="font5x8.bin"): string, x, y, - font_name=font_name, + font_name=font_name, size=size, color=(color == Adafruit_EPD.RED) != self._color_inverted, )