I'm using Bevy 0.11, which has a default font. Unfortunately I'm struggling to get the text to actually show up. I have confirmed that my system is running and that the dep I'm using is actually 0.11.
Relevant code:
fn lobby_startup(mut commands: Commands) {
commands.spawn(Camera3dBundle::default());
// All this is just for spawning centered text.
commands
.spawn(NodeBundle {
style: Style {
width: Val::Percent(100.0),
height: Val::Percent(100.0),
position_type: PositionType::Absolute,
justify_content: JustifyContent::Center,
align_items: AlignItems::FlexEnd,
..default()
},
background_color: Color::rgb(0.43, 0.40, 0.38).into(),
..default()
})
.with_children(|parent| {
parent
.spawn(TextBundle {
style: Style {
align_self: AlignSelf::Center,
justify_content: JustifyContent::Center,
..default()
},
text: Text::from_section(
"Entering lobby...",
TextStyle {
font: Default::default(),
font_size: 96.,
color: Color::BLACK,
},
),
..default()
})
.insert(LobbyText);
})
.insert(LobbyUI);
}
Full repro possible like this:
git@github.com:banool/plane.git
cd plane
git checkout 48b6318602a7deefeacfa2648f22b0e77ffd5611
cargo run