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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.