pub trait LauncherFonts: Sealed {
// Required method
fn default_face() -> Option<SoftwareTextFont>;
}Expand description
Where an AppLauncher’s text faces come from.
A launcher starts as DefaultFont and becomes AppFonts as soon as a
font method runs. The state is a type rather than a flag because only a
type keeps the embedded face out of the binary: a flag checked at run time
still references the bytes, and the linker keeps what is referenced.
Required Methods§
Sourcefn default_face() -> Option<SoftwareTextFont>
fn default_face() -> Option<SoftwareTextFont>
The face text draws in when the app supplied none.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".