Struct rokol::fons::FontTexture[][src]

pub struct FontTexture { /* fields omitted */ }
Expand description

Be sure to set alignment of the FontStash to draw text as you want.

Implementations

Methods from Deref<Target = FontTextureImpl>

Copies the shared ownership of Fontstash Returns [x, y, w, h]

Returns [x, y, w, h]

Call it every frame but only once

Methods from Deref<Target = FontStash>

Creates fontstash atlas size copying the previous data

Creates new fontstash atlas with size without copying the previous data

NOTE: DPI scaling?

Horizontal space between characters?

Sets alignment of quadliterals returned with FontStash::text_iter

NOTE: Pixel is in one byte (8 bits alpha channel only)

Iterator of quadliterals aligned with Align

Returns [left_x, top_y, right_x, bottom_y]. Note that it doesn’t handle multiple lines of text. You need custom layer for multi-line text!

Returns [width, height]. Note that it doesn’t handle multiple lines of text. You need custom layer for multi-line text!

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.