Function game_library::font_resource::change_font
source · pub fn change_font(
font_resource: ResMut<'_, FontResource>,
change_font_events: EventReader<'_, '_, ChangeFont>
)
Expand description
A system to change the font choice.
This system will change the font choice to the specified font, when the
ChangeFont
event is sent.
Ensure that the FontResource
is inserted into the app resources before
this system is run, otherwise bevy will panic.