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
const FONT_IMAGE: &'static [u8]
Raw image containing the font
const CHAR_HEIGHT: u32
char
height of the font
const CHAR_WIDTH: u32
char
width of the font
const FONT_IMAGE_WIDTH: u32
FONT_IMAGE_WIDTH: u32 = 240
Font image width, must be divisible by 8
and CHAR_WIDTH
.
Required Methods
fn char_offset(_: char) -> u32
Returns the index in the font of the correponding char