use crate::slice::Slice;
#[repr(C)]
#[derive(Debug)]
pub struct BitmapGlyph {
pub x: i16,
pub y: i16,
pub width: i16,
pub height: i16,
pub x_advance: i16,
pub data: Slice<'static, u8>,
}
#[repr(C)]
#[derive(Debug)]
pub struct BitmapGlyphs {
pub pixel_size: i16,
pub glyph_data: Slice<'static, BitmapGlyph>,
}
#[repr(C)]
#[derive(Debug)]
pub struct CharacterMapEntry {
pub code_point: char,
pub glyph_index: u16,
}
#[repr(C)]
#[derive(Debug)]
pub struct BitmapFont {
pub family_name: Slice<'static, u8>,
pub character_map: Slice<'static, CharacterMapEntry>,
pub units_per_em: f32,
pub ascent: f32,
pub descent: f32,
pub glyphs: Slice<'static, BitmapGlyphs>,
pub weight: u16,
pub italic: bool,
}