@@ -40,15 +40,18 @@ class Label(LabelBase):
40
40
This method is memory-conserving relative to ``label.py``.
41
41
The ``max_glyphs`` parameter is ignored and is present
42
42
only for direct compatibility with label.py.
43
+
43
44
For further reduction in memory usage, set ``save_text=False`` (text string will not
44
45
be stored and ``line_spacing`` and ``font`` are immutable with ``save_text``
45
46
set to ``False``).
47
+
46
48
The origin point set by ``x`` and ``y``
47
49
properties will be the left edge of the bounding box, and in the center of a M
48
50
glyph (if its one line), or the (number of lines * linespacing + M)/2. That is,
49
51
it will try to have it be center-left as close as possible.
52
+
50
53
: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.
52
55
:param str text: Text to display
53
56
:param int max_glyphs: Unnecessary parameter (provided only for direct compability
54
57
with label.py)
@@ -76,7 +79,7 @@ class Label(LabelBase):
76
79
tab character
77
80
:param str label_direction: string defining the label text orientation. There are 5
78
81
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``"""
80
83
81
84
# pylint: disable=unused-argument, too-many-instance-attributes, too-many-locals, too-many-arguments
82
85
# pylint: disable=too-many-branches, no-self-use, too-many-statements
0 commit comments