Enum allsorts::gpos::Placement[][src]

pub enum Placement {
    None,
    Distance(i32i32),
    MarkAnchor(usizeAnchorAnchor),
    MarkOverprint(usize),
    CursiveAnchor(usizeboolAnchorAnchor),
}
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(i32i32)

Placement offset by distance delta.

Fields (delta x, delta y)

MarkAnchor(usizeAnchorAnchor)

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(usizeboolAnchorAnchor)

Cursive anchored placement.

Fields:

https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#lookup-type-3-cursive-attachment-positioning-subtable

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.