pub struct Font { /* private fields */ }
Implementations§
Source§impl Font
impl Font
Sourcepub fn bounding_box(&self) -> BoundingBox
pub fn bounding_box(&self) -> BoundingBox
Get the default bounding box for glyphs.
Sourcepub fn glyphs(&self) -> impl IntoIterator<Item = &Glyph>
pub fn glyphs(&self) -> impl IntoIterator<Item = &Glyph>
Get an iterator over all glyphs of the font.
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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