Struct font_atlas::CharInfo [] [src]

pub struct CharInfo {
    pub image_position: (u32, u32),
    pub image_size: (u32, u32),
    pub advance: (i32, i32),
    pub pixel_offset: (i32, i32),
}

Placement information about a specific character.

Fields

image_position

The position in the image of the char

image_size

The (width, height) of the rendered character in the image

advance

The number of pixels (x, y) that are advanced after this character is drawn.

pixel_offset

The distance that the pen should move before printing the character.

Trait Implementations

Derived Implementations

impl Decodable for CharInfo

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<CharInfo, __D>

impl Encodable for CharInfo

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S>

impl Copy for CharInfo

impl Clone for CharInfo

fn clone(&self) -> CharInfo

fn clone_from(&mut self, source: &Self)