Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds some helpful methods to TextFont #16370

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mnmaita
Copy link
Member

@mnmaita mnmaita commented Nov 13, 2024

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.

@mnmaita mnmaita added C-Feature A new feature, making something new possible D-Trivial Nice and easy! A great choice to get started with Bevy A-UI Graphical user interfaces, styles, layouts, and widgets A-Text Rendering and layout for characters S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Nov 13, 2024
@mnmaita mnmaita added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Text Rendering and layout for characters A-UI Graphical user interfaces, styles, layouts, and widgets C-Feature A new feature, making something new possible D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants