pub enum Placement {
None,
Distance(i32, i32),
MarkAnchor(usize, Anchor, Anchor),
MarkOverprint(usize),
CursiveAnchor(usize, bool, Anchor, Anchor),
}Expand description
Adjustment to the placement of a glyph as a result of kerning and placement of an attachment relative to a base glyph.
Variants§
None
Distance(i32, i32)
Placement offset by distance delta.
Fields (delta x, delta y)
MarkAnchor(usize, Anchor, Anchor)
An anchored mark.
This is a mark where its anchor is aligned with the base glyph anchor.
Fields:
(base glyph index in Vec<Info>, base glyph anchor, mark anchor)
MarkOverprint(usize)
An overprint mark.
This mark is shown at the same position as the base glyph.
Fields:
(base glyph index in Vec<Info>)
CursiveAnchor(usize, bool, Anchor, Anchor)
Cursive anchored placement.
Fields:
- exit glyph index in
Vec<Info>, - RIGHT_TO_LEFT flag from lookup table,
- exit glyph anchor,
- entry glyph anchor
Trait Implementations§
impl Copy for Placement
impl Eq for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnwindSafe for Placement
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,
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