pub struct DropCap {
pub line: Line,
pub x: f32,
pub drop: f32,
}Expand description
An initial letter sunk beside the lines that follow it.
Fields§
§line: LineThe letter, shaped at the size the sink works out to.
x: f32Leading edge, from the content box’s own.
drop: f32How far the cap’s baseline sits below its line’s.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DropCap
impl RefUnwindSafe for DropCap
impl Send for DropCap
impl Sync for DropCap
impl Unpin for DropCap
impl UnsafeUnpin for DropCap
impl UnwindSafe for DropCap
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,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.