Releases: adafruit/Adafruit_CircuitPython_Display_Text
Glyph check
- Add a check for NoneType glyphs used in computing bounding box.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
2.7.0 - Better background color handling, beter group full handling
This release includes:
- Better background color handling for label. It will now create a background over the entire string, not each character individually. See #49 for more information.
- Better handling when the
group full
exception is raised. See #48 for more information.
Special thanks to @kmatch98 and @FoamyGuy for their amazing PRs
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Fix error from text not set in constructor and account for trailing spaces in bounding_box
This release includes:
- Fix an exception raised when the text was not set in the constructor and tried to be set from the
.text
property. - Fix the bounding_box to account for trailing whitespace.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Fix font property and anchored position measurement error
This release includes:
- fix for the
font
getter and setter - fix for the
anchored_position
measurement it was off about 10 pixels previously
This update will slightly change the position of existing labels that are using anchored_position
The example has been updated accordingly
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
2.5.1 - Added Black check, reran Black with Python 3 target.
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.5.0 - Upgrade to latest Pylint, implement Black formatting
We have upgraded Pylint checks to use the latest version of Pylint and implemented usage of Black Python formatting. This does not change the functionality of the code - it is designed to bring it up to current standards and make it more readable.
- Remove pinned Pylint version number from build.yml file
- Synced
.pylintrc
file to match Adafruit standard - Ran upgraded Pylint and applied any changes or new disables necessary
- Ran Black formatter and allowed application of changes across entire repo
For more information on using Pylint and Black on your code, check out this guide on working with Pylint and Black
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.
Added background color feature
This release includes a new background_color feature. Thanks @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.3.2 - Fix x and y assignment
Fixes issue where a label.x and label.y would be automatically set to zero.
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.
Fixed issue where label will not display if False
Fixes issue where label will not display when label data evaluates to False.
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.
label.text strings
- label.text now automatically converts to a string.
This allows, for example, providing float data like acceleration without needing to convert to string in the code.
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.