pub struct Info {
    pub glyph: RawGlyph<()>,
    pub kerning: i16,
    pub placement: Placement,
    /* private fields */
}
Expand description

A positioned glyph.

This struct is the output of applying glyph positioning (gpos). It contains the glyph and information about how it should be positioned.

For more information about glyph placement refer to the OpenType documentation: https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#positioning-glyphs-with-opentype

Fields

glyph: RawGlyph<()>

The glyph.

kerning: i16

An offset from the horizontal glyph advance position for this glyph.

placement: Placement

When not Placement::None indicates that this glyph should be placed according to the variant.

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.