Updated bounding box to include trailing whitespace
This commit is contained in:
parent
6695e3c7c4
commit
713692a889
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class Label(displayio.Group):
|
|||
glyph = self._font.get_glyph(ord(character))
|
||||
if not glyph:
|
||||
continue
|
||||
right = max(right, x + glyph.width)
|
||||
right = max(right, x + glyph.width + glyph.shift_x)
|
||||
if y == 0: # first line, find the Ascender height
|
||||
top = min(top, -glyph.height + y_offset)
|
||||
bottom = max(bottom, y - glyph.dy + y_offset)
|
||||
|
|
|
|||
Loading…
Reference in a new issue