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§
source§impl PartialEq<Placement> for Placement
impl PartialEq<Placement> for Placement
impl Copy for Placement
impl Eq for Placement
impl StructuralEq for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
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