Struct fonterator::FontChain

source ·
pub struct FontChain<'a> { /* private fields */ }
Expand description

A FontChain is a collection of fonts that together should cover all of the unicode codepoints.

Implementations

Create a new FontChain

Add a Font or FontCollection to the FontChain

Render a string.

Enable Multi-Lingual Monospace (2 Latin Letters per CJK Character).

The index refers to which font to get the CJK character width from, so it should be a font with CJK support (otherwise it won’t work).

Trait Implementations

Returns the “default value” for a type. 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 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.