pub struct LineBox<T = F48Dot16> {
pub ascender: T,
pub descender: T,
pub line_gap: T,
}Expand description
Ascender, descender and line gap from one table.
In font units unless a caller names another unit. The ascender is above the baseline and the descender below it, whatever sign a font stores them with.
Fields§
§ascender: THeight of the line above the baseline. Never negative.
descender: TDepth of the line below the baseline, as a negative value. Never positive.
line_gap: TExtra space between the bottom of one line and the top of the next.
Implementations§
Trait Implementations§
impl<T> Copy for LineBox<T>where
T: Copy,
impl<T> Eq for LineBox<T>where
T: Eq,
impl<T> StructuralPartialEq for LineBox<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for LineBox<T>where
T: Freeze,
impl<T> RefUnwindSafe for LineBox<T>where
T: RefUnwindSafe,
impl<T> Send for LineBox<T>where
T: Send,
impl<T> Sync for LineBox<T>where
T: Sync,
impl<T> Unpin for LineBox<T>where
T: Unpin,
impl<T> UnsafeUnpin for LineBox<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LineBox<T>where
T: UnwindSafe,
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