Struct font_atlas::rasterize::CharInfo [] [src]

pub struct CharInfo {
    pub chr: char,
    pub scale: f32,
    pub bounding_box: Rect,
    pub post_draw_advance: (f32, f32),
    pub pre_draw_advance: (f32, f32),
    pub height_offset: f32,
}

Information about a character from a font rendered at a specific scale.

Fields

The character in question

The scale that the character was rendered at

The size of the character

The amount of (x, y) that the pen should move after drawing the character

The amount of (x, y) that the pen should move before drawing the character

The amount of y that the pen should move for drawing this specific character. This value gets reset after drawing.

Trait Implementations

impl Debug for CharInfo
[src]

[src]

Formats the value using the given formatter.

impl Copy for CharInfo
[src]

impl Clone for CharInfo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more