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
chr: char
The character in question
scale: f32
The scale that the character was rendered at
bounding_box: Rect
The size of the character
post_draw_advance: (f32, f32)
The amount of (x, y) that the pen should move after drawing the character
pre_draw_advance: (f32, f32)
The amount of (x, y) that the pen should move before drawing the character
height_offset: f32
The amount of y that the pen should move for drawing this specific character. This value gets reset after drawing.