Releases: adafruit/Adafruit_CircuitPython_Display_Text
2.16.1 - Improved Docs
This release contains fixes in the readthedocs pages. Thank you @lesamouraipourpre
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.16.0 - Baseline Anchor Point
This version allows you to use my_text.baseline
as the y value in the anchor_point
to set the anchored_position
relative to the baseline. Helpful for lining up fonts of different sizes to look nicely next to each other.
Also included in this version is a new example font file, a small update to one example to use it. Lastly the library code now includes type hints.
Thank you to @jposada202020 for these contributions.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.15.5 - Fix for background_color setter
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.15.4 - Fix for tab characters
This release includes a fix for \t
characters. Previously they were ignored entirely. Now they are replaced by 4 spaces by default. A new parameter tab_replacement
can be used to change the behavior to use other characters if you need. Thank you @jposada202020!
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.15.3 - BitmapLabel fix for some fonts
This release includes a fix for BitmapLabel that gracefully handles fonts where glyphs exceed the ascent size property of the font.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.15.2 - Internal Refactor
This release includes an internal refactor to avoid code duplication. Behavior of both labels is unchanged.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.15.1 - Moved pylint from build.yml to .pre-commit-config.yml
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.15.0 - Added the wrap_by_pixels function
Added a new function, wrap_by_pixels()
that allows you to set the text to wrap at a certain number of pixels.
Thanks for the PR @FoamyGuy!
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.14.0 - base_alignment argument for bitmap_label
The new constructor argument base_alignment
has been added to bitmap_label. Setting to True
will result in the label getting aligned by it's baseline. Helpful if you are trying to line up different sized fonts along the same baseline. Thank you @jposada202020 for this great new feature!
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.
2.13.0 - New Feature base_alignment
The new constructor argument base_alignment
has been added to label. Setting to True
will result in the label getting aligned by it's baseline. Helpful if you are trying to line up different sized fonts along the same baseline. Thank you @jposada202020 for this great new feature!
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-display_text
.
Read the docs for info on how to use it.