Struct raui_tetra_renderer::simple_host::PreloadedFont [−][src]
pub struct PreloadedFont<'a> {
pub id: &'a str,
pub size: usize,
pub scale: f32,
pub path: &'a str,
}
Expand description
A font that will be pre-loaded during the init of a TetraSimpleHost
Fields
id: &'a str
The ID that will be used to reference the font in UI code
size: usize
The size to load the font at
Tetra will cache the font on the GPU, rendered at the given size
scale: f32
An additional scale to apply when rendering the font
path: &'a str
The path to the font file