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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more