pub struct TTFFont {
pub units_per_em: f64,
pub ascender: f64,
pub descender: f64,
pub line_gap: f64,
pub bounds: Rectangle,
pub cached_decoded_glyphs: Vec<Option<Box<Glyph>>>,
}
Expand description
A font.
Fields§
§units_per_em: f64
§ascender: f64
§descender: f64
§line_gap: f64
§bounds: Rectangle
§cached_decoded_glyphs: Vec<Option<Box<Glyph>>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TTFFont
impl RefUnwindSafe for TTFFont
impl Send for TTFFont
impl Sync for TTFFont
impl Unpin for TTFFont
impl UnwindSafe for TTFFont
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