Skip to content

Commit 69909e7

Browse files
committed
Original Docs
1 parent c8b9475 commit 69909e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

adafruit_display_text/bitmap_label.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ class Label(LabelBase):
4040
This method is memory-conserving relative to ``label.py``.
4141
The ``max_glyphs`` parameter is ignored and is present
4242
only for direct compatibility with label.py.
43+
4344
For further reduction in memory usage, set ``save_text=False`` (text string will not
4445
be stored and ``line_spacing`` and ``font`` are immutable with ``save_text``
4546
set to ``False``).
47+
4648
The origin point set by ``x`` and ``y``
4749
properties will be the left edge of the bounding box, and in the center of a M
4850
glyph (if its one line), or the (number of lines * linespacing + M)/2. That is,
4951
it will try to have it be center-left as close as possible.
52+
5053
:param Font font: A font class that has ``get_bounding_box`` and ``get_glyph``.
51-
Must include a capital M for measuring character size.
54+
Must include a capital M for measuring character size.
5255
:param str text: Text to display
5356
:param int max_glyphs: Unnecessary parameter (provided only for direct compability
5457
with label.py)
@@ -76,7 +79,7 @@ class Label(LabelBase):
7679
tab character
7780
:param str label_direction: string defining the label text orientation. There are 5
7881
configurations possibles ``LTR``-Left-To-Right ``RTL``-Right-To-Left
79-
``UPR``-Upwards ``DWR``-Downwards and ``UPD``-Upside-Down. It defaults to ``LTR``"""
82+
``UPD``-Upside Down ``UPR``-Upwards ``DWR``-Downwards. It defaults to ``LTR``"""
8083

8184
# pylint: disable=unused-argument, too-many-instance-attributes, too-many-locals, too-many-arguments
8285
# pylint: disable=too-many-branches, no-self-use, too-many-statements

0 commit comments

Comments
 (0)