Skip to content

Commit

Permalink
use the default font
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Feb 18, 2024
1 parent 3de439b commit 29489dd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 96 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -41,6 +41,7 @@ default = ["render", "sprite", "ui"]
"bevy/x11",
"bevy/bevy_asset",
"bevy/bevy_core_pipeline",
"bevy/default_font",
]

[[example]]
Expand Down
93 changes: 0 additions & 93 deletions assets/fonts/FiraMono-LICENSE.txt

This file was deleted.

Binary file removed assets/fonts/FiraMono-Medium.ttf
Binary file not shown.
Binary file removed assets/fonts/FiraSans-Bold.ttf
Binary file not shown.
5 changes: 2 additions & 3 deletions examples/controlled.rs
Expand Up @@ -76,8 +76,7 @@ impl Default for AnimatedCube {
}
}

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
let font = asset_server.load("fonts/FiraSans-Bold.ttf");
fn setup(mut commands: Commands) {
commands.spawn(Camera2dBundle::default());

let default_cube = AnimatedCube::default();
Expand Down Expand Up @@ -106,9 +105,9 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
text: Text::from_section(
format_info_text(&Vec3::ZERO, 0, None, EaseMethod::Linear),
TextStyle {
font,
color: Color::WHITE,
font_size: 18.0,
..default()
},
)
.with_justify(JustifyText::Right),
Expand Down

0 comments on commit 29489dd

Please sign in to comment.