Struct kas_text::fonts::FontId [−][src]
pub struct FontId(pub u32);
Expand description
Font face identifier
Identifies a font list within the FontLibrary
by index.
This type may be default-constructed to use the default font (whichever is
loaded to the FontLibrary
first). If no font is loaded, attempting to
access a font with a (default-constructed) FontId
will cause a panic in
the FontLibrary
method used.
Tuple Fields
0: u32
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FontId
impl UnwindSafe for FontId
Blanket Implementations
Mutably borrows from an owned value. Read more
Cast to integer, truncating Read more
Cast to the nearest integer Read more
Cast the floor to an integer Read more
Try converting to integer with truncation Read more
Try converting to the nearest integer Read more
Try converting the floor to an integer Read more
Try convert the ceiling to an integer Read more