pub struct BitmapChar { /* private fields */ }
Expand description

Describes the relevant information for a rendered char of the bitmap font.

To see why the term “bitmap” is used, see section Terminology in the README.

Implementations

The actual font data that is height * width bytes in size. Each byte describes the intensity of a pixel from 0 to 255.

Height of the bitmap box. The actual font size is slightly smaller.

The width of the bitmap char. It is guaranteed, that all chars of the same font weight and bitmap height also have the same width (as you would expect from a mono font).

Trait Implementations

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

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.