use crate::{
charset::Charset, kerning::Kerning, ligatures::Ligatures, side_bearings::SideBearings
};
use embedded_graphics::{image::ImageRaw, mono_font::mapping::StrGlyphMapping};
/// ASCII charset
///
/// 
pub const ASCII: Charset = Charset {
image: ImageRaw::new(include_bytes!("ascii_font.raw"), 128),
glyph_mapping: StrGlyphMapping::new(
"\0\u{20}\u{7e}",
31,
),
glyph_data: include_bytes!("ascii_glyph_data.raw"),
side_bearings: SideBearings::new(
&[(0, 0, 0), (12, 0, 1), (27, 0, 1), (74, -2, 1), (100, -2, 1)],
(0, 1),
),
kerning: Kerning::new(
&[(1, 14, -1), (2, 2, -1), (2, 6, 0), (2, 10, -1), (2, 13, -1), (2, 14, -1), (3, 3, -1), (3, 7, -1), (3, 14, -1), (4, 2, -2), (4, 4, -1), (4, 6, -1), (4, 7, -1), (4, 10, -1), (4, 13, -2), (4, 14, -2), (5, 3, -1), (5, 14, -1), (6, 2, -2), (6, 3, -1), (6, 4, -1), (6, 5, -1), (6, 6, -1), (6, 7, -2), (6, 13, -2), (6, 14, -2), (7, 3, -1), (7, 7, 0), (8, 7, 0), (13, 2, -1), (13, 14, -1), (14, 2, -1), (14, 6, -1), (14, 10, -1), (14, 14, -1), (15, 2, -1), (15, 13, -1), (16, 3, -1), (16, 7, -1), (16, 9, -1), (16, 14, -1), (17, 14, -1)],
&[(15, 15, -2), (35, 70, -1), (41, 70, -1), (60, 60, -2), (70, 52, -2), (81, 70, -1), (81, 95, -1), (81, 96, -1), (81, 97, -1)],
),
ligatures: Ligatures::new(
"\0\u{66}\u{66}\u{69}\0\u{66}\u{66}\0\u{66}\u{69}\0\u{66}\u{6a}\0\u{67}\u{6a}\0\u{6a}\u{6a}\0\u{73}\u{73}\0\u{79}\u{6a}",
95,
),
line_height: 11,
baseline: 8,
};