Struct raui_tetra_renderer::simple_host::PreloadedFont
source · 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
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PreloadedFont<'a>
impl<'a> Send for PreloadedFont<'a>
impl<'a> Sync for PreloadedFont<'a>
impl<'a> Unpin for PreloadedFont<'a>
impl<'a> UnwindSafe for PreloadedFont<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more