Skip to content

Commit 6338bfa

Browse files
committed
Force use of the font
1 parent 13fc5f9 commit 6338bfa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

adafruit_matrixportal/matrixportal.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,10 @@ def add_text(
163163
the scrolling set to True will be cycled through.
164164
165165
"""
166-
if text_font:
167-
if text_font is terminalio.FONT:
168-
self._text_font.append(text_font)
169-
else:
170-
self._text_font.append(bitmap_font.load_font(text_font))
166+
if text_font is terminalio.FONT:
167+
self._text_font.append(text_font)
168+
else:
169+
self._text_font.append(bitmap_font.load_font(text_font))
171170
if not text_wrap:
172171
text_wrap = 0
173172
if not text_maxlen:

0 commit comments

Comments
 (0)