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)] #[derive(Component)]
struct FpsText; struct FpsText;
@ -31,8 +34,8 @@ fn setup(
TextSection::new( TextSection::new(
"帧率 ", "帧率 ",
TextStyle { TextStyle {
font: asset_server.load("tmp/fonts/ZCOOLQingKeHuangYou-Regular.ttf"), font: asset_server.load(FONT),
font_size: 50.0, font_size: FONT_SIZE,
color: Color::GRAY, color: Color::GRAY,
..default() ..default()
}, },
@ -40,8 +43,8 @@ fn setup(
TextSection::new( TextSection::new(
"", "",
TextStyle { TextStyle {
font: asset_server.load("tmp/fonts/ZCOOLQingKeHuangYou-Regular.ttf"), font: asset_server.load(FONT),
font_size: 50.0, font_size: FONT_SIZE,
color: Color::GRAY, color: Color::GRAY,
..default() ..default()
} }

View file

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