Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds some helpful methods to TextFont (#16370)
# Objective - Add methods to facilitate `TextFont` component creation and insertion. ## Solution - Added `from_font` and `from_font_size` which return a new `TextFont` with said attributes provided as parameters. - Added `with_font` and `with_font_size` which return an existing `TextFont` modifying said attributes with the values provided as parameters. ## Testing - CI Checks. - Tested methods locally by changing values and running the `text_debug` example.
- Loading branch information