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 b69892a commit 05c8a9fCopy full SHA for 05c8a9f
adafruit_display_text/__init__.py
@@ -245,7 +245,7 @@ def __init__(
245
if self.base_alignment:
246
self._y_offset = 0
247
else:
248
- self._y_offset = self._get_ascent() // 2
+ self._y_offset = self._ascent // 2
249
250
def _get_ascent_descent(self) -> Tuple[int, int]:
251
""" Private function to calculate ascent and descent font values """
@@ -268,9 +268,6 @@ def _get_ascent_descent(self) -> Tuple[int, int]:
268
descender_max = max(descender_max, -this_glyph.dy)
269
return ascender_max, descender_max
270
271
- def _get_ascent(self) -> int:
272
- return self._get_ascent_descent()[0]
273
-
274
@property
275
def font(self) -> None:
276
"""Font to use for text display."""
0 commit comments