Trait embedded_graphics::fonts::font_builder::FontBuilderConf[][src]

pub trait FontBuilderConf {
    const FONT_IMAGE: &'static [u8];
    const CHAR_HEIGHT: u32;
    const CHAR_WIDTH: u32;
    const FONT_IMAGE_WIDTH: u32;

    fn char_offset(_: char) -> u32;
}

The configuration of the font

Associated Constants

Raw image containing the font

char height of the font

char width of the font

FONT_IMAGE_WIDTH: u32 = 240

Font image width, must be divisible by 8 and CHAR_WIDTH.

Required Methods

Returns the index in the font of the correponding char

Implementors