mirror of
https://github.com/bevyengine/bevy
synced 2025-01-06 10:18:59 +00:00
4dd805a003
# 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. |
||
---|---|---|
.. | ||
bounds.rs | ||
error.rs | ||
FiraMono-subset.ttf | ||
font.rs | ||
font_atlas.rs | ||
font_atlas_set.rs | ||
font_loader.rs | ||
glyph.rs | ||
lib.rs | ||
pipeline.rs | ||
text.rs | ||
text2d.rs | ||
text_access.rs |