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
impl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more