Skip to content

Commit 5a514ce

Browse files
authored
Merge pull request #85 from kmatch98/glyph_speedup
Include `load_glyphs` of full text string prior to character-processing loop in `_update_text`
2 parents a99517f + 62de33b commit 5a514ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_display_text/label.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def _update_text(
237237
else:
238238
i = 0
239239
tilegrid_count = i
240+
self._font.load_glyphs(new_text + "M")
240241
y_offset = int(
241242
(
242243
self._font.get_glyph(ord("M")).height

0 commit comments

Comments
 (0)