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,
}Expand description
Information about a character from a font rendered at a specific scale.
Fields§
§chr: charThe character in question
scale: f32The scale that the character was rendered at
bounding_box: RectThe 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: f32The amount of y that the pen should move for drawing this specific character. This value gets reset after drawing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CharInfo
impl RefUnwindSafe for CharInfo
impl Send for CharInfo
impl Sync for CharInfo
impl Unpin for CharInfo
impl UnwindSafe for CharInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more