Skip to content

Commit 59c2757

Browse files
authored
Merge pull request #189 from jposada202020/updating_RTD
updating FontProtocol link to Circuitpython RTD
2 parents 635ad4e + b2e5691 commit 59c2757

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

adafruit_display_text/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def wrap_text_to_pixels(
3737
:param str string: The text to be wrapped.
3838
:param int max_width: The maximum number of pixels on a line before wrapping.
3939
:param font: The font to use for measuring the text.
40-
:type font: ~FontProtocol
40+
:type font: ~fontio.FontProtocol
4141
:param str indent0: Additional character(s) to add to the first line.
4242
:param str indent1: Additional character(s) to add to all other lines.
4343
@@ -198,7 +198,7 @@ class LabelBase(Group):
198198
199199
:param font: A font class that has ``get_bounding_box`` and ``get_glyph``.
200200
Must include a capital M for measuring character size.
201-
:type font: ~FontProtocol
201+
:type font: ~fontio.FontProtocol
202202
:param str text: Text to display
203203
:param int color: Color of all text in RGB hex
204204
:param int background_color: Color of the background, use `None` for transparent

adafruit_display_text/bitmap_label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Label(LabelBase):
5353
5454
:param font: A font class that has ``get_bounding_box`` and ``get_glyph``.
5555
Must include a capital M for measuring character size.
56-
:type font: ~FontProtocol
56+
:type font: ~fontio.FontProtocol
5757
:param str text: Text to display
5858
:param int|Tuple(int, int, int) color: Color of all text in HEX or RGB
5959
:param int|Tuple(int, int, int)|None background_color: Color of the background, use `None`

adafruit_display_text/label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Label(LabelBase):
4646
4747
:param font: A font class that has ``get_bounding_box`` and ``get_glyph``.
4848
Must include a capital M for measuring character size.
49-
:type font: ~FontProtocol
49+
:type font: ~fontio.FontProtocol
5050
:param str text: Text to display
5151
:param int|Tuple(int, int, int) color: Color of all text in HEX or RGB
5252
:param int|Tuple(int, int, int)|None background_color: Color of the background, use `None`

adafruit_display_text/scrolling_label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ScrollingLabel(bitmap_label.Label):
4141
in order to show the full text if it's larger than the fixed-width.
4242
4343
:param font: The font to use for the label.
44-
:type: ~FontProtocol
44+
:type: ~fontio.FontProtocol
4545
:param int max_characters: The number of characters that sets the fixed-width. Default is 10.
4646
:param str text: The full text to show in the label. If this is longer than
4747
``max_characters`` then the label will scroll to show everything.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Uncomment the below if you use native CircuitPython modules such as
2727
# digitalio, micropython and busio. List the modules you use. Without it, the
2828
# autodoc module docs will fail to generate with a warning.
29-
autodoc_mock_imports = ["displayio", "adafruit_bitmap_font"]
29+
autodoc_mock_imports = ["displayio", "adafruit_bitmap_font", "fontio"]
3030

3131

3232
intersphinx_mapping = {

0 commit comments

Comments
 (0)