switch to NotoSansSC-Thin font

This commit is contained in:
yuni 2024-03-17 20:28:45 +01:00
parent 2e4dbe4844
commit af4235c756
2 changed files with 8 additions and 5 deletions

View file

@ -11,6 +11,9 @@ impl Plugin for OutFlyHudPlugin {
}
}
const FONT: &str = "tmp/fonts/NotoSansSC-Thin.ttf";
const FONT_SIZE: f32 = 50.0;
#[derive(Component)]
struct FpsText;
@ -31,8 +34,8 @@ fn setup(
TextSection::new(
"帧率 ",
TextStyle {
font: asset_server.load("tmp/fonts/ZCOOLQingKeHuangYou-Regular.ttf"),
font_size: 50.0,
font: asset_server.load(FONT),
font_size: FONT_SIZE,
color: Color::GRAY,
..default()
},
@ -40,8 +43,8 @@ fn setup(
TextSection::new(
"",
TextStyle {
font: asset_server.load("tmp/fonts/ZCOOLQingKeHuangYou-Regular.ttf"),
font_size: 50.0,
font: asset_server.load(FONT),
font_size: FONT_SIZE,
color: Color::GRAY,
..default()
}

View file

@ -18,7 +18,7 @@ impl Default for Settings {
volume_sfx: 100,
volume_music: 100,
key_togglehud: KeyCode::Tab,
ar_active: false,
ar_active: true,
}
}
}