File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ fn setup(
3434 mut commands : Commands ,
3535 mut meshes : ResMut < Assets < Mesh > > ,
3636 mut materials : ResMut < Assets < StandardMaterial > > ,
37+ asset_server : Res < AssetServer > ,
3738) {
3839 let base_color = Color :: rgba ( 0.9 , 0.2 , 0.3 , 1.0 ) ;
3940 let icosphere_mesh = meshes. add (
@@ -185,15 +186,15 @@ fn setup(
185186
186187 // Controls Text
187188 let text_style = TextStyle {
189+ font : asset_server. load ( "fonts/FiraMono-Medium.ttf" ) ,
188190 font_size : 18.0 ,
189191 color : Color :: BLACK ,
190- ..default ( )
191192 } ;
192193
193194 let label_text_style = TextStyle {
195+ font : asset_server. load ( "fonts/FiraMono-Medium.ttf" ) ,
194196 font_size : 25.0 ,
195197 color : Color :: ORANGE ,
196- ..default ( )
197198 } ;
198199
199200 commands. spawn (
You can’t perform that action at this time.
0 commit comments