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.
1 parent fbe1fbd commit adddcf2Copy full SHA for adddcf2
adafruit_display_text/__init__.py
@@ -385,6 +385,16 @@ def bounding_box(self) -> Tuple[int, int]:
385
first two numbers are offset from the x, y origin of this group"""
386
return tuple(self._bounding_box)
387
388
+ @property
389
+ def height(self) -> int:
390
+ """The height of the label determined from the bounding box."""
391
+ return self._bounding_box[3] - self._bounding_box[1]
392
+
393
394
+ def width(self) -> int:
395
+ """The width of the label determined from the bounding box."""
396
+ return self._bounding_box[2] - self._bounding_box[0]
397
398
@property
399
def line_spacing(self) -> float:
400
"""The amount of space between lines of text, in multiples of the font's
0 commit comments