We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 387d67e + 713692a commit 463fc68Copy full SHA for 463fc68
adafruit_display_text/label.py
@@ -126,7 +126,7 @@ def _update_text(self, new_text): # pylint: disable=too-many-locals
126
glyph = self._font.get_glyph(ord(character))
127
if not glyph:
128
continue
129
- right = max(right, x + glyph.width)
+ right = max(right, x + glyph.width + glyph.shift_x)
130
if y == 0: # first line, find the Ascender height
131
top = min(top, -glyph.height + y_offset)
132
bottom = max(bottom, y - glyph.dy + y_offset)
0 commit comments