Struct makepad_vector::font::TTFFont
source · [−]pub struct TTFFont {
pub units_per_em: f64,
pub ascender: f64,
pub descender: f64,
pub line_gap: f64,
pub bounds: Rectangle,
pub char_code_to_glyph_index_map: Vec<usize>,
pub glyphs: Vec<Glyph>,
}
Expand description
A font.
Fields
units_per_em: f64
ascender: f64
descender: f64
line_gap: f64
bounds: Rectangle
char_code_to_glyph_index_map: Vec<usize>
glyphs: Vec<Glyph>
Implementations
Trait Implementations
impl StructuralPartialEq for TTFFont
Auto Trait Implementations
impl RefUnwindSafe for TTFFont
impl Send for TTFFont
impl Sync for TTFFont
impl Unpin for TTFFont
impl UnwindSafe for TTFFont
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more