Skip to content

Commit 48f2fb0

Browse files
authored
Merge pull request #64 from kmatch98/bitmap_zero
Check for zero width/height glyphs
2 parents f519524 + b311402 commit 48f2fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_text/label.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def _update_text(
261261
not self._text
262262
or old_c >= len(self._text)
263263
or character != self._text[old_c]
264-
):
264+
) and (glyph.width > 0 and glyph.height > 0):
265265
try:
266266
# pylint: disable=unexpected-keyword-arg
267267
face = displayio.TileGrid(

0 commit comments

Comments
 (0)