We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaeed21 commit 28b3879Copy full SHA for 28b3879
adafruit_display_text/label.py
@@ -178,7 +178,11 @@ def _get_ascent_descent(self):
178
179
# check a few glyphs for maximum ascender and descender height
180
glyphs = "M j'" # choose glyphs with highest ascender and lowest
181
- self._font.load_glyphs(glyphs)
+ try:
182
+ self._font.load_glyphs(glyphs)
183
+ except AttributeError:
184
+ # Builtin font doesn't have or need load_glyphs
185
+ pass
186
# descender, will depend upon font used
187
ascender_max = descender_max = 0
188
for char in glyphs:
0 commit comments