You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error message due to trying to render text without specifying a font. (either compile time by not having Text be default-able, or run time)
Have a default font be used.
What actually happened
The app builds and runs fine, but the text doesn't show on screen (which makes sense, as there is no font specified).
Initializing the Text struct with a font worked as expected. (adding ...font: asset_server.load("fonts/font_name.ttf"),...
Additional information
This may be intended behaviour, but I found it unexpected as a new user of Bevy. I see that there exists an issue for adding a built-in font (#1017), which would address the issue.
The text was updated successfully, but these errors were encountered:
eliasreid
changed the title
Default Text behaviour with no font
Default Text initialization with no font specified
Jan 3, 2021
Bevy version
0.4.0
Operating system & version
Windows 10
What you did
Spawned a
TextBundle
using a mostly defaultedText
struct (only specified the value).What you expected to happen
I expected that one of two things would happen:
What actually happened
The app builds and runs fine, but the text doesn't show on screen (which makes sense, as there is no font specified).
Initializing the
Text
struct with a font worked as expected. (adding...font: asset_server.load("fonts/font_name.ttf"),...
Additional information
This may be intended behaviour, but I found it unexpected as a new user of Bevy. I see that there exists an issue for adding a built-in font (#1017), which would address the issue.
The text was updated successfully, but these errors were encountered: