pub struct BitmapFont { /* private fields */ }Expand description
Bitmap-Schrift, die zum Rendern von Text verwendet werden kann.
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>
Versucht, eine Bitmap-Schrift anhand einer Content-ID zu laden.
Gibt None zurück, solange das Asset noch im Hintergrund lädt — erneut aufrufen, bis Some zurückkommt.
Tries to load a bitmap font from a content id.
Returns None while the asset is still loading in the background; call again until Some is returned.
Sourcepub fn properties(&self) -> &BitmapFontProperties
pub fn properties(&self) -> &BitmapFontProperties
Gibt die Eigenschaften dieser Schrift zurück.
Returns 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 UnsafeUnpin 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