diff --git a/examples/3d/blend_modes.rs b/examples/3d/blend_modes.rs index 4dd76d8faf..6a171b3413 100644 --- a/examples/3d/blend_modes.rs +++ b/examples/3d/blend_modes.rs @@ -34,6 +34,7 @@ fn setup( mut commands: Commands, mut meshes: ResMut>, mut materials: ResMut>, + asset_server: Res, ) { let base_color = Color::rgba(0.9, 0.2, 0.3, 1.0); let icosphere_mesh = meshes.add( @@ -185,15 +186,15 @@ fn setup( // Controls Text let text_style = TextStyle { + font: asset_server.load("fonts/FiraMono-Medium.ttf"), font_size: 18.0, color: Color::BLACK, - ..default() }; let label_text_style = TextStyle { + font: asset_server.load("fonts/FiraMono-Medium.ttf"), font_size: 25.0, color: Color::ORANGE, - ..default() }; commands.spawn( @@ -233,11 +234,13 @@ fn setup( )) .with_children(|parent| { parent.spawn( - TextBundle::from_section(label, label_text_style.clone()).with_style(Style { - position_type: PositionType::Absolute, - bottom: Val::Px(0.), - ..default() - }), + TextBundle::from_section(label, label_text_style.clone()) + .with_style(Style { + position_type: PositionType::Absolute, + bottom: Val::Px(0.), + ..default() + }) + .with_no_wrap(), ); }); };