mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-04 06:01:35 +11:00
Use ..Default::default() to make it clearer what we're changing
This commit is contained in:
parent
b1df507fa6
commit
522183b3ab
|
@ -16,8 +16,8 @@ pub fn load_font(font_data: &[u8], pixels_per_em: f32) -> TokenStream {
|
||||||
let font = fontdue::Font::from_bytes(
|
let font = fontdue::Font::from_bytes(
|
||||||
font_data,
|
font_data,
|
||||||
fontdue::FontSettings {
|
fontdue::FontSettings {
|
||||||
collection_index: 0,
|
|
||||||
scale: pixels_per_em,
|
scale: pixels_per_em,
|
||||||
|
..Default::default()
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.expect("Invalid font data");
|
.expect("Invalid font data");
|
||||||
|
|
Loading…
Reference in a new issue