pub const fn next_font_family(font_family: FontFamily) -> FontFamily
Expand description

Rotates through the font families. This will not return FontFamily::Display because that is a special font family used for the game logo.

Example

use game_library::{font_resource::FontFamily, settings::next_font_family};

assert_eq!(next_font_family(FontFamily::Display), FontFamily::Dyslexic);
assert_eq!(next_font_family(FontFamily::Fancy), FontFamily::Dyslexic);
assert_eq!(next_font_family(FontFamily::Dyslexic), FontFamily::SansSerif);
assert_eq!(next_font_family(FontFamily::SansSerif), FontFamily::Monospace);
assert_eq!(next_font_family(FontFamily::Monospace), FontFamily::Fancy);