pub struct Subtable<'a> {
    pub horizontal: bool,
    pub variable: bool,
    pub has_cross_stream: bool,
    pub has_state_machine: bool,
    pub tuple_count: u32,
    pub format: Format<'a>,
}
Expand description

A kerning subtable.

Fields

horizontal: bool

Indicates that subtable is for horizontal text.

variable: bool

Indicates that subtable is variable.

has_cross_stream: bool

Indicates that subtable has a cross-stream values.

has_state_machine: bool

Indicates that subtable uses a state machine.

In this case glyphs_kerning() will return None.

tuple_count: u32

The tuple count.

This value is only used with variation fonts and should be 0 for all other fonts.

format: Format<'a>

Subtable format.

Implementations

Returns kerning for a pair of glyphs.

Returns None in case of state machine based subtable.

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.