pub struct FontExtent {
pub ascent: f32,
pub descent: f32,
pub line_gap: f32,
}Expand description
The font’s own vertical extent, in the same unit as the line height.
ascent and descent are both positive distances from the baseline,
which is the sign convention AOSP states its rule in and the opposite of the
one ab_glyph reports descent in.
Fields§
§ascent: f32§descent: f32§line_gap: f32hhea.lineGap. Only read when a style asks for font padding.
Implementations§
Trait Implementations§
Source§impl Clone for FontExtent
impl Clone for FontExtent
Source§fn clone(&self) -> FontExtent
fn clone(&self) -> FontExtent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FontExtent
Source§impl Debug for FontExtent
impl Debug for FontExtent
Source§impl PartialEq for FontExtent
impl PartialEq for FontExtent
impl StructuralPartialEq for FontExtent
Auto Trait Implementations§
impl Freeze for FontExtent
impl RefUnwindSafe for FontExtent
impl Send for FontExtent
impl Sync for FontExtent
impl Unpin for FontExtent
impl UnsafeUnpin for FontExtent
impl UnwindSafe for FontExtent
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