pub struct GlyphLayout<'f, 'i, T>where
    T: FontTableProvider,
{ /* private fields */ }
Expand description

Used to calculate the position of shaped glyphs.

Implementations

Construct a new GlyphLayout instance.

Arguments

  • font — the font that the glyphs belong to.
  • infos — the shaped glyphs to lay out.
  • direction — the horizontal text layout direction.
  • verticaltrue if the text is being laid out top to bottom.

Retrieve the glyphs positions.

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 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.