You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've trying to use a bitmap 16x8 / 32x16 / 48x24 / 64x32 font with my game but it will not show up. My guess is some issue with font_size being f64 and the font requiring an exact size, but I'm not sure.
My code is:
let text_style = TextStyle{font: asset_server.load("font.otf"),font_size:64.0,color:Color::WHITE,};
commands.spawn(Text2dBundle{text:Text{sections:vec![TextSection::new("Test", text_style)],
..default()},transform:Transform::from_xyz(0.0,0.0,5.0),
..default()});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've trying to use a bitmap 16x8 / 32x16 / 48x24 / 64x32 font with my game but it will not show up. My guess is some issue with
font_size
beingf64
and the font requiring an exact size, but I'm not sure.My code is:
Beta Was this translation helpful? Give feedback.
All reactions