Struct lotus_script::font::BitmapFont
source · pub struct BitmapFont { /* private fields */ }
Expand description
A bitmap font that can be used to render text.
Implementations§
source§impl BitmapFont
impl BitmapFont
sourcepub fn try_load(content_id: ContentId) -> Option<Self>
pub fn try_load(content_id: ContentId) -> Option<Self>
Try to load a bitmap font from a content id.
Returns None
if the font is not currently loaded. It will be loaded in the background.
Just call this function again later until it returns Some
.
sourcepub fn properties(&self) -> &BitmapFontProperties
pub fn properties(&self) -> &BitmapFontProperties
Get the properties of this font.
Auto Trait Implementations§
impl Freeze for BitmapFont
impl RefUnwindSafe for BitmapFont
impl Send for BitmapFont
impl Sync for BitmapFont
impl Unpin for BitmapFont
impl UnwindSafe for BitmapFont
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