Skip to content

Commit a098593

Browse files
authored
Merge pull request #32 from xdmtk/xdmtk-patch/font-bug
Add font_name to BitmapFont call for custom fonts
2 parents 71eeb45 + bf19811 commit a098593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_framebuf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def text(self, string, x, y, color, *, font_name="font5x8.bin", size=1):
359359
for chunk in string.split("\n"):
360360
if not self._font or self._font.font_name != font_name:
361361
# load the font!
362-
self._font = BitmapFont()
362+
self._font = BitmapFont(font_name)
363363
w = self._font.font_width
364364
for i, char in enumerate(chunk):
365365
self._font.draw_char(

0 commit comments

Comments
 (0)