From af1a7f5ba5f769be64c91aecdf687248dd66947d Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 30 Oct 2020 10:22:03 +0800 Subject: [PATCH] graphics-server: first general merge of gfxlib Signed-off-by: Sean Cross --- services/graphics-server/src/api.rs | 66 +- services/graphics-server/src/fonts.rs | 85 ++ services/graphics-server/src/fonts/bold.rs | 805 ++++++++++++++++++ services/graphics-server/src/fonts/regular.rs | 782 +++++++++++++++++ services/graphics-server/src/fonts/small.rs | 679 +++++++++++++++ services/graphics-server/src/lib.rs | 10 +- services/graphics-server/src/main.rs | 142 ++- services/graphics-server/src/op.rs | 365 ++++++++ 8 files changed, 2830 insertions(+), 104 deletions(-) create mode 100644 services/graphics-server/src/fonts.rs create mode 100644 services/graphics-server/src/fonts/bold.rs create mode 100644 services/graphics-server/src/fonts/regular.rs create mode 100644 services/graphics-server/src/fonts/small.rs create mode 100644 services/graphics-server/src/op.rs diff --git a/services/graphics-server/src/api.rs b/services/graphics-server/src/api.rs index a0542123f..cc68bff24 100644 --- a/services/graphics-server/src/api.rs +++ b/services/graphics-server/src/api.rs @@ -2,12 +2,11 @@ use xous::{Message, ScalarMessage}; #[derive(Copy, Clone, Debug)] pub struct Point { - x: u16, - y: u16, + pub x: u16, + pub y: u16, } impl Point { - #[allow(dead_code)] pub fn new(x: u16, y: u16) -> Point { Point { x, y } } @@ -19,12 +18,26 @@ impl Into for Point { } } -impl Into for Point { - fn into(self) -> embedded_graphics::geometry::Point { - embedded_graphics::geometry::Point::new(self.x as _, self.y as _) +#[derive(Copy, Clone, Debug)] +pub struct Rect { + pub x0: u16, + pub y0: u16, + pub x1: u16, + pub y1: u16, +} + +impl Rect { + pub fn new(x0: u16, y0: u16, x1: u16, y1: u16) -> Self { + Self { x0, y0, x1, y1 } } } +// impl Into for Point { +// fn into(self) -> embedded_graphics::geometry::Point { +// embedded_graphics::geometry::Point::new(self.x as _, self.y as _) +// } +// } + impl From for Point { fn from(p: usize) -> Point { Point { @@ -46,7 +59,7 @@ impl From for Color { } #[derive(Debug)] -pub enum Opcode { +pub enum Opcode<'a> { /// Flush the buffer to the screen Flush, @@ -68,9 +81,15 @@ pub enum Opcode { Color, /* stroke color */ Color, /* fill color */ ), + + /// Clear the specified region + ClearRegion(Rect), + + /// Render the string at the (x,y) coordinates + String(&'a str), } -impl<'a> core::convert::TryFrom<&'a Message> for Opcode { +impl<'a> core::convert::TryFrom<&'a Message> for Opcode<'a> { type Error = &'static str; fn try_from(message: &'a Message) -> Result { match message { @@ -85,6 +104,24 @@ impl<'a> core::convert::TryFrom<&'a Message> for Opcode { Color::from(m.arg2), Color::from(m.arg3), )), + 7 => Ok(Opcode::ClearRegion(Rect::new( + m.arg1 as _, + m.arg2 as _, + m.arg3 as _, + m.arg4 as _, + ))), + _ => Err("unrecognized opcode"), + }, + Message::Borrow(m) => match m.id { + 1 => { + let s = unsafe { + core::slice::from_raw_parts( + m.buf.as_ptr(), + m.valid.map(|x| x.get()).unwrap_or_else(|| m.buf.len()), + ) + }; + Ok(Opcode::String(core::str::from_utf8(s).unwrap())) + } _ => Err("unrecognized opcode"), }, _ => Err("unhandled message type"), @@ -92,7 +129,7 @@ impl<'a> core::convert::TryFrom<&'a Message> for Opcode { } } -impl Into for Opcode { +impl<'a> Into for Opcode<'a> { fn into(self) -> Message { match self { Opcode::Flush => Message::Scalar(ScalarMessage { @@ -139,6 +176,17 @@ impl Into for Opcode { arg4: 0, }) } + Opcode::ClearRegion(rect) => Message::Scalar(ScalarMessage { + id: 7, + arg1: rect.x0 as _, + arg2: rect.y0 as _, + arg3: rect.x1 as _, + arg4: rect.y1 as _, + }), + Opcode::String(string) => { + let region = xous::carton::Carton::from_bytes(string.as_bytes()); + Message::Borrow(region.into_message(1)) + } } } } diff --git a/services/graphics-server/src/fonts.rs b/services/graphics-server/src/fonts.rs new file mode 100644 index 000000000..5ddbaf17a --- /dev/null +++ b/services/graphics-server/src/fonts.rs @@ -0,0 +1,85 @@ +pub mod bold; +pub mod regular; +pub mod small; + +/// Strings with Unicode Private Use Area characters for UI Sprites +pub mod pua { + pub const BATTERY_05: &str = &"\u{E700}"; + pub const BATTERY_25: &str = &"\u{E701}"; + pub const BATTERY_50: &str = &"\u{E702}"; + pub const BATTERY_75: &str = &"\u{E703}"; + pub const BATTERY_99: &str = &"\u{E704}"; + pub const RADIO_3: &str = &"\u{E705}"; + pub const RADIO_2: &str = &"\u{E706}"; + pub const RADIO_1: &str = &"\u{E707}"; + pub const RADIO_0: &str = &"\u{E708}"; + pub const RADIO_OFF: &str = &"\u{E709}"; + pub const SHIFT_ARROW: &str = &"\u{E70A}"; + pub const BACKSPACE_SYMBOL: &str = &"\u{E70B}"; + pub const ENTER_SYMBOL: &str = &"\u{E70C}"; +} + +/// Holds header data for a font glyph +pub struct GlyphHeader { + pub w: usize, + pub h: usize, + pub y_offset: usize, +} +impl GlyphHeader { + /// Unpack glyph header of format: (w:u8)<<16 | (h:u8)<<8 | yOffset:u8 + pub fn new(header: u32) -> GlyphHeader { + let w = ((header << 8) >> 24) as usize; + let h = ((header << 16) >> 24) as usize; + let y_offset = (header & 0x000000ff) as usize; + GlyphHeader { w, h, y_offset } + } +} + +/// Available typeface glyph sets +pub enum GlyphSet { + Bold, + Regular, + Small, +} + +/// Abstraction for working with typeface glyph sets +#[derive(Copy, Clone)] +pub struct Font { + pub glyph_pattern_offset: GlyphPatternOffsetFnPtr, + pub glyph_data: GlyphDataFnPtr, +} +pub type GlyphPatternOffsetFnPtr = fn(char) -> usize; +pub type GlyphDataFnPtr = fn(usize) -> u32; +impl Font { + pub fn new(gs: GlyphSet) -> Font { + match gs { + GlyphSet::Bold => Font { + glyph_pattern_offset: bold::get_glyph_pattern_offset, + glyph_data: bold_data, + }, + GlyphSet::Regular => Font { + glyph_pattern_offset: regular::get_glyph_pattern_offset, + glyph_data: regular_data, + }, + GlyphSet::Small => Font { + glyph_pattern_offset: small::get_glyph_pattern_offset, + glyph_data: small_data, + }, + } + } +} + +/// Get word of packed glyph data for bold +pub fn bold_data(index: usize) -> u32 { + bold::DATA[index] +} + +/// Get word of packed glyph data for regular +pub fn regular_data(index: usize) -> u32 { + regular::DATA[index] +} + +/// Get word of packed glyph data for small +pub fn small_data(index: usize) -> u32 { + small::DATA[index] +} diff --git a/services/graphics-server/src/fonts/bold.rs b/services/graphics-server/src/fonts/bold.rs new file mode 100644 index 000000000..c5e4feeac --- /dev/null +++ b/services/graphics-server/src/fonts/bold.rs @@ -0,0 +1,805 @@ +#![allow(dead_code)] +//! Bold Font + +/// Return offset into DATA[] for start of pattern depicting glyph for character c +pub fn get_glyph_pattern_offset(c: char) -> usize { + match c as u32 { + 0x20..=0x7E => BASIC_LATIN[(c as usize) - 0x20] as usize, + 0xA0..=0xFF => LATIN_1[(c as usize) - 0xA0] as usize, + 0x152..=0x153 => LATIN_EXTENDED_A[(c as usize) - 0x152] as usize, + 0x2018..=0x2022 => GENERAL_PUNCTUATION[(c as usize) - 0x2018] as usize, + 0x20AC..=0x20AC => CURRENCY_SYMBOLS[(c as usize) - 0x20AC] as usize, + 0xE700..=0xE70C => PRIVATE_USE_AREA[(c as usize) - 0xE700] as usize, + _ => SPECIALS[(0xFFFD as usize) - 0xFFFD] as usize, + } +} + +// Index to Unicode Basic Latin block glyph patterns +const BASIC_LATIN: [u16; 95] = [ + 0, // ' ' + 2, // '!' + 6, // '"' + 9, // '#' + 18, // '$' + 26, // '%' + 39, // '&' + 49, // ''' + 51, // '(' + 57, // ')' + 63, // '*' + 68, // '+' + 73, // ',' + 75, // '-' + 77, // '.' + 79, // '/' + 87, // '0' + 95, // '1' + 101, // '2' + 109, // '3' + 117, // '4' + 126, // '5' + 134, // '6' + 142, // '7' + 150, // '8' + 158, // '9' + 166, // ':' + 169, // ';' + 173, // '<' + 179, // '=' + 183, // '>' + 189, // '?' + 197, // '@' + 207, // 'A' + 215, // 'B' + 223, // 'C' + 231, // 'D' + 239, // 'E' + 246, // 'F' + 253, // 'G' + 261, // 'H' + 269, // 'I' + 275, // 'J' + 283, // 'K' + 292, // 'L' + 299, // 'M' + 312, // 'N' + 321, // 'O' + 329, // 'P' + 337, // 'Q' + 347, // 'R' + 355, // 'S' + 362, // 'T' + 370, // 'U' + 378, // 'V' + 386, // 'W' + 399, // 'X' + 407, // 'Y' + 415, // 'Z' + 423, // '[' + 429, // '\' + 437, // ']' + 443, // '^' + 446, // '_' + 448, // '`' + 451, // 'a' + 458, // 'b' + 466, // 'c' + 472, // 'd' + 480, // 'e' + 487, // 'f' + 494, // 'g' + 503, // 'h' + 511, // 'i' + 515, // 'j' + 524, // 'k' + 532, // 'l' + 536, // 'm' + 546, // 'n' + 553, // 'o' + 560, // 'p' + 568, // 'q' + 576, // 'r' + 582, // 's' + 588, // 't' + 594, // 'u' + 601, // 'v' + 608, // 'w' + 618, // 'x' + 625, // 'y' + 634, // 'z' + 641, // '{' + 647, // '|' + 650, // '}' + 656, // '~' +]; + +// Index to Unicode Latin 1 block glyph patterns +const LATIN_1: [u16; 96] = [ + 659, // ' ' + 661, // '¡' + 665, // '¢' + 671, // '£' + 680, // '¤' + 688, // '¥' + 698, // '¦' + 701, // '§' + 710, // '¨' + 712, // '©' + 722, // 'ª' + 728, // '«' + 736, // '¬' + 739, // '­' + 741, // '®' + 751, // '¯' + 753, // '°' + 756, // '±' + 762, // '²' + 765, // '³' + 768, // '´' + 771, // 'µ' + 781, // '¶' + 790, // '·' + 792, // '¸' + 794, // '¹' + 797, // 'º' + 803, // '»' + 811, // '¼' + 824, // '½' + 837, // '¾' + 850, // '¿' + 858, // 'À' + 868, // 'Á' + 878, // 'Â' + 888, // 'Ã' + 898, // 'Ä' + 908, // 'Å' + 918, // 'Æ' + 930, // 'Ç' + 940, // 'È' + 949, // 'É' + 958, // 'Ê' + 967, // 'Ë' + 975, // 'Ì' + 979, // 'Í' + 983, // 'Î' + 990, // 'Ï' + 997, // 'Ð' + 1006, // 'Ñ' + 1018, // 'Ò' + 1028, // 'Ó' + 1038, // 'Ô' + 1048, // 'Õ' + 1058, // 'Ö' + 1068, // '×' + 1073, // 'Ø' + 1085, // 'Ù' + 1095, // 'Ú' + 1105, // 'Û' + 1115, // 'Ü' + 1125, // 'Ý' + 1135, // 'Þ' + 1144, // 'ß' + 1153, // 'à' + 1162, // 'á' + 1171, // 'â' + 1180, // 'ã' + 1189, // 'ä' + 1197, // 'å' + 1207, // 'æ' + 1217, // 'ç' + 1226, // 'è' + 1235, // 'é' + 1244, // 'ê' + 1253, // 'ë' + 1261, // 'ì' + 1265, // 'í' + 1269, // 'î' + 1275, // 'ï' + 1281, // 'ð' + 1289, // 'ñ' + 1298, // 'ò' + 1307, // 'ó' + 1316, // 'ô' + 1325, // 'õ' + 1334, // 'ö' + 1342, // '÷' + 1347, // 'ø' + 1355, // 'ù' + 1364, // 'ú' + 1373, // 'û' + 1382, // 'ü' + 1390, // 'ý' + 1401, // 'þ' + 1411, // 'ÿ' +]; + +// Index to Unicode Latin Extended A block glyph patterns +const LATIN_EXTENDED_A: [u16; 2] = [ + 1421, // 'Œ' + 1433, // 'œ' +]; + +// Index to General Punctuation block glyph patterns +const GENERAL_PUNCTUATION: [u16; 11] = [ + 1443, // '‘' + 1445, // '’' + 1447, // '‚' + 1449, // '‛' + 1451, // '“' + 1455, // '”' + 1459, // '„' + 1463, // '‟' + 1467, // '†' + 1470, // '‡' + 1474, // '•' +]; + +// Index to Unicode Currency Symbols block glyph patterns +const CURRENCY_SYMBOLS: [u16; 1] = [ + 1479, // '€' +]; + +// Index to Unicode Private Use Area block glyph patterns (UI sprites) +const PRIVATE_USE_AREA: [u16; 13] = [ + 1488, // Battery_05 + 1498, // Battery_25 + 1508, // Battery_50 + 1518, // Battery_75 + 1528, // Battery_99 + 1538, // Radio_3 + 1551, // Radio_2 + 1564, // Radio_1 + 1577, // Radio_0 + 1590, // Radio_Off + 1603, // Shift_Arrow + 1611, // Backspace_Symbol + 1627, // Enter_Symbol +]; + +// Index to Unicode Specials block glyph patterns +const SPECIALS: [u16; 1] = [ + 1639, // '�' +]; + +/// Maximum height of glyph patterns in this bitmap typeface. +/// This will be true: h + yOffset <= MAX_HEIGHT +pub const MAX_HEIGHT: u8 = 30; + +/// Packed glyph pattern data. +/// Record format: +/// [offset+0]: ((w as u8) << 16) | ((h as u8) << 8) | (yOffset as u8) +/// [offset+1..=ceil(w*h/32)]: packed 1-bit pixels; 0=clear, 1=set +/// Pixels are packed in top to bottom, left to right order with MSB of first +/// pixel word containing the top left pixel. +/// w: Width of pattern in pixels +/// h: Height of pattern in pixels +/// yOffset: Vertical offset (pixels downward from top of line) to position +/// glyph pattern properly relative to text baseline +pub const DATA: [u32; 1652] = [ + // [0]: 20 ' ' + 0x0004020e, 0x00000000, + // [2]: 21 '!' + 0x00041206, 0xffffffff, 0xffff00ff, 0xff000000, + // [6]: 22 '"' + 0x00060606, 0xcf3cf3cf, 0x30000000, + // [9]: 23 '#' + 0x00101004, 0x30c030c0, 0x30c030c0, 0xfffcfffc, 0x0c300c30, 0x0c300c30, 0x3fff3fff, 0x030c030c, + 0x030c030c, + // [18]: 24 '$' + 0x000a1604, 0x0c0303f0, 0xfcccf330, 0xfc3f0fc3, 0xf3f0fcfc, 0x3f0fc3f0, 0xccf333f0, 0xfc0c0300, + // [26]: 25 '%' + 0x00121404, 0x0fcf03f3, 0xc0c30c30, 0xc30330c0, 0xcc3030f0, 0x0c3c00c0, 0x0030000c, 0x0003003c, + 0x300f0c0c, 0x33030cc0, 0xc30c30c3, 0x03c0c0f0, 0x30000000, + // [39]: 26 '&' + 0x00101206, 0x00fc00fc, 0x03cf03cf, 0x03cf03cf, 0x03ff03ff, 0xf0fcf0fc, 0x3fcf3fcf, 0x0f0f0f0f, + 0x3fcf3fcf, 0xf0fcf0fc, + // [49]: 27 '\'' + 0x00020606, 0xfff00000, + // [51]: 28 '(' + 0x00061604, 0xc3030c3c, 0xf3cf3cf3, 0xcf3cf3cf, 0x3cf30cc3, 0x00000000, + // [57]: 29 ')' + 0x00061604, 0x0c330cf3, 0xcf3cf3cf, 0x3cf3cf3c, 0xf3c30c0c, 0x30000000, + // [63]: 2A '*' + 0x000a0a06, 0x0c030ccf, 0x333f0fcc, 0xcf330c03, 0x00000000, + // [68]: 2B '+' + 0x000a0a0a, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x00000000, + // [73]: 2C ',' + 0x00040814, 0xffffcc33, + // [75]: 2D '-' + 0x000a020e, 0xfffff000, + // [77]: 2E '.' + 0x00040414, 0xffff0000, + // [79]: 2F '/' + 0x000a1404, 0xc0300c03, 0x00300c03, 0x00c00c03, 0x00c03003, 0x00c0300c, 0x00c0300c, 0x03000000, + // [87]: 30 '0' + 0x000c1206, 0x3fc3fcf0, 0xff0ff0ff, 0x0ffcffcf, 0xfffffff3, 0xff3ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [95]: 31 '1' + 0x00081206, 0xf0f0ffff, 0xf0f0f0f0, 0xf0f0f0f0, 0xf0f0f0f0, 0xf0f00000, + // [101]: 32 '2' + 0x000c1206, 0x3fc3fcf0, 0x3f03f00f, 0x00f00f00, 0x3c03c00f, 0x00f003c0, 0x3cffffff, 0xffffff00, + // [109]: 33 '3' + 0x000c1206, 0xffffff3c, 0x03c00f00, 0xf03fc3fc, 0xf00f00f0, 0x0f00f00f, 0x00f03f03, 0x3fc3fc00, + // [117]: 34 '4' + 0x000e1206, 0x3c00f003, 0xf00fc03c, 0xc0f303c3, 0x0f0c3c0c, 0xf03fffff, 0xff3c00f0, 0x03c00f00, + 0x3c00f000, + // [126]: 35 '5' + 0x000c1206, 0xffffff00, 0xf00f00f0, 0x0f3ff3ff, 0xf00f00f0, 0x0f00f00f, 0x00f03f03, 0x3fc3fc00, + // [134]: 36 '6' + 0x000c1206, 0x3f03f003, 0xc03c00f0, 0x0f3ff3ff, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [142]: 37 '7' + 0x000c1206, 0xfffffff0, 0x0f00f00f, 0x00f00f00, 0x3c03c00f, 0x00f00f00, 0xf00f00f0, 0x0f00f000, + // [150]: 38 '8' + 0x000c1206, 0x3fc3fcf0, 0xff0ff0ff, 0x0f3fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [158]: 39 '9' + 0x000c1206, 0x3fc3fcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0fff, 0xcffcf00f, 0x003c03c0, 0x0fc0fc00, + // [166]: 3A ':' + 0x00040e0a, 0xffff0000, 0x00ffff00, + // [169]: 3B ';' + 0x0004120a, 0xffff0000, 0x00ffffcc, 0x33000000, + // [173]: 3C '<' + 0x000a0e08, 0xf03c03c0, 0xf00f03c0, 0x3c0f0f03, 0xc3c0f0f0, 0x3c000000, + // [179]: 3D '=' + 0x000c060c, 0xffffff00, 0x0000ffff, 0xff000000, + // [183]: 3E '>' + 0x000a0e08, 0x03c0f0f0, 0x3c3c0f0f, 0x03c03c0f, 0x00f03c03, 0xc0f00000, + // [189]: 3F '?' + 0x000c1206, 0x3fc3fcf0, 0x3f03f00f, 0x003c03c0, 0x0f00f00f, 0x00f00000, 0x000f00f0, 0x0f00f000, + // [197]: 40 '@' + 0x00121008, 0x0ffc03ff, 0x030030c0, 0x0cc3f0f0, 0xfc3c30cf, 0x0c33c30c, 0xf0c333cf, 0x0cf3c300, + 0x030000c0, 0xffc03ff0, + // [207]: 41 'A' + 0x000c1206, 0x3fc3fcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xfffffff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f00, + // [215]: 42 'B' + 0x000c1206, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3ff3ff00, + // [223]: 43 'C' + 0x000c1206, 0x3fc3fcc0, 0xfc0f00f0, 0x0f00f00f, 0x00f00f00, 0xf00f00f0, 0x0fc0fc0f, 0x3fc3fc00, + // [231]: 44 'D' + 0x000c1206, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3ff3ff00, + // [239]: 45 'E' + 0x000a1206, 0xfffff03c, 0x0f03c0f0, 0x3c0f3fcf, 0xf03c0f03, 0xc0f03c0f, 0xfffff000, + // [246]: 46 'F' + 0x000a1206, 0xfffff03c, 0x0f03c0f0, 0x3c0f3fcf, 0xf03c0f03, 0xc0f03c0f, 0x03c0f000, + // [253]: 47 'G' + 0x000c1206, 0x3fc3fcc0, 0xfc0f00f0, 0x0f00f00f, 0xfcffcff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [261]: 48 'H' + 0x000c1206, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xfffffff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f00, + // [269]: 49 'I' + 0x00081206, 0xffff3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0xffff0000, + // [275]: 4A 'J' + 0x000c1206, 0xf00f00f0, 0x0f00f00f, 0x00f00f00, 0xf00f00f0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [283]: 4B 'K' + 0x000e1206, 0xf03fc0f3, 0xc3cf0f0f, 0x3c3cf03f, 0xc0ff00fc, 0x03f03fc0, 0xff0f3c3c, 0xf3c3cf0f, + 0xf03fc0f0, + // [292]: 4C 'L' + 0x000a1206, 0x03c0f03c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f03c0f, 0xfffff000, + // [299]: 4D 'M' + 0x00141206, 0xc0003c00, 0x03f000ff, 0x000ffc03, 0xffc03fff, 0x0ffff0ff, 0xf3ff3f3f, 0xf3f0fc3f, + 0x0fc3f030, 0x3f0303f0, 0x003f0003, 0xf0003f00, 0x03000000, + // [312]: 4E 'N' + 0x000e1206, 0xc00f003c, 0x03f00fc0, 0xff03fc3f, 0xf0ffcfcf, 0x3f3ff0ff, 0xc3fc0ff0, 0x3f00fc03, + 0xc00f0030, + // [321]: 4F 'O' + 0x000c1206, 0x3fc3fcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [329]: 50 'P' + 0x000c1206, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3ff3ff00, 0xf00f00f0, 0x0f00f00f, 0x00f00f00, + // [337]: 51 'Q' + 0x000c1606, 0x3fc3fcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc3c, + 0x03c0f00f, 0x00000000, + // [347]: 52 'R' + 0x000c1206, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f00, + // [355]: 53 'S' + 0x000a1206, 0x3f0fcc3f, 0x0f03c0f0, 0xfc3f3f0f, 0xcfc3f0f0, 0x3c0f0fc3, 0x3f0fc000, + // [362]: 54 'T' + 0x000c1206, 0xffffff0f, 0x00f00f00, 0xf00f00f0, 0x0f00f00f, 0x00f00f00, 0xf00f00f0, 0x0f00f000, + // [370]: 55 'U' + 0x000c1206, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [378]: 56 'V' + 0x000c1206, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0f3fc3fc, 0x0f00f000, + // [386]: 57 'W' + 0x00141206, 0xf0f0ff0f, 0x0ff0f0ff, 0x0f0ff0f0, 0xff0f0ff0, 0xf0ff0f0f, 0xf0f0ff0f, 0x0ff0f0ff, + 0x0f0ff0f0, 0xff0f0f30, 0xf0c30f0c, 0x0f0f00f0, 0xf0000000, + // [399]: 58 'X' + 0x000c1206, 0xf0ff0ff0, 0xff0ff0ff, 0x0f3fc3fc, 0x0f00f03f, 0xc3fcf0ff, 0x0ff0ff0f, 0xf0ff0f00, + // [407]: 59 'Y' + 0x000c1206, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc0f, 0x00f00f00, 0xf00f00f0, 0x0f00f000, + // [415]: 5A 'Z' + 0x000c1206, 0xfffffff0, 0x0f00f00f, 0x003c03c0, 0x0f00f003, 0xc03c00f0, 0x0f00f00f, 0xffffff00, + // [423]: 5B '[' + 0x00061604, 0xfff3cf3c, 0xf3cf3cf3, 0xcf3cf3cf, 0x3cf3cfff, 0xf0000000, + // [429]: 5C '\\' + 0x000a1404, 0x00c0300c, 0x030300c0, 0x300c0c03, 0x00c03030, 0x0c0300c0, 0xc0300c03, 0x00000000, + // [437]: 5D ']' + 0x00061604, 0xffff3cf3, 0xcf3cf3cf, 0x3cf3cf3c, 0xf3cf3cff, 0xf0000000, + // [443]: 5E '^' + 0x000a0606, 0x0c030330, 0xccc0f030, + // [446]: 5F '_' + 0x00100216, 0xffffffff, + // [448]: 60 '`' + 0x00060604, 0x0c330cc3, 0x00000000, + // [451]: 61 'a' + 0x000c0e0a, 0x3fc3fcf0, 0x3f03ffcf, 0xfcf0ff0f, 0xf0ff0ff0, 0xff0fffcf, 0xfc000000, + // [458]: 62 'b' + 0x000c1206, 0x00f00f00, 0xf00f3ff3, 0xfff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3ff3ff00, + // [466]: 63 'c' + 0x000a0e0a, 0x3f0fcc3f, 0x0f03c0f0, 0x3c0f03c0, 0xfc3f0f3f, 0x0fc00000, + // [472]: 64 'd' + 0x000c1206, 0xf00f00f0, 0x0f00ffcf, 0xfcf0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xffcffc00, + // [480]: 65 'e' + 0x000c0e0a, 0x3fc3fcf0, 0xff0ff0ff, 0x0fffffff, 0x00f00fc0, 0xfc0f3fc3, 0xfc000000, + // [487]: 66 'f' + 0x000a1206, 0xfc3f00f0, 0x3c3fcff0, 0xf03c0f03, 0xc0f03c0f, 0x03c0f03c, 0x0f03c000, + // [494]: 67 'g' + 0x000c140a, 0xffcffcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0fffcf, 0xfcf00f00, 0xf03f033f, + 0xc3fc0000, + // [503]: 68 'h' + 0x000c1206, 0x00f00f00, 0xf00f3ff3, 0xfff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f00, + // [511]: 69 'i' + 0x00041206, 0xff00ffff, 0xffffffff, 0xff000000, + // [515]: 6A 'j' + 0x000a1806, 0xf03c0000, 0x00f03c0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f0fc33, + 0xf0fc0000, + // [524]: 6B 'k' + 0x000c1206, 0x00f00f00, 0xf00ff0ff, 0x0f3cf3cf, 0x0ff0ff03, 0xf03f0ff0, 0xff3cf3cf, 0xf0ff0f00, + // [532]: 6C 'l' + 0x00041206, 0xffffffff, 0xffffffff, 0xff000000, + // [536]: 6D 'm' + 0x00140e0a, 0x3ffff3ff, 0xfff0f0ff, 0x0f0ff0f0, 0xff0f0ff0, 0xf0ff0f0f, 0xf0f0ff0f, 0x0ff0f0ff, + 0x0f0ff0f0, 0xff0f0f00, + // [546]: 6E 'n' + 0x000c0e0a, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0f000000, + // [553]: 6F 'o' + 0x000c0e0a, 0x3fc3fcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0f3fc3, 0xfc000000, + // [560]: 70 'p' + 0x000c120a, 0x3ff3fff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0f3ff3, 0xff00f00f, 0x00f00f00, + // [568]: 71 'q' + 0x000c120a, 0xffcffcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0fffcf, 0xfcf00f00, 0xf00f0000, + // [576]: 72 'r' + 0x000a0e0a, 0xf3fcf0fc, 0x3f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f00000, + // [582]: 73 's' + 0x000a0e0a, 0x3f0fcc3f, 0x0f0fc3f3, 0xf0fcfc3f, 0x0f0fc33f, 0x0fc00000, + // [588]: 74 't' + 0x00081206, 0x3c3c3c3c, 0xffff3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0xf0f00000, + // [594]: 75 'u' + 0x000c0e0a, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ffc, 0xffcff3cf, 0x3c000000, + // [601]: 76 'v' + 0x000c0e0a, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f3f, 0xc3fc0f00, 0xf0000000, + // [608]: 77 'w' + 0x00140e0a, 0xf0f0ff0f, 0x0ff0f0ff, 0x0f0ff0f0, 0xff0f0ff0, 0xf0ff0f0f, 0xf0f0ff0f, 0x0f30f0c3, + 0x0f0c0f0f, 0x00f0f000, + // [618]: 78 'x' + 0x000c0e0a, 0xf0ff0ff0, 0xff0f3fc3, 0xfc0f00f0, 0x3fc3fcf0, 0xff0ff0ff, 0x0f000000, + // [625]: 79 'y' + 0x000c140a, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0fffcf, 0xfcf00f00, 0xf03f033f, + 0xc3fc0000, + // [634]: 7A 'z' + 0x000c0e0a, 0xfffffff0, 0x0f003c03, 0xc00f00f0, 0x03c03c00, 0xf00fffff, 0xff000000, + // [641]: 7B '{' + 0x00061604, 0xc3030c30, 0xc30c30c0, 0xc330c30c, 0x30c30cc3, 0x00000000, + // [647]: 7C '|' + 0x00021604, 0xffffffff, 0xfff00000, + // [650]: 7D '}' + 0x00061604, 0x0c330c30, 0xc30c30cc, 0x3030c30c, 0x30c30c0c, 0x30000000, + // [656]: 7E '~' + 0x000c040a, 0xc3cc3c3c, 0x33c30000, + // [659]: A0 ' ' + 0x0004020e, 0x00000000, + // [661]: A1 '¡' + 0x00041206, 0xffff00ff, 0xffffffff, 0xff000000, + // [665]: A2 '¢' + 0x000a1004, 0x0c0303f0, 0xfcccf330, 0xcc330cc3, 0x3ccf333f, 0x0fc0c030, + // [671]: A3 '£' + 0x000e1206, 0x0fc03f03, 0x0f0c3c00, 0xf003c00f, 0x003c03fc, 0x0ff00f00, 0x3c00f003, 0xcc0f303c, + 0x3ffcfff0, + // [680]: A4 '¤' + 0x000e0e08, 0x400bbf77, 0xff8e1c70, 0x39806601, 0x98066019, 0xc0e3871f, 0xfeefdd00, 0x20000000, + // [688]: A5 '¥' + 0x00101206, 0xf00ff00f, 0x3c3c3c3c, 0xffffffff, 0x03c003c0, 0xffffffff, 0x03c003c0, 0x03c003c0, + 0x03c003c0, 0x03c003c0, + // [698]: A6 '¦' + 0x00021604, 0xfffff0ff, 0xfff00000, + // [701]: A7 '§' + 0x000a1804, 0x3f0fcc0f, 0x0303c0f0, 0xf03c3ccf, 0x3f0fc3c3, 0xf0fcf33c, 0x3c0f0f03, 0xc0c0f033, + 0xf0fc0000, + // [710]: A8 '¨' + 0x00080206, 0xc3c30000, + // [712]: A9 '©' + 0x00101206, 0x0ff00ff0, 0x300c300c, 0xc3c3c3c3, 0xcc33cc33, 0xc033c033, 0xcc33cc33, 0xc3c3c3c3, + 0x300c300c, 0x0ff00ff0, + // [722]: AA 'ª' + 0x000a1006, 0x3f0fcf0f, 0xc3ff3fcf, 0x3fcff3fc, 0xfff3fc00, 0x000fffff, + // [728]: AB '«' + 0x000e0e0a, 0xc3030c03, 0x0c0c300c, 0x3030c030, 0xc0c30c30, 0x30c30c0c, 0x30c3030c, 0x00000000, + // [736]: AC '¬' + 0x000a060e, 0xfffffc03, 0x00c03000, + // [739]: AD '­' + 0x000a020e, 0xfffff000, + // [741]: AE '®' + 0x00101206, 0x0ff00ff0, 0x300c300c, 0xc3f3c3f3, 0xcc33cc33, 0xc3f3c3f3, 0xcc33cc33, 0xcc33cc33, + 0x300c300c, 0x0ff00ff0, + // [751]: AF '¯' + 0x00080204, 0xffff0000, + // [753]: B0 '°' + 0x00080806, 0x3c3cc3c3, 0xc3c33c3c, + // [756]: B1 '±' + 0x000a0e0a, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x000000ff, 0xfff00000, + // [762]: B2 '²' + 0x00060a02, 0xfffc30ff, 0xf0c3fff0, + // [765]: B3 '³' + 0x00060a02, 0xfffc30ff, 0xfc30fff0, + // [768]: B4 '´' + 0x00060606, 0xc3030c0c, 0x30000000, + // [771]: B5 'µ' + 0x0010120a, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0xcffccffc, + 0x000c000c, 0x00030003, + // [781]: B6 '¶' + 0x000e1206, 0xfff3ffcc, 0xc3f30fcc, 0x3f30fcc3, 0xf30fcff3, 0x3fccc033, 0x00cc0330, 0x0cc03300, + 0xcc033000, + // [790]: B7 '·' + 0x0004040e, 0xffff0000, + // [792]: B8 '¸' + 0x00040618, 0xffcc3300, + // [794]: B9 '¹' + 0x00060a02, 0x30c3cf30, 0xc30cfff0, + // [797]: BA 'º' + 0x000a1006, 0x3f0fcf3f, 0xcff3fcff, 0x3fcff3fc, 0xf3f0fc00, 0x000fffff, + // [803]: BB '»' + 0x000e0e0a, 0x030c0c30, 0xc3030c30, 0xc0c30c30, 0x30c030c0, 0xc300c303, 0x0c030c0c, 0x30000000, + // [811]: BC '¼' + 0x00121402, 0x0c030300, 0xc0c03c30, 0x0f030300, 0xc0c03030, 0x0c0c00cf, 0xc033fccc, 0x033300cc, + 0x30330c0f, 0xc303f0c0, 0xc00c3003, 0x0c00c300, 0x30000000, + // [824]: BD '½' + 0x00121402, 0x0c030300, 0xc0c03c30, 0x0f030300, 0xc0c03030, 0x0c0c00cf, 0xc033ffcc, 0x03f300c0, + 0x30300c0f, 0xc303f0c0, 0x0c0c0303, 0x0fc0c3f0, 0x30000000, + // [837]: BE '¾' + 0x00121402, 0x0c0fc303, 0xf0c0c030, 0x30030fc0, 0xc3f030c0, 0x0c3000cf, 0xc033fccc, 0x033300cc, + 0x30330c0f, 0xc303f0c0, 0xc00c3003, 0x0c00c300, 0x30000000, + // [850]: BF '¿' + 0x000c1206, 0x0f00f00f, 0x00f00000, 0x000f00f0, 0x0f00f003, 0xc03c00f0, 0x0fc0fc0f, 0x3fc3fc00, + // [858]: C0 'À' + 0x000c1800, 0x0300300c, 0x00c00000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0fffffff, 0xf0ff0ff0, + 0xff0ff0ff, 0x0ff0ff0f, + // [868]: C1 'Á' + 0x000c1800, 0x0c00c003, 0x00300000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0fffffff, 0xf0ff0ff0, + 0xff0ff0ff, 0x0ff0ff0f, + // [878]: C2 'Â' + 0x000c1800, 0x0f00f030, 0xc30c0000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0fffffff, 0xf0ff0ff0, + 0xff0ff0ff, 0x0ff0ff0f, + // [888]: C3 'Ã' + 0x000c1800, 0xc3cc3c3c, 0x33c30000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0fffffff, 0xf0ff0ff0, + 0xff0ff0ff, 0x0ff0ff0f, + // [898]: C4 'Ä' + 0x000c1602, 0x30c30c00, 0x00003fc3, 0xfcf0ff0f, 0xf0ff0ff0, 0xff0fffff, 0xfff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f000000, + // [908]: C5 'Å' + 0x000c1800, 0x0f00f030, 0xc30c30c3, 0x0c3fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0fffffff, 0xf0ff0ff0, + 0xff0ff0ff, 0x0ff0ff0f, + // [918]: C6 'Æ' + 0x00121206, 0xffff3fff, 0xc03c3c0f, 0x0f03c3c0, 0xf0f03c3c, 0x0f0f3fff, 0xcffff03c, 0x3c0f0f03, + 0xc3c0f0f0, 0x3c3c0f0f, 0xffc3fff0, 0xf0000000, + // [930]: C7 'Ç' + 0x000c1806, 0x3fc3fcc0, 0xfc0f00f0, 0x0f00f00f, 0x00f00f00, 0xf00f00f0, 0x0fc0fc0f, 0x3fc3fc0f, + 0x00f00c00, 0xc0030030, + // [940]: C8 'È' + 0x000a1800, 0x0300c0c0, 0x3000000f, 0xffff03c0, 0xf03c0f03, 0xc0f3fcff, 0x03c0f03c, 0x0f03c0ff, + 0xffff0000, + // [949]: C9 'É' + 0x000a1800, 0x300c00c0, 0x3000000f, 0xffff03c0, 0xf03c0f03, 0xc0f3fcff, 0x03c0f03c, 0x0f03c0ff, + 0xffff0000, + // [958]: CA 'Ê' + 0x000a1800, 0x0f03c30c, 0xc300000f, 0xffff03c0, 0xf03c0f03, 0xc0f3fcff, 0x03c0f03c, 0x0f03c0ff, + 0xffff0000, + // [967]: CB 'Ë' + 0x000a1602, 0x330cc000, 0x00fffff0, 0x3c0f03c0, 0xf03c0f3f, 0xcff03c0f, 0x03c0f03c, 0x0ffffff0, + // [975]: CC 'Ì' + 0x00041800, 0x33cc00ff, 0xffffffff, 0xffffffff, + // [979]: CD 'Í' + 0x00041800, 0xcc3300ff, 0xffffffff, 0xffffffff, + // [983]: CE 'Î' + 0x00081800, 0x3c3cc3c3, 0x00003c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, + // [990]: CF 'Ï' + 0x00081602, 0xc3c30000, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c0000, + // [997]: D0 'Ð' + 0x000e1206, 0x3ff0ffcf, 0x0f3c3cf0, 0xf3c3cf0f, 0x3c3cf3ff, 0xcfff0f3c, 0x3cf0f3c3, 0xcf0f3c3c, + 0x3ff0ffc0, + // [1006]: D1 'Ñ' + 0x000e1800, 0x30f0c3c0, 0xf0c3c300, 0x00000c00, 0xf003c03f, 0x00fc0ff0, 0x3fc3ff0f, 0xfcfcf3f3, + 0xff0ffc3f, 0xc0ff03f0, 0x0fc03c00, 0xf0030000, + // [1018]: D2 'Ò' + 0x000c1800, 0x0300300c, 0x00c00000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f3fc3fc, + // [1028]: D3 'Ó' + 0x000c1800, 0x0c00c003, 0x00300000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f3fc3fc, + // [1038]: D4 'Ô' + 0x000c1800, 0x0f00f030, 0xc30c0000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f3fc3fc, + // [1048]: D5 'Õ' + 0x000c1800, 0xc3cc3c3c, 0x33c30000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f3fc3fc, + // [1058]: D6 'Ö' + 0x000c1602, 0x30c30c00, 0x00003fc3, 0xfcf0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0f3fc3, 0xfc000000, + // [1068]: D7 '×' + 0x000a0a0e, 0xc0f03330, 0xcc0c0303, 0x30ccc0f0, 0x30000000, + // [1073]: D8 'Ø' + 0x00121206, 0xcff033fc, 0x03c3c0f0, 0xf03c3c0f, 0x0f03f3c0, 0xfcf03cfc, 0x0f3f03c3, 0xc0f0f03c, + 0x3c0f0f03, 0xc3f0f0fc, 0x0ff0c3fc, 0x30000000, + // [1085]: D9 'Ù' + 0x000c1800, 0x0300300c, 0x00c00000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f3fc3fc, + // [1095]: DA 'Ú' + 0x000c1800, 0x0c00c003, 0x00300000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f3fc3fc, + // [1105]: DB 'Û' + 0x000c1800, 0x0f00f030, 0xc30c0000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0ff0ff, 0x0f3fc3fc, + // [1115]: DC 'Ü' + 0x000c1602, 0x30c30c00, 0x0000f0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0f3fc3, 0xfc000000, + // [1125]: DD 'Ý' + 0x000c1800, 0x0c00c003, 0x00300000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0f3fc3fc, 0x0f00f00f, + 0x00f00f00, 0xf00f00f0, + // [1135]: DE 'Þ' + 0x000e1206, 0x03fc0ff0, 0x0f003c3f, 0xf0ffcf0f, 0x3c3cf0f3, 0xc3cf0f3c, 0x3c3ff0ff, 0xc00f003c, + 0x03fc0ff0, + // [1144]: DF 'ß' + 0x000e1206, 0x0ff03fc3, 0xc3cf0f3c, 0x3cf0f0f3, 0xc3cf3c3c, 0xf0ff03fc, 0x0ff03fc0, 0xff03fc0f, + 0x3f3cfcf0, + // [1153]: E0 'à' + 0x000c1404, 0x0300300c, 0x00c00000, 0x003fc3fc, 0xf03f03ff, 0xcffcf0ff, 0x0ff0ff0f, 0xf0ff0fff, + 0xcffc0000, + // [1162]: E1 'á' + 0x000c1404, 0x0c00c003, 0x00300000, 0x003fc3fc, 0xf03f03ff, 0xcffcf0ff, 0x0ff0ff0f, 0xf0ff0fff, + 0xcffc0000, + // [1171]: E2 'â' + 0x000c1404, 0x0f00f030, 0xc30c0000, 0x003fc3fc, 0xf03f03ff, 0xcffcf0ff, 0x0ff0ff0f, 0xf0ff0fff, + 0xcffc0000, + // [1180]: E3 'ã' + 0x000c1404, 0xc3cc3c3c, 0x33c30000, 0x003fc3fc, 0xf03f03ff, 0xcffcf0ff, 0x0ff0ff0f, 0xf0ff0fff, + 0xcffc0000, + // [1189]: E4 'ä' + 0x000c1206, 0x30c30c00, 0x00003fc3, 0xfcf03f03, 0xffcffcf0, 0xff0ff0ff, 0x0ff0ff0f, 0xffcffc00, + // [1197]: E5 'å' + 0x000c1800, 0x0f00f030, 0xc30c30c3, 0x0c0f00f0, 0x0000003f, 0xc3fcf03f, 0x03ffcffc, 0xf0ff0ff0, + 0xff0ff0ff, 0x0fffcffc, + // [1207]: E6 'æ' + 0x00140e0a, 0x3fffc3ff, 0xfcf0f03f, 0x0f03f0ff, 0xcf0ffcff, 0xf0ffff0f, 0x00f0f00f, 0x0fc0f0fc, + 0x0f0f3fff, 0xc3fffc00, + // [1217]: E7 'ç' + 0x000c140a, 0x3fc3fcc0, 0xfc0f00f0, 0x0f00f00f, 0x00f00fc0, 0xfc0f3fc3, 0xfc0f00f0, 0x0c00c003, + 0x00300000, + // [1226]: E8 'è' + 0x000c1404, 0x0300300c, 0x00c00000, 0x003fc3fc, 0xf0ff0ff0, 0xff0fffff, 0xff00f00f, 0xc0fc0f3f, + 0xc3fc0000, + // [1235]: E9 'é' + 0x000c1404, 0x0c00c003, 0x00300000, 0x003fc3fc, 0xf0ff0ff0, 0xff0fffff, 0xff00f00f, 0xc0fc0f3f, + 0xc3fc0000, + // [1244]: EA 'ê' + 0x000c1404, 0x0f00f030, 0xc30c0000, 0x003fc3fc, 0xf0ff0ff0, 0xff0fffff, 0xff00f00f, 0xc0fc0f3f, + 0xc3fc0000, + // [1253]: EB 'ë' + 0x000c1206, 0x30c30c00, 0x00003fc3, 0xfcf0ff0f, 0xf0ff0fff, 0xffff00f0, 0x0fc0fc0f, 0x3fc3fc00, + // [1261]: EC 'ì' + 0x00041404, 0x33cc00ff, 0xffffffff, 0xffff0000, + // [1265]: ED 'í' + 0x00041404, 0xcc3300ff, 0xffffffff, 0xffff0000, + // [1269]: EE 'î' + 0x00081404, 0x3c3cc3c3, 0x00003c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, + // [1275]: EF 'ï' + 0x00081206, 0xc3c30000, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c3c3c, 0x3c3c0000, + // [1281]: F0 'ð' + 0x000c1206, 0x03f73f3f, 0x00fc3ce3, 0xc0ff0ff0, 0xf3cf3cf0, 0xff0ff0ff, 0x0f30f30f, 0x0fc0fc00, + // [1289]: F1 'ñ' + 0x000c1404, 0xc3cc3c3c, 0x33c30000, 0x003ff3ff, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0ff0, + 0xff0f0000, + // [1298]: F2 'ò' + 0x000c1404, 0x0300300c, 0x00c00000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f3f, + 0xc3fc0000, + // [1307]: F3 'ó' + 0x000c1404, 0x0c00c003, 0x00300000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f3f, + 0xc3fc0000, + // [1316]: F4 'ô' + 0x000c1404, 0x0f00f030, 0xc30c0000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f3f, + 0xc3fc0000, + // [1325]: F5 'õ' + 0x000c1404, 0xc3cc3c3c, 0x33c30000, 0x003fc3fc, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0f3f, + 0xc3fc0000, + // [1334]: F6 'ö' + 0x000c1206, 0x30c30c00, 0x00003fc3, 0xfcf0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3fc3fc00, + // [1342]: F7 '÷' + 0x000a0a0a, 0x0c030000, 0x00fffff0, 0x00000c03, 0x00000000, + // [1347]: F8 'ø' + 0x00100e0a, 0xcff0cff0, 0x3c3c3c3c, 0x3c3c3c3c, 0x3f3c3f3c, 0x3cfc3cfc, 0x3c3c3c3c, 0x0ff30ff3, + // [1355]: F9 'ù' + 0x000c1404, 0x0300300c, 0x00c00000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xfcffcff3, + 0xcf3c0000, + // [1364]: FA 'ú' + 0x000c1404, 0x0c00c003, 0x00300000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xfcffcff3, + 0xcf3c0000, + // [1373]: FB 'û' + 0x000c1404, 0x0f00f030, 0xc30c0000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xfcffcff3, + 0xcf3c0000, + // [1382]: FC 'ü' + 0x000c1206, 0x30c30c00, 0x0000f0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ffcffcf, 0xf3cf3c00, + // [1390]: FD 'ý' + 0x000c1a04, 0x0c00c003, 0x00300000, 0x00f0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xf0ff0fff, + 0xcffcf00f, 0x00f03f03, 0x3fc3fc00, + // [1401]: FE 'þ' + 0x000c1606, 0x00f00f00, 0xf00f3ff3, 0xfff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0x3ff3ff00, + 0xf00f00f0, 0x0f000000, + // [1411]: FF 'ÿ' + 0x000c1806, 0x30c30c00, 0x0000f0ff, 0x0ff0ff0f, 0xf0ff0ff0, 0xff0ff0ff, 0x0ff0ff0f, 0xffcffcf0, + 0x0f00f03f, 0x033fc3fc, + // [1421]: 152 'Œ' + 0x00121206, 0xffff3fff, 0xc03c3c0f, 0x0f03c3c0, 0xf0f03c3c, 0x0f0f3fc3, 0xcff0f03c, 0x3c0f0f03, + 0xc3c0f0f0, 0x3c3c0f0f, 0xffff3fff, 0xc0000000, + // [1433]: 153 'œ' + 0x00140e0a, 0x3fffc3ff, 0xfcf0f0ff, 0x0f0ff0f0, 0xff0f0fff, 0xf0ffff0f, 0x00f0f00f, 0x0fc0f0fc, + 0x0f0f3fff, 0xc3fffc00, + // [1443]: 2018 '‘' + 0x00040806, 0xcc33ffff, + // [1445]: 2019 '’' + 0x00040806, 0xffffcc33, + // [1447]: 201A '‚' + 0x00040814, 0xffffcc33, + // [1449]: 201B '‛' + 0x00040806, 0xffff33cc, + // [1451]: 201C '“' + 0x000a0806, 0xc330c30c, 0xc3f3fcff, 0x3fcf0000, + // [1455]: 201D '”' + 0x000a0806, 0xf3fcff3f, 0xcfc330c3, 0x0cc30000, + // [1459]: 201E '„' + 0x000a0814, 0xf3fcff3f, 0xcfc330c3, 0x0cc30000, + // [1463]: 201F '‟' + 0x000a0806, 0xf3fcff3f, 0xcf30cc3c, 0x330c0000, + // [1467]: 2020 '†' + 0x00060a06, 0x30cfff30, 0xc30c30c0, + // [1470]: 2021 '‡' + 0x00060c06, 0x30cfff30, 0xc30cfff3, 0x0c000000, + // [1474]: 2022 '•' + 0x000a0a0a, 0x3f0fcfff, 0xffffffff, 0xffff3f0f, 0xc0000000, + // [1479]: 20AC '€' + 0x00101008, 0x3fc03fc0, 0xc030c030, 0x000c000c, 0x3fff3fff, 0x000c000c, 0x0fff0fff, 0xc030c030, + 0x3fc03fc0, + // [1488]: E700 Battery_05 + 0x00180c0c, 0x3ffffe40, 0x00014000, 0x0dc0000d, 0xc0000dc0, 0x000dc000, 0x0dc0000d, 0xc0000d40, + 0x000d4000, 0x013ffffe, + // [1498]: E701 Battery_25 + 0x00180c0c, 0x3ffffe40, 0x00014000, 0x7dc0007d, 0xc0007dc0, 0x007dc000, 0x7dc0007d, 0xc0007d40, + 0x007d4000, 0x013ffffe, + // [1508]: E702 Battery_50 + 0x00180c0c, 0x3ffffe40, 0x0001400f, 0xfdc00ffd, 0xc00ffdc0, 0x0ffdc00f, 0xfdc00ffd, 0xc00ffd40, + 0x0ffd4000, 0x013ffffe, + // [1518]: E703 Battery_75 + 0x00180c0c, 0x3ffffe40, 0x000141ff, 0xfdc1fffd, 0xc1fffdc1, 0xfffdc1ff, 0xfdc1fffd, 0xc1fffd41, + 0xfffd4000, 0x013ffffe, + // [1528]: E704 Battery_99 + 0x00180c0c, 0x3ffffe40, 0x00015fff, 0xfddffffd, 0xdffffddf, 0xfffddfff, 0xfddffffd, 0xdffffd5f, + 0xfffd4000, 0x013ffffe, + // [1538]: E705 Radio_3 + 0x00151107, 0x00f8001f, 0xf003e3e0, 0x3c078380, 0x0e387c3b, 0x8ff8e8f1, 0xe20e0380, 0xe10e023e, + 0x2003f800, 0x38e00082, 0x00008000, 0x0e000020, 0x00000000, + // [1551]: E706 Radio_2 + 0x00151107, 0x00000000, 0x00000000, 0x00000000, 0x00007c00, 0x0ff800f1, 0xe00e0380, 0xe10e023e, + 0x2003f800, 0x38e00082, 0x00008000, 0x0e000020, 0x00000000, + // [1564]: E707 Radio_1 + 0x00151107, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0100003e, + 0x0003f800, 0x38e00082, 0x00008000, 0x0e000020, 0x00000000, + // [1577]: E708 Radio_0 + 0x00151107, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00008000, 0x0e000020, 0x00000000, + // [1590]: E709 Radio_Off + 0x00151107, 0x00f80018, 0x30030060, 0x20008200, 0x0220000a, 0x00002800, 0x02200020, 0x80020200, + 0x20080200, 0x20200082, 0x00022000, 0x0a000020, 0x00000000, + // [1603]: E70A Shift_Arrow + 0x000a1406, 0x0c0783f1, 0xfefffff0, 0xc0300c03, 0x00c0300c, 0x0300c030, 0x0c0300c0, 0x30000000, + // [1611]: E70B Backspace_Symbol + 0x001a1206, 0xffffc03f, 0xfff80c00, 0x07030000, 0xe0c6061c, 0x31c3838c, 0x39c07307, 0xe00ec0f0, + 0x01f03c00, 0x7c1f803b, 0x0e701cc7, 0x0e0e3181, 0x870c0003, 0x830001c0, 0xffffe03f, 0xfff00000, + // [1627]: E70C Enter_Symbol + 0x00180e08, 0xc00000c0, 0x0000c000, 0x00c00000, 0xc00030c0, 0x0038c000, 0x3cc0003e, 0xffffffff, + 0xffff0000, 0x3e00003c, 0x00003800, 0x00300000, + // [1639]: FFFD '�' + 0x00121404, 0x00c00030, 0x003f000f, 0xc00f3c03, 0xcf03ccf0, 0xf33cfcff, 0xff3ffff3, 0xfffcff3f, + 0xff0fffc0, 0xf3c03cf0, 0x03f000fc, 0x000c0003, 0x00000000, +]; diff --git a/services/graphics-server/src/fonts/regular.rs b/services/graphics-server/src/fonts/regular.rs new file mode 100644 index 000000000..dc9b07eef --- /dev/null +++ b/services/graphics-server/src/fonts/regular.rs @@ -0,0 +1,782 @@ +#![allow(dead_code)] +//! Regular Font + +/// Return offset into DATA[] for start of pattern depicting glyph for character c +pub fn get_glyph_pattern_offset(c: char) -> usize { + match c as u32 { + 0x20..=0x7E => BASIC_LATIN[(c as usize) - 0x20] as usize, + 0xA0..=0xFF => LATIN_1[(c as usize) - 0xA0] as usize, + 0x152..=0x153 => LATIN_EXTENDED_A[(c as usize) - 0x152] as usize, + 0x2018..=0x2022 => GENERAL_PUNCTUATION[(c as usize) - 0x2018] as usize, + 0x20AC..=0x20AC => CURRENCY_SYMBOLS[(c as usize) - 0x20AC] as usize, + 0xE700..=0xE70C => PRIVATE_USE_AREA[(c as usize) - 0xE700] as usize, + _ => SPECIALS[(0xFFFD as usize) - 0xFFFD] as usize, + } +} + +// Index to Unicode Basic Latin block glyph patterns +const BASIC_LATIN: [u16; 95] = [ + 0, // ' ' + 2, // '!' + 5, // '"' + 7, // '#' + 13, // '$' + 21, // '%' + 30, // '&' + 40, // ''' + 42, // '(' + 48, // ')' + 54, // '*' + 59, // '+' + 64, // ',' + 66, // '-' + 68, // '.' + 70, // '/' + 78, // '0' + 86, // '1' + 90, // '2' + 98, // '3' + 106, // '4' + 115, // '5' + 123, // '6' + 131, // '7' + 139, // '8' + 147, // '9' + 155, // ':' + 157, // ';' + 160, // '<' + 165, // '=' + 169, // '>' + 174, // '?' + 182, // '@' + 191, // 'A' + 200, // 'B' + 208, // 'C' + 216, // 'D' + 224, // 'E' + 231, // 'F' + 238, // 'G' + 246, // 'H' + 254, // 'I' + 257, // 'J' + 265, // 'K' + 273, // 'L' + 280, // 'M' + 289, // 'N' + 297, // 'O' + 305, // 'P' + 313, // 'Q' + 323, // 'R' + 331, // 'S' + 339, // 'T' + 348, // 'U' + 356, // 'V' + 365, // 'W' + 377, // 'X' + 384, // 'Y' + 391, // 'Z' + 398, // '[' + 402, // '\' + 410, // ']' + 414, // '^' + 417, // '_' + 419, // '`' + 421, // 'a' + 427, // 'b' + 434, // 'c' + 440, // 'd' + 447, // 'e' + 453, // 'f' + 459, // 'g' + 467, // 'h' + 474, // 'i' + 477, // 'j' + 483, // 'k' + 490, // 'l' + 493, // 'm' + 502, // 'n' + 508, // 'o' + 514, // 'p' + 521, // 'q' + 528, // 'r' + 534, // 's' + 540, // 't' + 546, // 'u' + 552, // 'v' + 558, // 'w' + 567, // 'x' + 573, // 'y' + 582, // 'z' + 588, // '{' + 594, // '|' + 597, // '}' + 603, // '~' +]; + +// Index to Unicode Latin 1 block glyph patterns +const LATIN_1: [u16; 96] = [ + 606, // ' ' + 608, // '¡' + 611, // '¢' + 618, // '£' + 626, // '¤' + 633, // '¥' + 640, // '¦' + 643, // '§' + 653, // '¨' + 655, // '©' + 664, // 'ª' + 669, // '«' + 674, // '¬' + 677, // '­' + 679, // '®' + 688, // '¯' + 690, // '°' + 693, // '±' + 699, // '²' + 702, // '³' + 705, // '´' + 707, // 'µ' + 717, // '¶' + 728, // '·' + 730, // '¸' + 732, // '¹' + 735, // 'º' + 740, // '»' + 745, // '¼' + 758, // '½' + 771, // '¾' + 784, // '¿' + 791, // 'À' + 803, // 'Á' + 815, // 'Â' + 827, // 'Ã' + 839, // 'Ä' + 850, // 'Å' + 861, // 'Æ' + 874, // 'Ç' + 884, // 'È' + 893, // 'É' + 902, // 'Ê' + 911, // 'Ë' + 919, // 'Ì' + 923, // 'Í' + 927, // 'Î' + 933, // 'Ï' + 939, // 'Ð' + 948, // 'Ñ' + 958, // 'Ò' + 968, // 'Ó' + 978, // 'Ô' + 988, // 'Õ' + 998, // 'Ö' + 1008, // '×' + 1013, // 'Ø' + 1023, // 'Ù' + 1033, // 'Ú' + 1043, // 'Û' + 1053, // 'Ü' + 1063, // 'Ý' + 1072, // 'Þ' + 1079, // 'ß' + 1087, // 'à' + 1095, // 'á' + 1103, // 'â' + 1111, // 'ã' + 1119, // 'ä' + 1126, // 'å' + 1135, // 'æ' + 1144, // 'ç' + 1151, // 'è' + 1159, // 'é' + 1167, // 'ê' + 1175, // 'ë' + 1182, // 'ì' + 1186, // 'í' + 1190, // 'î' + 1195, // 'ï' + 1200, // 'ð' + 1207, // 'ñ' + 1215, // 'ò' + 1223, // 'ó' + 1231, // 'ô' + 1239, // 'õ' + 1247, // 'ö' + 1254, // '÷' + 1259, // 'ø' + 1267, // 'ù' + 1275, // 'ú' + 1283, // 'û' + 1291, // 'ü' + 1298, // 'ý' + 1309, // 'þ' + 1317, // 'ÿ' +]; + +// Index to Unicode Latin Extended A block glyph patterns +const LATIN_EXTENDED_A: [u16; 2] = [ + 1327, // 'Œ' + 1340, // 'œ' +]; + +// Index to General Punctuation block glyph patterns +const GENERAL_PUNCTUATION: [u16; 11] = [ + 1349, // '‘' + 1351, // '’' + 1353, // '‚' + 1355, // '‛' + 1357, // '“' + 1360, // '”' + 1363, // '„' + 1366, // '‟' + 1369, // '†' + 1376, // '‡' + 1384, // '•' +]; + +// Index to Unicode Currency Symbols block glyph patterns +const CURRENCY_SYMBOLS: [u16; 1] = [ + 1390, // '€' +]; + +// Index to Unicode Private Use Area block glyph patterns (UI sprites) +const PRIVATE_USE_AREA: [u16; 13] = [ + 1399, // Battery_05 + 1409, // Battery_25 + 1419, // Battery_50 + 1429, // Battery_75 + 1439, // Battery_99 + 1449, // Radio_3 + 1462, // Radio_2 + 1475, // Radio_1 + 1488, // Radio_0 + 1501, // Radio_Off + 1514, // Shift_Arrow + 1522, // Backspace_Symbol + 1538, // Enter_Symbol +]; + +// Index to Unicode Specials block glyph patterns +const SPECIALS: [u16; 1] = [ + 1550, // '�' +]; + +/// Maximum height of glyph patterns in this bitmap typeface. +/// This will be true: h + yOffset <= MAX_HEIGHT +pub const MAX_HEIGHT: u8 = 30; + +/// Packed glyph pattern data. +/// Record format: +/// [offset+0]: ((w as u8) << 16) | ((h as u8) << 8) | (yOffset as u8) +/// [offset+1..=ceil(w*h/32)]: packed 1-bit pixels; 0=clear, 1=set +/// Pixels are packed in top to bottom, left to right order with MSB of first +/// pixel word containing the top left pixel. +/// w: Width of pattern in pixels +/// h: Height of pattern in pixels +/// yOffset: Vertical offset (pixels downward from top of line) to position +/// glyph pattern properly relative to text baseline +pub const DATA: [u32; 1563] = [ + // [0]: 20 ' ' + 0x0004020e, 0x00000000, + // [2]: 21 '!' + 0x00021206, 0xfffffff0, 0xf0000000, + // [5]: 22 '"' + 0x00060406, 0xcf3cf300, + // [7]: 23 '#' + 0x000e0a06, 0x3300cc0f, 0xff3ffc0c, 0xc03303ff, 0xcfff0330, 0x0cc00000, + // [13]: 24 '$' + 0x000a1604, 0x0c0303f0, 0xfcccf330, 0xcc330f03, 0xc3c0f0cc, 0x330cc330, 0xccf333f0, 0xfc0c0300, + // [21]: 25 '%' + 0x000e1206, 0xfff3ffcc, 0x30f0c333, 0x0ccc30cf, 0x033c0300, 0x0c03cc0f, 0x30c3330c, 0xcc30f0c3, + 0x3c0cf030, + // [30]: 26 '&' + 0x00101206, 0x00f000f0, 0x030c030c, 0x00cc00cc, 0x00300030, 0x00cc00cc, 0x33033303, 0x0c030c03, + 0x33033303, 0xc0fcc0fc, + // [40]: 27 '\'' + 0x00020406, 0xff000000, + // [42]: 28 '(' + 0x00061604, 0xc3030c30, 0xc0c30c30, 0xc30c30c3, 0x30c30cc3, 0x00000000, + // [48]: 29 ')' + 0x00061604, 0x0c330c30, 0xcc30c30c, 0x30c30c30, 0x30c30c0c, 0x30000000, + // [54]: 2A '*' + 0x000a0a08, 0x0c030ccf, 0x333f0fc3, 0x30ccc0f0, 0x30000000, + // [59]: 2B '+' + 0x000a0a0a, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x00000000, + // [64]: 2C ',' + 0x00040616, 0xcccc3300, + // [66]: 2D '-' + 0x000a020e, 0xfffff000, + // [68]: 2E '.' + 0x00020216, 0xf0000000, + // [70]: 2F '/' + 0x000a1404, 0xc0300c03, 0x00300c03, 0x00c00c03, 0x00c03003, 0x00c0300c, 0x00c0300c, 0x03000000, + // [78]: 30 '0' + 0x000c1206, 0x0f00f030, 0xc30cc03c, 0x03c03c03, 0xc03c03c0, 0x3c03c03c, 0x0330c30c, 0x0f00f000, + // [86]: 31 '1' + 0x00041206, 0xccffcccc, 0xcccccccc, 0xcc000000, + // [90]: 32 '2' + 0x000c1206, 0x3f03f0c0, 0xcc0cc03c, 0x03c00c00, 0x3003000c, 0x00c00300, 0x3000c00c, 0xffffff00, + // [98]: 33 '3' + 0x000c1206, 0xffffff30, 0x03000c00, 0xc00f00f0, 0x300300c0, 0x0c00c00c, 0x00303303, 0x0fc0fc00, + // [106]: 34 '4' + 0x000e1206, 0x3000c003, 0xc00f0033, 0x00cc030c, 0x0c303030, 0xc0c300cc, 0x03ffffff, 0xf3000c00, + 0x3000c000, + // [115]: 35 '5' + 0x000c1206, 0xffffff00, 0x30030030, 0x033ff3ff, 0xc00c00c0, 0x0c00c00c, 0x00c03c03, 0x3fc3fc00, + // [123]: 36 '6' + 0x000c1206, 0x3f03f000, 0xc00c0030, 0x033ff3ff, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0x3fc3fc00, + // [131]: 37 '7' + 0x000c1206, 0xffffffc0, 0x0c003003, 0x00300300, 0x0c00c00c, 0x00c00300, 0x30030030, 0x03003000, + // [139]: 38 '8' + 0x000c1206, 0x3fc3fcc0, 0x3c03c03c, 0x033fc3fc, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0x3fc3fc00, + // [147]: 39 '9' + 0x000c1206, 0x3fc3fcc0, 0x3c03c03c, 0x03c03c03, 0xc03c03ff, 0xcffcc00c, 0x00300300, 0x0fc0fc00, + // [155]: 3A ':' + 0x00020c0c, 0xf0000f00, + // [157]: 3B ';' + 0x0004100c, 0xcc000000, 0x00cccc33, + // [160]: 3C '<' + 0x00080e0a, 0xc0c03030, 0x0c0c0303, 0x0c0c3030, 0xc0c00000, + // [165]: 3D '=' + 0x000a080e, 0xfffff000, 0x0000000f, 0xffff0000, + // [169]: 3E '>' + 0x00080e0a, 0x03030c0c, 0x3030c0c0, 0x30300c0c, 0x03030000, + // [174]: 3F '?' + 0x000c1206, 0x3fc3fcc0, 0x3c03c03c, 0x03300300, 0x0c00c003, 0x00300300, 0x30000000, 0x03003000, + // [182]: 40 '@' + 0x00101008, 0x0ff00ff0, 0x300c300c, 0xcfc3cfc3, 0xcc33cc33, 0xcc33cc33, 0x3fc33fc3, 0x000c000c, + 0x03f003f0, + // [191]: 41 'A' + 0x000e1206, 0x03000c00, 0x3000c00c, 0xc03300cc, 0x03303030, 0xc0c3030c, 0x0cffffff, 0xfc00f003, + 0xc00f0030, + // [200]: 42 'B' + 0x000c1206, 0x3ff3ffc0, 0x3c03c03c, 0x033ff3ff, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0x3ff3ff00, + // [208]: 43 'C' + 0x000c1206, 0x3fc3fcc0, 0x3c030030, 0x03003003, 0x00300300, 0x30030030, 0x03c03c03, 0x3fc3fc00, + // [216]: 44 'D' + 0x000c1206, 0x0ff0ff30, 0x3303c03c, 0x03c03c03, 0xc03c03c0, 0x3c03c03c, 0x03303303, 0x0ff0ff00, + // [224]: 45 'E' + 0x000a1206, 0xfffff00c, 0x0300c030, 0x0c033fcf, 0xf00c0300, 0xc0300c03, 0xfffff000, + // [231]: 46 'F' + 0x000a1206, 0xfffff00c, 0x0300c030, 0x0c033fcf, 0xf00c0300, 0xc0300c03, 0x00c03000, + // [238]: 47 'G' + 0x000c1206, 0x3fc3fcc0, 0x3c030030, 0x03003003, 0xfc3fc3c0, 0x3c03c03c, 0x03c03c03, 0x3fc3fc00, + // [246]: 48 'H' + 0x000c1206, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xffffffc0, 0x3c03c03c, 0x03c03c03, 0xc03c0300, + // [254]: 49 'I' + 0x00021206, 0xffffffff, 0xf0000000, + // [257]: 4A 'J' + 0x000c1206, 0xc00c00c0, 0x0c00c00c, 0x00c00c00, 0xc00c00c0, 0x0c00c03c, 0x03c03c03, 0x3fc3fc00, + // [265]: 4B 'K' + 0x000c1206, 0xc03c0330, 0x33030c30, 0xc3033033, 0x00f00f03, 0x30330c30, 0xc3303303, 0xc03c0300, + // [273]: 4C 'L' + 0x000a1206, 0x00c0300c, 0x0300c030, 0x0c0300c0, 0x300c0300, 0xc0300c03, 0xfffff000, + // [280]: 4D 'M' + 0x000e1206, 0xc00f003f, 0x03fc0fcc, 0xcf333c30, 0xf0c3c00f, 0x003c00f0, 0x03c00f00, 0x3c00f003, + 0xc00f0030, + // [289]: 4E 'N' + 0x000c1206, 0xc0fc0fc0, 0xfc0fc33c, 0x33c33c33, 0xcc3cc3cc, 0x3cc3f03f, 0x03f03f03, 0xc03c0300, + // [297]: 4F 'O' + 0x000c1206, 0x3fc3fcc0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0x3fc3fc00, + // [305]: 50 'P' + 0x000c1206, 0x3ff3ffc0, 0x3c03c03c, 0x03c03c03, 0x3ff3ff00, 0x30030030, 0x03003003, 0x00300300, + // [313]: 51 'Q' + 0x000c1606, 0x3fc3fcc0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0x3fc3fc0c, + 0x00c0f00f, 0x00000000, + // [323]: 52 'R' + 0x000c1206, 0x3ff3ffc0, 0x3c03c03c, 0x03c03c03, 0x3ff3ff0c, 0x30c33033, 0x03c03c03, 0xc03c0300, + // [331]: 53 'S' + 0x000c1206, 0x3fc3fcc0, 0x3c030030, 0x03003003, 0x3fc3fcc0, 0x0c00c00c, 0x00c03c03, 0x3fc3fc00, + // [339]: 54 'T' + 0x000e1206, 0xfffffff0, 0x3000c003, 0x000c0030, 0x00c00300, 0x0c003000, 0xc003000c, 0x003000c0, + 0x03000c00, + // [348]: 55 'U' + 0x000c1206, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0x3fc3fc00, + // [356]: 56 'V' + 0x000e1206, 0xc00f003c, 0x00f003c0, 0x0f003303, 0x0c0c3030, 0xc0c0cc03, 0x300cc033, 0x003000c0, + 0x03000c00, + // [365]: 57 'W' + 0x00121206, 0xc000f000, 0x3c000f00, 0x03c0c0f0, 0x30330c30, 0xc30c3333, 0x0cccc333, 0x30cccc0c, + 0x0c030300, 0xc0c03030, 0x0c0c0303, 0x00000000, + // [377]: 58 'X' + 0x000a1206, 0xc0f03c0f, 0x03330cc3, 0x30cc0c03, 0x0330cc33, 0x0ccc0f03, 0xc0f03000, + // [384]: 59 'Y' + 0x000a1206, 0xc0f03c0f, 0x03c0f033, 0x30cc330c, 0xc0c0300c, 0x0300c030, 0x0c030000, + // [391]: 5A 'Z' + 0x000a1206, 0xfffffc03, 0x00300c03, 0x00c00c03, 0x00300c03, 0x00c00c03, 0xfffff000, + // [398]: 5B '[' + 0x00041604, 0xff333333, 0x33333333, 0x3333ff00, + // [402]: 5C '\\' + 0x000a1404, 0x00c0300c, 0x030300c0, 0x300c0c03, 0x00c03030, 0x0c0300c0, 0xc0300c03, 0x00000000, + // [410]: 5D ']' + 0x00041604, 0xffcccccc, 0xcccccccc, 0xccccff00, + // [414]: 5E '^' + 0x00060806, 0x30c30ccf, 0x3cf30000, + // [417]: 5F '_' + 0x00100216, 0xffffffff, + // [419]: 60 '`' + 0x00040406, 0x33cc0000, + // [421]: 61 'a' + 0x000a0e0a, 0x3f0fcc0f, 0x03c0300f, 0xf3fcc0f0, 0x3c0f03ff, 0x3fc00000, + // [427]: 62 'b' + 0x000a1206, 0x00c0300c, 0x033fcffc, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0x3fcff000, + // [434]: 63 'c' + 0x000a0e0a, 0x3f0fcc0f, 0x0300c030, 0x0c0300c0, 0x3c0f033f, 0x0fc00000, + // [440]: 64 'd' + 0x000a1206, 0xc0300c03, 0x00ff3fcc, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xff3fc000, + // [447]: 65 'e' + 0x000a0e0a, 0x3f0fcc0f, 0x03c0f03f, 0xffff00c0, 0x3c0f033f, 0x0fc00000, + // [453]: 66 'f' + 0x00081206, 0xf0f00c0c, 0x3f3f0c0c, 0x0c0c0c0c, 0x0c0c0c0c, 0x0c0c0000, + // [459]: 67 'g' + 0x000a140a, 0xff3fcc0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f03ff, 0x3fcc0300, 0xc0f033f0, 0xfc000000, + // [467]: 68 'h' + 0x000a1206, 0x00c0300c, 0x033ccf3c, 0x3f0fc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f03000, + // [474]: 69 'i' + 0x00021206, 0xf0ffffff, 0xf0000000, + // [477]: 6A 'j' + 0x00061806, 0xc30000c3, 0x0c30c30c, 0x30c30c30, 0xc30c30c3, 0x03cf0000, + // [483]: 6B 'k' + 0x000a1206, 0x00c0300c, 0x03c0f033, 0x0cc30cc3, 0x303c0f0c, 0xc3330cc3, 0xc0f03000, + // [490]: 6C 'l' + 0x00021206, 0xffffffff, 0xf0000000, + // [493]: 6D 'm' + 0x00120e0a, 0x3c3ccf0f, 0x3c3c3f0f, 0x0fc0c0f0, 0x303c0c0f, 0x0303c0c0, 0xf0303c0c, 0x0f0303c0, + 0xc0f03030, + // [502]: 6E 'n' + 0x000a0e0a, 0x3ccf3c3f, 0x0fc0f03c, 0x0f03c0f0, 0x3c0f03c0, 0xf0300000, + // [508]: 6F 'o' + 0x000a0e0a, 0x3f0fcc0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f033f, 0x0fc00000, + // [514]: 70 'p' + 0x000a120a, 0x3fcffc0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f033f, 0xcff00c03, 0x00c03000, + // [521]: 71 'q' + 0x000a120a, 0xff3fcc0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f03ff, 0x3fcc0300, 0xc0300000, + // [528]: 72 'r' + 0x000a0e0a, 0xfcff303c, 0x0f00c030, 0x0c0300c0, 0x300c0300, 0xc0300000, + // [534]: 73 's' + 0x000a0e0a, 0x3f0fcc0f, 0x0300c033, 0xf0fcc030, 0x0c0f033f, 0x0fc00000, + // [540]: 74 't' + 0x00081206, 0x0c0c0c0c, 0x3f3f0c0c, 0x0c0c0c0c, 0x0c0c0c0c, 0xf0f00000, + // [546]: 75 'u' + 0x000a0e0a, 0xc0f03c0f, 0x03c0f03c, 0x0f03c0f0, 0x3f0fc3cf, 0x33c00000, + // [552]: 76 'v' + 0x000a0e0a, 0xc0f03c0f, 0x03c0f033, 0x30cc330c, 0xc0c0300c, 0x03000000, + // [558]: 77 'w' + 0x00120e0a, 0xc0c0f030, 0x3c0c0f03, 0x0333330c, 0xccc33330, 0xcccc0c0c, 0x030300c0, 0xc030300c, + 0x0c030300, + // [567]: 78 'x' + 0x000a0e0a, 0xc0f03c0f, 0x03330cc0, 0xc030330c, 0xcc0f03c0, 0xf0300000, + // [573]: 79 'y' + 0x000c140a, 0xc0cc0cc0, 0xcc0cc0cc, 0x0c330330, 0x3303300c, 0x00c00c00, 0xc0030030, 0x03003000, + 0xf00f0000, + // [582]: 7A 'z' + 0x000a0e0a, 0xfffffc03, 0x00300c00, 0xc0300300, 0xc00c03ff, 0xfff00000, + // [588]: 7B '{' + 0x00061604, 0xc3030c30, 0xc30c30c0, 0xc330c30c, 0x30c30cc3, 0x00000000, + // [594]: 7C '|' + 0x00021604, 0xffffffff, 0xfff00000, + // [597]: 7D '}' + 0x00061604, 0x0c330c30, 0xc30c30cc, 0x3030c30c, 0x30c30c0c, 0x30000000, + // [603]: 7E '~' + 0x000c0406, 0xc3cc3c3c, 0x33c30000, + // [606]: A0 ' ' + 0x0004020e, 0x00000000, + // [608]: A1 '¡' + 0x00021206, 0xf0ffffff, 0xf0000000, + // [611]: A2 '¢' + 0x000a1208, 0x0c0303f0, 0xfcccf330, 0xcc330cc3, 0x30cc33cc, 0xf333f0fc, 0x0c030000, + // [618]: A3 '£' + 0x000c1206, 0x3c03c003, 0x00300300, 0x30030030, 0x0ff0ff00, 0xc00c00c0, 0x0c00c00c, 0xffffff00, + // [626]: A4 '¤' + 0x000c1006, 0x30c30c0f, 0x00f030c3, 0x0cc03c03, 0xc03c0330, 0xc30c0f00, 0xf030c30c, + // [633]: A5 '¥' + 0x000a1206, 0xc0f03330, 0xccfffff0, 0xc030ffff, 0xf0c0300c, 0x0300c030, 0x0c030000, + // [640]: A6 '¦' + 0x00021604, 0xfffff0ff, 0xfff00000, + // [643]: A7 '§' + 0x000c1606, 0x3fc3fcc0, 0x3c030030, 0x0303c03c, 0x3c33c3c0, 0x3c03c3cc, 0x3c3c03c0, 0xc00c00c0, + 0x3c033fc3, 0xfc000000, + // [653]: A8 '¨' + 0x00060206, 0xcf300000, + // [655]: A9 '©' + 0x00101008, 0x0ff00ff0, 0x300c300c, 0xc3c3c3c3, 0xc033c033, 0xc033c033, 0xc3c3c3c3, 0x300c300c, + 0x0ff00ff0, + // [664]: AA 'ª' + 0x00080e06, 0x3c3cc0c0, 0xfcfcc3c3, 0xfcfc0000, 0xffff0000, + // [669]: AB '«' + 0x000c0a0e, 0xc30c3030, 0xc30c0c30, 0xc330c30c, 0xc30c3000, + // [674]: AC '¬' + 0x000a060e, 0xfffffc03, 0x00c03000, + // [677]: AD '­' + 0x000a020e, 0xfffff000, + // [679]: AE '®' + 0x00101008, 0x0ff00ff0, 0x300c300c, 0xc3f3c3f3, 0xcc33cc33, 0xc3f3c3f3, 0xcc33cc33, 0x300c300c, + 0x0ff00ff0, + // [688]: AF '¯' + 0x00060206, 0xfff00000, + // [690]: B0 '°' + 0x00080806, 0x3c3cc3c3, 0xc3c33c3c, + // [693]: B1 '±' + 0x000a0e0a, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x000000ff, 0xfff00000, + // [699]: B2 '²' + 0x00060a02, 0xfffc30ff, 0xf0c3fff0, + // [702]: B3 '³' + 0x00060a02, 0xfffc30ff, 0xfc30fff0, + // [705]: B4 '´' + 0x00040406, 0xcc330000, + // [707]: B5 'µ' + 0x0010120a, 0xc0c0c0c0, 0xc0c0c0c0, 0x30303030, 0x30303030, 0x30303030, 0x0c0c0c0c, 0x33fc33fc, + 0x00030003, 0x00030003, + // [717]: B6 '¶' + 0x000e1606, 0xfff3ffc3, 0x3fccff33, 0xfccff33f, 0xccff33f0, 0xcfc3300c, 0xc03300cc, 0x03300cc0, + 0x3300cc03, 0x300cc033, 0x00cc0000, + // [728]: B7 '·' + 0x00020210, 0xf0000000, + // [730]: B8 '¸' + 0x00040618, 0x33ccff00, + // [732]: B9 '¹' + 0x00060a02, 0x30c3cf30, 0xc30cfff0, + // [735]: BA 'º' + 0x00080e06, 0x3c3cc3c3, 0xc3c3c3c3, 0x3c3c0000, 0xffff0000, + // [740]: BB '»' + 0x000c0a0e, 0x0c30c330, 0xc30cc30c, 0x3030c30c, 0x0c30c300, + // [745]: BC '¼' + 0x00121402, 0x0c030300, 0xc0c03c30, 0x0f030300, 0xc0c03030, 0x0c0c00cf, 0xc033fccc, 0x033300cc, + 0x30330c0f, 0xc303f0c0, 0xc00c3003, 0x0c00c300, 0x30000000, + // [758]: BD '½' + 0x00121402, 0x0c030300, 0xc0c03c30, 0x0f030300, 0xc0c03030, 0x0c0c00cf, 0xc033ffcc, 0x03f300c0, + 0x30300c0f, 0xc303f0c0, 0x0c0c0303, 0x0fc0c3f0, 0x30000000, + // [771]: BE '¾' + 0x00121402, 0x0c0fc303, 0xf0c0c030, 0x30030fc0, 0xc3f030c0, 0x0c3000cf, 0xc033fccc, 0x033300cc, + 0x30330c0f, 0xc303f0c0, 0xc00c3003, 0x0c00c300, 0x30000000, + // [784]: BF '¿' + 0x000a1206, 0x0c030000, 0x000c0300, 0xc0300300, 0xc00c03c0, 0xf03c0f03, 0x3f0fc000, + // [791]: C0 'À' + 0x000e1800, 0x00c00300, 0x3000c000, 0x00000030, 0x00c00300, 0x0c00cc03, 0x300cc033, 0x03030c0c, + 0x3030c0cf, 0xffffffc0, 0x0f003c00, 0xf0030000, + // [803]: C1 'Á' + 0x000e1800, 0x0c003000, 0x3000c000, 0x00000030, 0x00c00300, 0x0c00cc03, 0x300cc033, 0x03030c0c, + 0x3030c0cf, 0xffffffc0, 0x0f003c00, 0xf0030000, + // [815]: C2 'Â' + 0x000e1800, 0x03000c00, 0xcc033000, 0x00000030, 0x00c00300, 0x0c00cc03, 0x300cc033, 0x03030c0c, + 0x3030c0cf, 0xffffffc0, 0x0f003c00, 0xf0030000, + // [827]: C3 'Ã' + 0x000e1800, 0xc3c30f03, 0xc30f0c00, 0x00000030, 0x00c00300, 0x0c00cc03, 0x300cc033, 0x03030c0c, + 0x3030c0cf, 0xffffffc0, 0x0f003c00, 0xf0030000, + // [839]: C4 'Ä' + 0x000e1602, 0x0cc03300, 0x00000003, 0x000c0030, 0x00c00cc0, 0x3300cc03, 0x303030c0, 0xc3030c0c, + 0xfffffffc, 0x00f003c0, 0x0f003000, + // [850]: C5 'Å' + 0x000e1602, 0x03000c00, 0xcc033003, 0x000c0030, 0x00c00cc0, 0x3300cc03, 0x303030c0, 0xc3030c0c, + 0xfffffffc, 0x00f003c0, 0x0f003000, + // [861]: C6 'Æ' + 0x00141206, 0xfff00fff, 0x0000cc00, 0x0cc000cc, 0x000cc000, 0xc3000c30, 0x3fff03ff, 0xf000c0c0, + 0x0c0c00c0, 0xc00c0c00, 0xc0300c03, 0xffc03ffc, 0x03000000, + // [874]: C7 'Ç' + 0x000c1806, 0x3fc3fcc0, 0x3c030030, 0x03003003, 0x00300300, 0x30030030, 0x03c03c03, 0x3fc3fc0c, + 0x00c03003, 0x000c00c0, + // [884]: C8 'È' + 0x000a1800, 0x0300c0c0, 0x3000000f, 0xffff00c0, 0x300c0300, 0xc033fcff, 0x00c0300c, 0x0300c03f, + 0xffff0000, + // [893]: C9 'É' + 0x000a1800, 0x300c00c0, 0x3000000f, 0xffff00c0, 0x300c0300, 0xc033fcff, 0x00c0300c, 0x0300c03f, + 0xffff0000, + // [902]: CA 'Ê' + 0x000a1800, 0x0c030330, 0xcc00000f, 0xffff00c0, 0x300c0300, 0xc033fcff, 0x00c0300c, 0x0300c03f, + 0xffff0000, + // [911]: CB 'Ë' + 0x000a1602, 0x330cc000, 0x00fffff0, 0x0c0300c0, 0x300c033f, 0xcff00c03, 0x00c0300c, 0x03fffff0, + // [919]: CC 'Ì' + 0x00041800, 0x33cc00cc, 0xcccccccc, 0xcccccccc, + // [923]: CD 'Í' + 0x00041800, 0xcc330033, 0x33333333, 0x33333333, + // [927]: CE 'Î' + 0x00061800, 0x30ccf300, 0x030c30c3, 0x0c30c30c, 0x30c30c30, 0xc30c0000, + // [933]: CF 'Ï' + 0x00061602, 0xcf300030, 0xc30c30c3, 0x0c30c30c, 0x30c30c30, 0xc0000000, + // [939]: D0 'Ð' + 0x000e1206, 0x0ff03fc3, 0x030c0cc0, 0x3300cc03, 0x300cc0ff, 0x03fc0330, 0x0cc03300, 0xc3030c0c, + 0x0ff03fc0, + // [948]: D1 'Ñ' + 0x000c1800, 0xc3cc3c3c, 0x33c30000, 0x00c0fc0f, 0xc0fc0fc3, 0x3c33c33c, 0x33cc3cc3, 0xcc3cc3f0, + 0x3f03f03f, 0x03c03c03, + // [958]: D2 'Ò' + 0x000c1800, 0x0300300c, 0x00c00000, 0x003fc3fc, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c03c03c, 0x033fc3fc, + // [968]: D3 'Ó' + 0x000c1800, 0x0c00c003, 0x00300000, 0x003fc3fc, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c03c03c, 0x033fc3fc, + // [978]: D4 'Ô' + 0x000c1800, 0x0300300c, 0xc0cc0000, 0x003fc3fc, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c03c03c, 0x033fc3fc, + // [988]: D5 'Õ' + 0x000c1800, 0xc3cc3c3c, 0x33c30000, 0x003fc3fc, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c03c03c, 0x033fc3fc, + // [998]: D6 'Ö' + 0x000c1602, 0x30c30c00, 0x00003fc3, 0xfcc03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c033fc3, 0xfc000000, + // [1008]: D7 '×' + 0x000a0a0e, 0xc0f03330, 0xcc0c0303, 0x30ccc0f0, 0x30000000, + // [1013]: D8 'Ø' + 0x00101206, 0xcff0cff0, 0x300c300c, 0x3c0c3c0c, 0x330c330c, 0x30cc30cc, 0x303c303c, 0x300c300c, + 0x300f300f, 0x0ff00ff0, + // [1023]: D9 'Ù' + 0x000c1800, 0x0300300c, 0x00c00000, 0x00c03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c03c03c, 0x033fc3fc, + // [1033]: DA 'Ú' + 0x000c1800, 0x0c00c003, 0x00300000, 0x00c03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c03c03c, 0x033fc3fc, + // [1043]: DB 'Û' + 0x000c1800, 0x0300300c, 0xc0cc0000, 0x00c03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c03c03c, 0x033fc3fc, + // [1053]: DC 'Ü' + 0x000c1602, 0x30c30c00, 0x0000c03c, 0x03c03c03, 0xc03c03c0, 0x3c03c03c, 0x03c03c03, 0xc03c03c0, + 0x3c033fc3, 0xfc000000, + // [1063]: DD 'Ý' + 0x000a1800, 0x18060060, 0x1800000c, 0x0f03c0f0, 0x3c0f0333, 0x0cc330cc, 0x0c0300c0, 0x300c0300, + 0xc0300000, + // [1072]: DE 'Þ' + 0x000a1206, 0x00c0300c, 0x033fcffc, 0x0f03c0f0, 0x3c0f033f, 0xcff00c03, 0x00c03000, + // [1079]: DF 'ß' + 0x000c1206, 0x0fc0fc30, 0x33030c30, 0xc3033033, 0x0330333c, 0x33c3c03c, 0x03c03c03, 0x3f33f300, + // [1087]: E0 'à' + 0x000a1404, 0x0c030300, 0xc0000003, 0xf0fcc0f0, 0x3ff3fcc0, 0xf03c0f03, 0xc0f03ff3, 0xfc000000, + // [1095]: E1 'á' + 0x000a1404, 0x0c030030, 0x0c000003, 0xf0fcc0f0, 0x3ff3fcc0, 0xf03c0f03, 0xc0f03ff3, 0xfc000000, + // [1103]: E2 'â' + 0x000a1404, 0x0c030330, 0xcc000003, 0xf0fcc0f0, 0x3ff3fcc0, 0xf03c0f03, 0xc0f03ff3, 0xfc000000, + // [1111]: E3 'ã' + 0x000a1404, 0xcf33c3cc, 0xf3000003, 0xf0fcc0f0, 0x3ff3fcc0, 0xf03c0f03, 0xc0f03ff3, 0xfc000000, + // [1119]: E4 'ä' + 0x000a1206, 0x330cc000, 0x003f0fcc, 0x0f03ff3f, 0xcc0f03c0, 0xf03c0f03, 0xff3fc000, + // [1126]: E5 'å' + 0x000a1800, 0x0f03c30c, 0xc330cc30, 0xf03c0000, 0x03f0fcc0, 0xf03ff3fc, 0xc0f03c0f, 0x03c0f03f, + 0xf3fc0000, + // [1135]: E6 'æ' + 0x00120e0a, 0x3f3f0fcf, 0xcc0c0f03, 0x03c0c030, 0x300ffff3, 0xfffc00c0, 0xc0303c0c, 0x0f03033f, + 0x3f0fcfc0, + // [1144]: E7 'ç' + 0x000a120a, 0x3f0fcc0f, 0x0300c030, 0x0c0300c0, 0x3c0f033f, 0x0fc0c030, 0x0300c000, + // [1151]: E8 'è' + 0x000a1404, 0x0300c0c0, 0x30000003, 0xf0fcc0f0, 0x3c0f03ff, 0xfff00c03, 0xc0f033f0, 0xfc000000, + // [1159]: E9 'é' + 0x000a1404, 0x0c030030, 0x0c000003, 0xf0fcc0f0, 0x3c0f03ff, 0xfff00c03, 0xc0f033f0, 0xfc000000, + // [1167]: EA 'ê' + 0x000a1404, 0x0c030330, 0xcc000003, 0xf0fcc0f0, 0x3c0f03ff, 0xfff00c03, 0xc0f033f0, 0xfc000000, + // [1175]: EB 'ë' + 0x000a1206, 0x330cc000, 0x003f0fcc, 0x0f03c0f0, 0x3fffff00, 0xc03c0f03, 0x3f0fc000, + // [1182]: EC 'ì' + 0x00041404, 0x33cc00cc, 0xcccccccc, 0xcccc0000, + // [1186]: ED 'í' + 0x00041404, 0xcc330033, 0x33333333, 0x33330000, + // [1190]: EE 'î' + 0x00061404, 0x30ccf300, 0x030c30c3, 0x0c30c30c, 0x30c30c00, + // [1195]: EF 'ï' + 0x00061206, 0xcf300030, 0xc30c30c3, 0x0c30c30c, 0x30c00000, + // [1200]: F0 'ð' + 0x000a1305, 0x00c0f330, 0xfc0fcf33, 0xc30cc330, 0x3c0f03c0, 0xf03c0cc3, 0x30c3c0f0, + // [1207]: F1 'ñ' + 0x000a1404, 0xcf33c3cc, 0xf3000003, 0xccf3c3f0, 0xfc0f03c0, 0xf03c0f03, 0xc0f03c0f, 0x03000000, + // [1215]: F2 'ò' + 0x000a1404, 0x0300c0c0, 0x30000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [1223]: F3 'ó' + 0x000a1404, 0x300c00c0, 0x30000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [1231]: F4 'ô' + 0x000a1404, 0x0c030330, 0xcc000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [1239]: F5 'õ' + 0x000a1404, 0xcf33c3cc, 0xf3000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [1247]: F6 'ö' + 0x000a1206, 0x330cc000, 0x003f0fcc, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0x3f0fc000, + // [1254]: F7 '÷' + 0x000a0a0a, 0x0c030000, 0x00fffff0, 0x00000c03, 0x00000000, + // [1259]: F8 'ø' + 0x000e0e0a, 0xcfc33f03, 0x030c0c3c, 0x30f0c333, 0x0ccc30f0, 0xc3c3030c, 0x0c0fcc3f, 0x30000000, + // [1267]: F9 'ù' + 0x000a1404, 0x0300c0c0, 0x3000000c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xf0fc3cf3, 0x3c000000, + // [1275]: FA 'ú' + 0x000a1404, 0x300c00c0, 0x3000000c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xf0fc3cf3, 0x3c000000, + // [1283]: FB 'û' + 0x000a1404, 0x0c030330, 0xcc00000c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xf0fc3cf3, 0x3c000000, + // [1291]: FC 'ü' + 0x000a1206, 0x330cc000, 0x00c0f03c, 0x0f03c0f0, 0x3c0f03c0, 0xf03f0fc3, 0xcf33c000, + // [1298]: FD 'ý' + 0x000c1a04, 0x0c00c003, 0x00300000, 0x00c0cc0c, 0xc0cc0cc0, 0xcc0c3303, 0x30330330, 0x0c00c00c, + 0x00c00300, 0x30030030, 0x00f00f00, + // [1309]: FE 'þ' + 0x000a1606, 0x00c0300c, 0x033fcffc, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0x3fcff00c, 0x0300c030, + // [1317]: FF 'ÿ' + 0x000c1806, 0x33033000, 0x0000c0cc, 0x0cc0cc0c, 0xc0cc0c33, 0x03303303, 0x300c00c0, 0x0c00c003, + 0x00300300, 0x3000f00f, + // [1327]: 152 'Œ' + 0x00141206, 0xff3fcff3, 0xfc00c030, 0x0c0300c0, 0x300c0300, 0xc0300c03, 0x3fc033fc, 0x0300c030, + 0x0c0300c0, 0x300c0300, 0xc0300c03, 0xff3fcff3, 0xfc000000, + // [1340]: 153 'œ' + 0x00120e0a, 0x3f3f0fcf, 0xcc0c0f03, 0x03c0c0f0, 0x303ffc0f, 0xff0300c0, 0xc0303c0c, 0x0f03033f, + 0x3f0fcfc0, + // [1349]: 2018 '‘' + 0x00040604, 0xcc333300, + // [1351]: 2019 '’' + 0x00040604, 0xcccc3300, + // [1353]: 201A '‚' + 0x00040616, 0xcccc3300, + // [1355]: 201B '‛' + 0x00040604, 0x3333cc00, + // [1357]: 201C '“' + 0x000a0604, 0xc330c30c, 0xc330cc30, + // [1360]: 201D '”' + 0x000a0604, 0xc330cc33, 0x0c30cc30, + // [1363]: 201E '„' + 0x000a0616, 0xc330cc33, 0x0c30cc30, + // [1366]: 201F '‟' + 0x000a0604, 0x30cc330c, 0xc3c330c0, + // [1369]: 2020 '†' + 0x000a1206, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x00c0300c, 0x0300c030, 0x0c030000, + // [1376]: 2021 '‡' + 0x000a1606, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x00c0300c, 0x0300c030, 0xfffff0c0, 0x300c0300, + // [1384]: 2022 '•' + 0x000c0c0a, 0x3fc3fcff, 0xffffffff, 0xffffffff, 0xffffff3f, 0xc3fc0000, + // [1390]: 20AC '€' + 0x00101008, 0x3fc03fc0, 0xc030c030, 0x000c000c, 0x0fff0fff, 0x000c000c, 0x0fff0fff, 0xc030c030, + 0x3fc03fc0, + // [1399]: E700 Battery_05 + 0x00180c0c, 0x3ffffe40, 0x00014000, 0x0dc0000d, 0xc0000dc0, 0x000dc000, 0x0dc0000d, 0xc0000d40, + 0x000d4000, 0x013ffffe, + // [1409]: E701 Battery_25 + 0x00180c0c, 0x3ffffe40, 0x00014000, 0x7dc0007d, 0xc0007dc0, 0x007dc000, 0x7dc0007d, 0xc0007d40, + 0x007d4000, 0x013ffffe, + // [1419]: E702 Battery_50 + 0x00180c0c, 0x3ffffe40, 0x0001400f, 0xfdc00ffd, 0xc00ffdc0, 0x0ffdc00f, 0xfdc00ffd, 0xc00ffd40, + 0x0ffd4000, 0x013ffffe, + // [1429]: E703 Battery_75 + 0x00180c0c, 0x3ffffe40, 0x000141ff, 0xfdc1fffd, 0xc1fffdc1, 0xfffdc1ff, 0xfdc1fffd, 0xc1fffd41, + 0xfffd4000, 0x013ffffe, + // [1439]: E704 Battery_99 + 0x00180c0c, 0x3ffffe40, 0x00015fff, 0xfddffffd, 0xdffffddf, 0xfffddfff, 0xfddffffd, 0xdffffd5f, + 0xfffd4000, 0x013ffffe, + // [1449]: E705 Radio_3 + 0x00151107, 0x00f8001f, 0xf003e3e0, 0x3c078380, 0x0e387c3b, 0x8ff8e8f1, 0xe20e0380, 0xe10e023e, + 0x2003f800, 0x38e00082, 0x00008000, 0x0e000020, 0x00000000, + // [1462]: E706 Radio_2 + 0x00151107, 0x00000000, 0x00000000, 0x00000000, 0x00007c00, 0x0ff800f1, 0xe00e0380, 0xe10e023e, + 0x2003f800, 0x38e00082, 0x00008000, 0x0e000020, 0x00000000, + // [1475]: E707 Radio_1 + 0x00151107, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0100003e, + 0x0003f800, 0x38e00082, 0x00008000, 0x0e000020, 0x00000000, + // [1488]: E708 Radio_0 + 0x00151107, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00008000, 0x0e000020, 0x00000000, + // [1501]: E709 Radio_Off + 0x00151107, 0x00f80018, 0x30030060, 0x20008200, 0x0220000a, 0x00002800, 0x02200020, 0x80020200, + 0x20080200, 0x20200082, 0x00022000, 0x0a000020, 0x00000000, + // [1514]: E70A Shift_Arrow + 0x000a1406, 0x0c0783f1, 0xfefffff0, 0xc0300c03, 0x00c0300c, 0x0300c030, 0x0c0300c0, 0x30000000, + // [1522]: E70B Backspace_Symbol + 0x001a1206, 0xffffc03f, 0xfff80c00, 0x07030000, 0xe0c6061c, 0x31c3838c, 0x39c07307, 0xe00ec0f0, + 0x01f03c00, 0x7c1f803b, 0x0e701cc7, 0x0e0e3181, 0x870c0003, 0x830001c0, 0xffffe03f, 0xfff00000, + // [1538]: E70C Enter_Symbol + 0x00180e08, 0xc00000c0, 0x0000c000, 0x00c00000, 0xc00030c0, 0x0038c000, 0x3cc0003e, 0xffffffff, + 0xffff0000, 0x3e00003c, 0x00003800, 0x00300000, + // [1550]: FFFD '�' + 0x00121404, 0x00c00030, 0x003f000f, 0xc00f3c03, 0xcf03ccf0, 0xf33cfcff, 0xff3ffff3, 0xfffcff3f, + 0xff0fffc0, 0xf3c03cf0, 0x03f000fc, 0x000c0003, 0x00000000, +]; diff --git a/services/graphics-server/src/fonts/small.rs b/services/graphics-server/src/fonts/small.rs new file mode 100644 index 000000000..64f5e9c91 --- /dev/null +++ b/services/graphics-server/src/fonts/small.rs @@ -0,0 +1,679 @@ +#![allow(dead_code)] +//! Small Font + +/// Return offset into DATA[] for start of pattern depicting glyph for character c +pub fn get_glyph_pattern_offset(c: char) -> usize { + match c as u32 { + 0x20..=0x7E => BASIC_LATIN[(c as usize) - 0x20] as usize, + 0xA0..=0xFF => LATIN_1[(c as usize) - 0xA0] as usize, + 0x152..=0x153 => LATIN_EXTENDED_A[(c as usize) - 0x152] as usize, + 0x2018..=0x2022 => GENERAL_PUNCTUATION[(c as usize) - 0x2018] as usize, + 0x20AC..=0x20AC => CURRENCY_SYMBOLS[(c as usize) - 0x20AC] as usize, + _ => SPECIALS[(0xFFFD as usize) - 0xFFFD] as usize, + } +} + +// Index to Unicode Basic Latin block glyph patterns +const BASIC_LATIN: [u16; 95] = [ + 0, // ' ' + 2, // '!' + 4, // '"' + 6, // '#' + 11, // '$' + 18, // '%' + 26, // '&' + 34, // ''' + 36, // '(' + 41, // ')' + 46, // '*' + 51, // '+' + 56, // ',' + 58, // '-' + 60, // '.' + 62, // '/' + 67, // '0' + 73, // '1' + 76, // '2' + 82, // '3' + 88, // '4' + 94, // '5' + 100, // '6' + 106, // '7' + 112, // '8' + 118, // '9' + 124, // ':' + 126, // ';' + 129, // '<' + 132, // '=' + 135, // '>' + 138, // '?' + 143, // '@' + 151, // 'A' + 157, // 'B' + 163, // 'C' + 169, // 'D' + 175, // 'E' + 180, // 'F' + 185, // 'G' + 191, // 'H' + 197, // 'I' + 199, // 'J' + 205, // 'K' + 211, // 'L' + 216, // 'M' + 224, // 'N' + 230, // 'O' + 236, // 'P' + 242, // 'Q' + 248, // 'R' + 254, // 'S' + 260, // 'T' + 266, // 'U' + 272, // 'V' + 278, // 'W' + 286, // 'X' + 292, // 'Y' + 298, // 'Z' + 303, // '[' + 307, // '\' + 312, // ']' + 316, // '^' + 318, // '_' + 320, // '`' + 322, // 'a' + 326, // 'b' + 331, // 'c' + 335, // 'd' + 340, // 'e' + 344, // 'f' + 349, // 'g' + 354, // 'h' + 359, // 'i' + 361, // 'j' + 366, // 'k' + 371, // 'l' + 373, // 'm' + 379, // 'n' + 383, // 'o' + 387, // 'p' + 392, // 'q' + 397, // 'r' + 401, // 's' + 405, // 't' + 409, // 'u' + 413, // 'v' + 418, // 'w' + 424, // 'x' + 429, // 'y' + 435, // 'z' + 439, // '{' + 444, // '|' + 447, // '}' + 452, // '~' +]; + +// Index to Unicode Latin 1 block glyph patterns +const LATIN_1: [u16; 96] = [ + 455, // ' ' + 457, // '¡' + 459, // '¢' + 465, // '£' + 471, // '¤' + 477, // '¥' + 483, // '¦' + 486, // '§' + 493, // '¨' + 495, // '©' + 504, // 'ª' + 508, // '«' + 513, // '¬' + 516, // '­' + 518, // '®' + 527, // '¯' + 529, // '°' + 532, // '±' + 537, // '²' + 540, // '³' + 543, // '´' + 545, // 'µ' + 552, // '¶' + 560, // '·' + 562, // '¸' + 564, // '¹' + 567, // 'º' + 571, // '»' + 576, // '¼' + 589, // '½' + 602, // '¾' + 615, // '¿' + 620, // 'À' + 628, // 'Á' + 636, // 'Â' + 644, // 'Ã' + 652, // 'Ä' + 659, // 'Å' + 667, // 'Æ' + 675, // 'Ç' + 682, // 'È' + 688, // 'É' + 694, // 'Ê' + 700, // 'Ë' + 706, // 'Ì' + 710, // 'Í' + 714, // 'Î' + 719, // 'Ï' + 724, // 'Ð' + 731, // 'Ñ' + 739, // 'Ò' + 747, // 'Ó' + 755, // 'Ô' + 763, // 'Õ' + 771, // 'Ö' + 778, // '×' + 783, // 'Ø' + 791, // 'Ù' + 799, // 'Ú' + 807, // 'Û' + 815, // 'Ü' + 822, // 'Ý' + 830, // 'Þ' + 835, // 'ß' + 841, // 'à' + 846, // 'á' + 851, // 'â' + 856, // 'ã' + 861, // 'ä' + 866, // 'å' + 872, // 'æ' + 878, // 'ç' + 883, // 'è' + 888, // 'é' + 893, // 'ê' + 898, // 'ë' + 903, // 'ì' + 906, // 'í' + 909, // 'î' + 913, // 'ï' + 917, // 'ð' + 922, // 'ñ' + 927, // 'ò' + 932, // 'ó' + 937, // 'ô' + 942, // 'õ' + 947, // 'ö' + 952, // '÷' + 957, // 'ø' + 963, // 'ù' + 968, // 'ú' + 973, // 'û' + 978, // 'ü' + 983, // 'ý' + 991, // 'þ' + 997, // 'ÿ' +]; + +// Index to Unicode Latin Extended A block glyph patterns +const LATIN_EXTENDED_A: [u16; 2] = [ + 1004, // 'Œ' + 1012, // 'œ' +]; + +// Index to General Punctuation block glyph patterns +const GENERAL_PUNCTUATION: [u16; 11] = [ + 1018, // '‘' + 1020, // '’' + 1022, // '‚' + 1024, // '‛' + 1026, // '“' + 1029, // '”' + 1032, // '„' + 1035, // '‟' + 1038, // '†' + 1041, // '‡' + 1046, // '•' +]; + +// Index to Unicode Currency Symbols block glyph patterns +const CURRENCY_SYMBOLS: [u16; 1] = [ + 1051, // '€' +]; + +// Index to Unicode Specials block glyph patterns +const SPECIALS: [u16; 1] = [ + 1058, // '�' +]; + +/// Maximum height of glyph patterns in this bitmap typeface. +/// This will be true: h + yOffset <= MAX_HEIGHT +pub const MAX_HEIGHT: u8 = 24; + +/// Packed glyph pattern data. +/// Record format: +/// [offset+0]: ((w as u8) << 16) | ((h as u8) << 8) | (yOffset as u8) +/// [offset+1..=ceil(w*h/32)]: packed 1-bit pixels; 0=clear, 1=set +/// Pixels are packed in top to bottom, left to right order with MSB of first +/// pixel word containing the top left pixel. +/// w: Width of pattern in pixels +/// h: Height of pattern in pixels +/// yOffset: Vertical offset (pixels downward from top of line) to position +/// glyph pattern properly relative to text baseline +pub const DATA: [u32; 1071] = [ + // [0]: 20 ' ' + 0x0004020b, 0x00000000, + // [2]: 21 '!' + 0x00020e06, 0xfffff0f0, + // [4]: 22 '"' + 0x00060406, 0xcf3cf300, + // [6]: 23 '#' + 0x000a0a04, 0xcc330fff, 0xff330ccf, 0xffff0cc3, 0x30000000, + // [11]: 24 '$' + 0x000a1204, 0x0c0303f0, 0xfcccf330, 0xcc333f0f, 0xccc330cc, 0xf333f0fc, 0x0c030000, + // [18]: 25 '%' + 0x00100e06, 0xfffcfffc, 0x30c330c3, 0x0cc30cc3, 0x3f3c3f3c, 0xc3c0c3c0, 0xc330c330, 0x3c0c3c0c, + // [26]: 26 '&' + 0x000e1004, 0x03c00f00, 0xc3030c03, 0x300cc00c, 0x00303330, 0xccc0c0c3, 0x03330ccc, 0x3c0f303c, + // [34]: 27 '\'' + 0x00020406, 0xff000000, + // [36]: 28 '(' + 0x00061204, 0xc3030c0c, 0x30c30c30, 0xc30c330c, 0xc3000000, + // [41]: 29 ')' + 0x00061204, 0x0c330cc3, 0x0c30c30c, 0x30c3030c, 0x0c300000, + // [46]: 2A '*' + 0x000a0a06, 0x0c030ccf, 0x333f0fc3, 0x30ccc0f0, 0x30000000, + // [51]: 2B '+' + 0x000a0a08, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x00000000, + // [56]: 2C ',' + 0x00040612, 0xcccc3300, + // [58]: 2D '-' + 0x0008020c, 0xffff0000, + // [60]: 2E '.' + 0x00020212, 0xf0000000, + // [62]: 2F '/' + 0x00081004, 0xc0c0c0c0, 0x30303030, 0x0c0c0c0c, 0x03030303, + // [67]: 30 '0' + 0x000a0e06, 0x3f0fcc0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f033f, 0x0fc00000, + // [73]: 31 '1' + 0x00040e06, 0xccffcccc, 0xcccccc00, + // [76]: 32 '2' + 0x000a0e06, 0x3f0fcc0f, 0x03c03003, 0x00c00c03, 0x00300cff, 0xfff00000, + // [82]: 33 '3' + 0x000a0e06, 0xfffff300, 0xc00c0303, 0xf0fcc030, 0x0c0f033f, 0x0fc00000, + // [88]: 34 '4' + 0x000a0e06, 0x300c03c0, 0xf0330cc3, 0x0cc3ffff, 0xf300c030, 0x0c000000, + // [94]: 35 '5' + 0x000a0e06, 0xfffff00c, 0x033fcffc, 0x0300c030, 0x0c0f033f, 0x0fc00000, + // [100]: 36 '6' + 0x000a0e06, 0x3c0f0030, 0x0c00c033, 0xfcffc0f0, 0x3c0f033f, 0x0fc00000, + // [106]: 37 '7' + 0x000a0e06, 0xfffffc03, 0x00300c03, 0x00c00c03, 0x00c0300c, 0x03000000, + // [112]: 38 '8' + 0x000a0e06, 0x3f0fcc0f, 0x03c0f033, 0xf0fcc0f0, 0x3c0f033f, 0x0fc00000, + // [118]: 39 '9' + 0x000a0e06, 0x3f0fcc0f, 0x03c0f03f, 0xf3fcc030, 0x0300c00f, 0x03c00000, + // [124]: 3A ':' + 0x00020a0a, 0xf000f000, + // [126]: 3B ';' + 0x00040e0a, 0xcc000000, 0xcccc3300, + // [129]: 3C '<' + 0x00060a08, 0xc3030c0c, 0x330cc300, + // [132]: 3D '=' + 0x000a060a, 0xfffff000, 0x00fffff0, + // [135]: 3E '>' + 0x00060a08, 0x0c330cc3, 0x030c0c30, + // [138]: 3F '?' + 0x00080e06, 0x3c3cc3c3, 0xc0c03030, 0x0c0c0000, 0x0c0c0000, + // [143]: 40 '@' + 0x000e1006, 0x0fc03f03, 0x030c0ccf, 0x0f3c3ccc, 0xf333cccf, 0x3333f0cf, 0xc3003000, 0xc0fc03f0, + // [151]: 41 'A' + 0x000a0e06, 0x0c0300c0, 0x30330cc3, 0x30ccffff, 0xfc0f03c0, 0xf0300000, + // [157]: 42 'B' + 0x000a0e06, 0x3fcffc0f, 0x03c0f033, 0xfcffc0f0, 0x3c0f033f, 0xcff00000, + // [163]: 43 'C' + 0x000a0e06, 0x3f0fcc0f, 0x0300c030, 0x0c0300c0, 0x3c0f033f, 0x0fc00000, + // [169]: 44 'D' + 0x000a0e06, 0x0fc3f30c, 0xc3c0f03c, 0x0f03c0f0, 0x330cc30f, 0xc3f00000, + // [175]: 45 'E' + 0x00080e06, 0xffff0303, 0x03033f3f, 0x03030303, 0xffff0000, + // [180]: 46 'F' + 0x00080e06, 0xffff0303, 0x03033f3f, 0x03030303, 0x03030000, + // [185]: 47 'G' + 0x000a0e06, 0x3f0fcc0f, 0x0300c03f, 0x0fc3c0f0, 0x3c0f033f, 0x0fc00000, + // [191]: 48 'H' + 0x000a0e06, 0xc0f03c0f, 0x03c0f03f, 0xffffc0f0, 0x3c0f03c0, 0xf0300000, + // [197]: 49 'I' + 0x00020e06, 0xfffffff0, + // [199]: 4A 'J' + 0x000a0e06, 0xc0300c03, 0x00c0300c, 0x0300c0f0, 0x3c0f033f, 0x0fc00000, + // [205]: 4B 'K' + 0x000a0e06, 0xc0f0330c, 0xc30cc330, 0x3c0f0cc3, 0x330cc3c0, 0xf0300000, + // [211]: 4C 'L' + 0x00080e06, 0x03030303, 0x03030303, 0x03030303, 0xffff0000, + // [216]: 4D 'M' + 0x000e0e06, 0xc00f003f, 0x03fc0fcc, 0xcf333c30, 0xf0c3c00f, 0x003c00f0, 0x03c00f00, 0x30000000, + // [224]: 4E 'N' + 0x000a0e06, 0xc3f0fc3f, 0x0fccf33c, 0xcf33f0fc, 0x3f0fc3c0, 0xf0300000, + // [230]: 4F 'O' + 0x000a0e06, 0x3f0fcc0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f033f, 0x0fc00000, + // [236]: 50 'P' + 0x000a0e06, 0x3fcffc0f, 0x03c0f033, 0xfcff00c0, 0x300c0300, 0xc0300000, + // [242]: 51 'Q' + 0x000a1006, 0x3f0fcc0f, 0x03c0f03c, 0x0f03c0f0, 0x3ccf333f, 0x0fc300c0, + // [248]: 52 'R' + 0x000a0e06, 0x3fcffc0f, 0x03c0f033, 0xfcff0cc3, 0x330cc3c0, 0xf0300000, + // [254]: 53 'S' + 0x000a0e06, 0x3f0fcc0f, 0x0300c033, 0xf0fcc030, 0x0c0f033f, 0x0fc00000, + // [260]: 54 'T' + 0x000a0e06, 0xfffff0c0, 0x300c0300, 0xc0300c03, 0x00c0300c, 0x03000000, + // [266]: 55 'U' + 0x000a0e06, 0xc0f03c0f, 0x03c0f03c, 0x0f03c0f0, 0x3c0f033f, 0x0fc00000, + // [272]: 56 'V' + 0x000a0e06, 0xc0f03c0f, 0x03c0f033, 0x30cc330c, 0xc0c0300c, 0x03000000, + // [278]: 57 'W' + 0x000e0e06, 0xc00f003c, 0x00f00333, 0x30ccc333, 0x0ccc0cc0, 0x3300cc03, 0x300cc033, 0x00000000, + // [286]: 58 'X' + 0x000a0e06, 0xc0f03c0f, 0x03330cc0, 0xc030330c, 0xcc0f03c0, 0xf0300000, + // [292]: 59 'Y' + 0x000a0e06, 0xc0f03c0f, 0x03330cc0, 0xc0300c03, 0x00c0300c, 0x03000000, + // [298]: 5A 'Z' + 0x00080e06, 0xffffc0c0, 0x30300c0c, 0x03030303, 0xffff0000, + // [303]: 5B '[' + 0x00041204, 0xff333333, 0x33333333, 0xff000000, + // [307]: 5C '\\' + 0x00081004, 0x03030303, 0x0c0c0c0c, 0x30303030, 0xc0c0c0c0, + // [312]: 5D ']' + 0x00041204, 0xffcccccc, 0xcccccccc, 0xff000000, + // [316]: 5E '^' + 0x00060406, 0x30ccf300, + // [318]: 5F '_' + 0x000c0212, 0xffffff00, + // [320]: 60 '`' + 0x00040406, 0x33cc0000, + // [322]: 61 'a' + 0x00080a0a, 0x3c3cc0c0, 0xfcfcc3c3, 0xfcfc0000, + // [326]: 62 'b' + 0x00080e06, 0x03030303, 0x3f3fc3c3, 0xc3c3c3c3, 0x3f3f0000, + // [331]: 63 'c' + 0x00080a0a, 0x3c3cc3c3, 0x0303c3c3, 0x3c3c0000, + // [335]: 64 'd' + 0x00080e06, 0xc0c0c0c0, 0xfcfcc3c3, 0xc3c3c3c3, 0xfcfc0000, + // [340]: 65 'e' + 0x00080a0a, 0x3c3cc3c3, 0xffff0303, 0x3c3c0000, + // [344]: 66 'f' + 0x00080e06, 0xf0f00c0c, 0x3f3f0c0c, 0x0c0c0c0c, 0x0c0c0000, + // [349]: 67 'g' + 0x00080e0a, 0xfcfcc3c3, 0xc3c3c3c3, 0xfcfcc0c0, 0x3c3c0000, + // [354]: 68 'h' + 0x00080e06, 0x03030303, 0x3f3fc3c3, 0xc3c3c3c3, 0xc3c30000, + // [359]: 69 'i' + 0x00020e06, 0xf0fffff0, + // [361]: 6A 'j' + 0x00061206, 0xc30000c3, 0x0c30c30c, 0x30c30c30, 0x3cf00000, + // [366]: 6B 'k' + 0x00080e06, 0x03030303, 0xc3c33333, 0x0f0f3333, 0xc3c30000, + // [371]: 6C 'l' + 0x00020e06, 0xfffffff0, + // [373]: 6D 'm' + 0x000e0a0a, 0x3cfcf3fc, 0x30f0c3c3, 0x0f0c3c30, 0xf0c3c30f, 0x0c300000, + // [379]: 6E 'n' + 0x00080a0a, 0x3f3fc3c3, 0xc3c3c3c3, 0xc3c30000, + // [383]: 6F 'o' + 0x00080a0a, 0x3c3cc3c3, 0xc3c3c3c3, 0x3c3c0000, + // [387]: 70 'p' + 0x00080e0a, 0x3f3fc3c3, 0xc3c3c3c3, 0x3f3f0303, 0x03030000, + // [392]: 71 'q' + 0x00080e0a, 0xfcfcc3c3, 0xc3c3c3c3, 0xfcfcc0c0, 0xc0c00000, + // [397]: 72 'r' + 0x00080a0a, 0xf3f30f0f, 0x03030303, 0x03030000, + // [401]: 73 's' + 0x00080a0a, 0xfcfc0303, 0x3c3cc0c0, 0x3f3f0000, + // [405]: 74 't' + 0x00060e06, 0x30c30cff, 0xf30c30c3, 0x0cc30000, + // [409]: 75 'u' + 0x00080a0a, 0xc3c3c3c3, 0xc3c3c3c3, 0xfcfc0000, + // [413]: 76 'v' + 0x000a0a0a, 0xc0f03330, 0xcc330cc0, 0xc0300c03, 0x00000000, + // [418]: 77 'w' + 0x000e0a0a, 0xc00f0033, 0x330ccc33, 0x30ccc0cc, 0x03300cc0, 0x33000000, + // [424]: 78 'x' + 0x000a0a0a, 0xc0f03330, 0xcc0c0303, 0x30ccc0f0, 0x30000000, + // [429]: 79 'y' + 0x000a0e0a, 0xc0f03c0f, 0x03330cc3, 0x30cc0c03, 0x00c03003, 0xc0f00000, + // [435]: 7A 'z' + 0x00080a0a, 0xffff3030, 0x0c0c0303, 0xffff0000, + // [439]: 7B '{' + 0x00061204, 0xc3030c30, 0xc30c0c33, 0x0c30c30c, 0xc3000000, + // [444]: 7C '|' + 0x00021204, 0xffffffff, 0xf0000000, + // [447]: 7D '}' + 0x00061204, 0x0c330c30, 0xc30cc303, 0x0c30c30c, 0x0c300000, + // [452]: 7E '~' + 0x000a0406, 0xcf33c3cc, 0xf3000000, + // [455]: A0 ' ' + 0x0004020b, 0x00000000, + // [457]: A1 '¡' + 0x00020e06, 0xf0fffff0, + // [459]: A2 '¢' + 0x000a0e06, 0x0c0303f0, 0xfcccf330, 0xcc33ccf3, 0x33f0fc0c, 0x03000000, + // [465]: A3 '£' + 0x000a0e06, 0x3c0f0030, 0x0c0300c0, 0xfc3f0300, 0xcc330c3f, 0xcff00000, + // [471]: A4 '¤' + 0x000a0e06, 0xc0f033f0, 0xfcc0f03c, 0x0f03c0f0, 0x33f0fcc0, 0xf0300000, + // [477]: A5 '¥' + 0x000a0e06, 0xc0f03330, 0xccfffff0, 0xc030ffff, 0xf0c0300c, 0x03000000, + // [483]: A6 '¦' + 0x00021204, 0xffff0fff, 0xf0000000, + // [486]: A7 '§' + 0x000a1204, 0x3f0fcc0f, 0x0300c033, 0xf0fcc0f0, 0x33f0fcc0, 0x300c0f03, 0x3f0fc000, + // [493]: A8 '¨' + 0x00060206, 0xcf300000, + // [495]: A9 '©' + 0x00101004, 0x0ff00ff0, 0x300c300c, 0xc3c3c3c3, 0xc033c033, 0xc033c033, 0xc3c3c3c3, 0x300c300c, + 0x0ff00ff0, + // [504]: AA 'ª' + 0x00060e04, 0x30ccf3f3, 0xccf3f3c0, 0x00fff000, + // [508]: AB '«' + 0x000c0a0a, 0xc30c3030, 0xc30c0c30, 0xc330c30c, 0xc30c3000, + // [513]: AC '¬' + 0x0008060c, 0xffffc0c0, 0xc0c00000, + // [516]: AD '­' + 0x0008020c, 0xffff0000, + // [518]: AE '®' + 0x00101004, 0x0ff00ff0, 0x300c300c, 0xc3f3c3f3, 0xcc33cc33, 0xc3f3c3f3, 0xcc33cc33, 0x300c300c, + 0x0ff00ff0, + // [527]: AF '¯' + 0x00060206, 0xfff00000, + // [529]: B0 '°' + 0x00080804, 0x3c3cc3c3, 0xc3c33c3c, + // [532]: B1 '±' + 0x000a0c08, 0x0c0300c0, 0x30fffff0, 0xc0300c03, 0x0fffff00, + // [537]: B2 '²' + 0x00060a02, 0xfffc30ff, 0xf0c3fff0, + // [540]: B3 '³' + 0x00060a02, 0xfffc30ff, 0xfc30fff0, + // [543]: B4 '´' + 0x00040406, 0xcc330000, + // [545]: B5 'µ' + 0x000c0e0a, 0xc30c30c3, 0x0c3030c3, 0x0c30c30c, 0xcfccfc00, 0x30030030, 0x03000000, + // [552]: B6 '¶' + 0x000c1206, 0xffcffc33, 0xf33f33f3, 0x3f33c33c, 0x33033033, 0x03303303, 0x30330330, 0x33033000, + // [560]: B7 '·' + 0x0002020e, 0xf0000000, + // [562]: B8 '¸' + 0x00040414, 0xcc330000, + // [564]: B9 '¹' + 0x00060a02, 0x30c3cf30, 0xc30cfff0, + // [567]: BA 'º' + 0x00080c06, 0x3c3cc3c3, 0xc3c33c3c, 0x0000ffff, + // [571]: BB '»' + 0x000c0a0a, 0x0c30c330, 0xc30cc30c, 0x3030c30c, 0x0c30c300, + // [576]: BC '¼' + 0x00121400, 0x0c030300, 0xc0c03c30, 0x0f030300, 0xc0c03030, 0x0c0c00cf, 0xc033fccc, 0x033300cc, + 0x30330c0f, 0xc303f0c0, 0xc00c3003, 0x0c00c300, 0x30000000, + // [589]: BD '½' + 0x00121400, 0x0c030300, 0xc0c03c30, 0x0f030300, 0xc0c03030, 0x0c0c00cf, 0xc033ffcc, 0x03f300c0, + 0x30300c0f, 0xc303f0c0, 0x0c0c0303, 0x0fc0c3f0, 0x30000000, + // [602]: BE '¾' + 0x00121400, 0x0c0fc303, 0xf0c0c030, 0x30030fc0, 0xc3f030c0, 0x0c3000cf, 0xc033fccc, 0x033300cc, + 0x30330c0f, 0xc303f0c0, 0xc00c3003, 0x0c00c300, 0x30000000, + // [615]: BF '¿' + 0x00080e06, 0x30300000, 0x30300c0c, 0x0303c3c3, 0x3c3c0000, + // [620]: C0 'À' + 0x000a1400, 0x0300c0c0, 0x30000000, 0xc0300c03, 0x0330cc33, 0x0ccfffff, 0xc0f03c0f, 0x03000000, + // [628]: C1 'Á' + 0x000a1400, 0x300c00c0, 0x30000000, 0xc0300c03, 0x0330cc33, 0x0ccfffff, 0xc0f03c0f, 0x03000000, + // [636]: C2 'Â' + 0x000a1400, 0x0c030330, 0xcc000000, 0xc0300c03, 0x0330cc33, 0x0ccfffff, 0xc0f03c0f, 0x03000000, + // [644]: C3 'Ã' + 0x000a1400, 0xcf33c3cc, 0xf3000000, 0xc0300c03, 0x0330cc33, 0x0ccfffff, 0xc0f03c0f, 0x03000000, + // [652]: C4 'Ä' + 0x000a1202, 0x330cc000, 0x000c0300, 0xc030330c, 0xc330ccff, 0xfffc0f03, 0xc0f03000, + // [659]: C5 'Å' + 0x000a1400, 0x3f0fcc0f, 0x033f0fc0, 0xc0300c03, 0x0330cc33, 0x0ccfffff, 0xc0f03c0f, 0x03000000, + // [667]: C6 'Æ' + 0x00100e06, 0xffc0ffc0, 0x03300330, 0x03300330, 0x3ffc3ffc, 0x030c030c, 0x03030303, 0xff03ff03, + // [675]: C7 'Ç' + 0x000a1206, 0x3f0fcc0f, 0x0300c030, 0x0c0300c0, 0x3c0f033f, 0x0fc0c030, 0x0300c000, + // [682]: C8 'È' + 0x00081400, 0x0c0c3030, 0x0000ffff, 0x03030303, 0x3f3f0303, 0x0303ffff, + // [688]: C9 'É' + 0x00081400, 0x30300c0c, 0x0000ffff, 0x03030303, 0x3f3f0303, 0x0303ffff, + // [694]: CA 'Ê' + 0x00081400, 0x0c0c3333, 0x0000ffff, 0x03030303, 0x3f3f0303, 0x0303ffff, + // [700]: CB 'Ë' + 0x00081202, 0x33330000, 0xffff0303, 0x03033f3f, 0x03030303, 0xffff0000, + // [706]: CC 'Ì' + 0x00041400, 0x33cc00cc, 0xcccccccc, 0xcccc0000, + // [710]: CD 'Í' + 0x00041400, 0xcc330033, 0x33333333, 0x33330000, + // [714]: CE 'Î' + 0x00061400, 0x30ccf300, 0x030c30c3, 0x0c30c30c, 0x30c30c00, + // [719]: CF 'Ï' + 0x00061202, 0xcf300030, 0xc30c30c3, 0x0c30c30c, 0x30c00000, + // [724]: D0 'Ð' + 0x000c0e06, 0x0fc0fc30, 0xc30cc0cc, 0x0cc3fc3f, 0xc0cc0c30, 0xc30c0fc0, 0xfc000000, + // [731]: D1 'Ñ' + 0x000a1400, 0xcf33c3cc, 0xf300000c, 0x3f0fc3f0, 0xfccf33cc, 0xf33f0fc3, 0xf0fc3c0f, 0x03000000, + // [739]: D2 'Ò' + 0x000a1400, 0x0300c0c0, 0x30000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [747]: D3 'Ó' + 0x000a1400, 0x300c00c0, 0x30000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [755]: D4 'Ô' + 0x000a1400, 0x0c030330, 0xcc000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [763]: D5 'Õ' + 0x000a1400, 0xcf33c3cc, 0xf3000003, 0xf0fcc0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [771]: D6 'Ö' + 0x000a1202, 0x330cc000, 0x003f0fcc, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0x3f0fc000, + // [778]: D7 '×' + 0x000a0a0a, 0xc0f03330, 0xcc0c0303, 0x30ccc0f0, 0x30000000, + // [783]: D8 'Ø' + 0x000e0e06, 0xcfc33f03, 0x030c0c3c, 0x30f0c333, 0x0ccc30f0, 0xc3c3030c, 0x0c0fcc3f, 0x30000000, + // [791]: D9 'Ù' + 0x000a1400, 0x0300c0c0, 0x3000000c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [799]: DA 'Ú' + 0x000a1400, 0x300c00c0, 0x3000000c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [807]: DB 'Û' + 0x000a1400, 0x0c030330, 0xcc00000c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0xc0f033f0, 0xfc000000, + // [815]: DC 'Ü' + 0x000a1202, 0x330cc000, 0x00c0f03c, 0x0f03c0f0, 0x3c0f03c0, 0xf03c0f03, 0x3f0fc000, + // [822]: DD 'Ý' + 0x000a1400, 0x300c00c0, 0x3000000c, 0x0f03c0f0, 0x3330cc0c, 0x0300c030, 0x0c0300c0, 0x30000000, + // [830]: DE 'Þ' + 0x00080e06, 0x0303033f, 0x3fc3c3c3, 0xc33f3f03, 0x03030000, + // [835]: DF 'ß' + 0x000a0e06, 0x0f03c30c, 0xc30cc330, 0xcc3330cc, 0x3c0f033c, 0xcf300000, + // [841]: E0 'à' + 0x00081004, 0x0c0c3030, 0x00003c3c, 0xc3c3fcfc, 0xc3c3fcfc, + // [846]: E1 'á' + 0x00081004, 0x30300c0c, 0x00003c3c, 0xc3c3fcfc, 0xc3c3fcfc, + // [851]: E2 'â' + 0x00081004, 0x3030cccc, 0x00003c3c, 0xc3c3fcfc, 0xc3c3fcfc, + // [856]: E3 'ã' + 0x00081004, 0xcccc3333, 0x00003c3c, 0xc3c3fcfc, 0xc3c3fcfc, + // [861]: E4 'ä' + 0x00080e06, 0xcccc0000, 0x3c3cc3c3, 0xfcfcc3c3, 0xfcfc0000, + // [866]: E5 'å' + 0x00081202, 0x3c3cc3c3, 0x3c3c0000, 0x3c3cc3c3, 0xfcfcc3c3, 0xfcfc0000, + // [872]: E6 'æ' + 0x000e0a0a, 0x3cf0f3cc, 0x3030c0ff, 0xf3ffc030, 0xc0c33cf0, 0xf3c00000, + // [878]: E7 'ç' + 0x00080e0a, 0x3c3cc3c3, 0x0303c3c3, 0x3c3c3030, 0x0c0c0000, + // [883]: E8 'è' + 0x00081004, 0x0c0c3030, 0x00003c3c, 0xc3c3ffff, 0x03033c3c, + // [888]: E9 'é' + 0x00081004, 0x30300c0c, 0x00003c3c, 0xc3c3ffff, 0x0303fcfc, + // [893]: EA 'ê' + 0x00081004, 0x0c0c3333, 0x00003c3c, 0xc3c3ffff, 0x03033c3c, + // [898]: EB 'ë' + 0x00080e06, 0xc3c30000, 0x3c3cc3c3, 0xffff0303, 0xfcfc0000, + // [903]: EC 'ì' + 0x00041004, 0x33cc00cc, 0xcccccccc, + // [906]: ED 'í' + 0x00041004, 0xcc330033, 0x33333333, + // [909]: EE 'î' + 0x00061004, 0x30ccf300, 0x030c30c3, 0x0c30c30c, + // [913]: EF 'ï' + 0x00060e06, 0xcf300030, 0xc30c30c3, 0x0c30c000, + // [917]: F0 'ð' + 0x00081004, 0x03333c0f, 0x3330cccc, 0xc3c3c3c3, 0xc3c33c3c, + // [922]: F1 'ñ' + 0x00081004, 0xcccc3333, 0x00003f3f, 0xc3c3c3c3, 0xc3c3c3c3, + // [927]: F2 'ò' + 0x00081004, 0x0c0c3030, 0x00003c3c, 0xc3c3c3c3, 0xc3c33c3c, + // [932]: F3 'ó' + 0x00081004, 0x30300c0c, 0x00003c3c, 0xc3c3c3c3, 0xc3c33c3c, + // [937]: F4 'ô' + 0x00081004, 0x0c0c3333, 0x00003c3c, 0xc3c3c3c3, 0xc3c33c3c, + // [942]: F5 'õ' + 0x00081004, 0xcccc3333, 0x00003c3c, 0xc3c3c3c3, 0xc3c33c3c, + // [947]: F6 'ö' + 0x00080e06, 0xc3c30000, 0x3c3cc3c3, 0xc3c3c3c3, 0x3c3c0000, + // [952]: F7 '÷' + 0x000a0a08, 0x0c030000, 0x00fffff0, 0x00000c03, 0x00000000, + // [957]: F8 'ø' + 0x000c0c08, 0xcf0cf030, 0xc30c3cc3, 0xcc33c33c, 0x30c30c0f, 0x30f30000, + // [963]: F9 'ù' + 0x00081004, 0x0c0c3030, 0x0000c3c3, 0xc3c3c3c3, 0xc3c3fcfc, + // [968]: FA 'ú' + 0x00081004, 0x30300c0c, 0x0000c3c3, 0xc3c3c3c3, 0xc3c3fcfc, + // [973]: FB 'û' + 0x00081004, 0x0c0c3333, 0x0000c3c3, 0xc3c3c3c3, 0xc3c3fcfc, + // [978]: FC 'ü' + 0x00080e06, 0xc3c30000, 0xc3c3c3c3, 0xc3c3c3c3, 0xfcfc0000, + // [983]: FD 'ý' + 0x000a1404, 0x300c00c0, 0x3000000c, 0x0f03c0f0, 0x3330cc33, 0x0cc0c030, 0x0c03003c, 0x0f000000, + // [991]: FE 'þ' + 0x00081206, 0x03030303, 0x3f3fc3c3, 0xc3c3c3c3, 0x3f3f0303, 0x03030000, + // [997]: FF 'ÿ' + 0x000a1206, 0x330cc000, 0x00c0f03c, 0x0f03330c, 0xc330cc0c, 0x0300c030, 0x03c0f000, + // [1004]: 152 'Œ' + 0x00100e06, 0xfffcfffc, 0x03030303, 0x03030303, 0x3f033f03, 0x03030303, 0x03030303, 0xfffcfffc, + // [1012]: 153 'œ' + 0x000e0a0a, 0x3cf0f3cc, 0x30f0c3ff, 0x0ffc3030, 0xc0c33ff0, 0xffc00000, + // [1018]: 2018 '‘' + 0x00040604, 0xcc333300, + // [1020]: 2019 '’' + 0x00040604, 0xcccc3300, + // [1022]: 201A '‚' + 0x00040612, 0xcccc3300, + // [1024]: 201B '‛' + 0x00040604, 0x3333cc00, + // [1026]: 201C '“' + 0x00080604, 0xcccc3333, 0x33330000, + // [1029]: 201D '”' + 0x00080604, 0xcccccccc, 0x33330000, + // [1032]: 201E '„' + 0x00080612, 0xcccccccc, 0x33330000, + // [1035]: 201F '‟' + 0x00080604, 0x33333333, 0xcccc0000, + // [1038]: 2020 '†' + 0x00060a04, 0x30cfff30, 0xc30c30c0, + // [1041]: 2021 '‡' + 0x00061206, 0x30c30cff, 0xf30c30c3, 0x0cfff30c, 0x30c00000, + // [1046]: 2022 '•' + 0x000a0a08, 0x3f0fcfff, 0xffffffff, 0xffff3f0f, 0xc0000000, + // [1051]: 20AC '€' + 0x000c0e04, 0x3f03f0c0, 0xcc0c0ff0, 0xff00c00c, 0x0ff0ffc0, 0xcc0c3f03, 0xf0000000, + // [1058]: FFFD '�' + 0x00121402, 0x00c00030, 0x003f000f, 0xc00f3c03, 0xcf03ccf0, 0xf33cfcff, 0xff3ffff3, 0xfffcff3f, + 0xff0fffc0, 0xf3c03cf0, 0x03f000fc, 0x000c0003, 0x00000000, +]; diff --git a/services/graphics-server/src/lib.rs b/services/graphics-server/src/lib.rs index e72b2217b..fe1e6b011 100644 --- a/services/graphics-server/src/lib.rs +++ b/services/graphics-server/src/lib.rs @@ -1,7 +1,7 @@ #![cfg_attr(target_os = "none", no_std)] pub mod api; -pub use api::{Point, Color}; +pub use api::{Point, Color, Rect}; use xous::{send_message, CID}; @@ -24,3 +24,11 @@ pub fn set_style(cid: CID, width: u32, stroke: Color, fill: Color) -> Result<(), pub fn flush(cid: CID) -> Result<(), xous::Error> { send_message(cid, api::Opcode::Flush.into()).map(|_| ()) } + +pub fn clear_region(cid: CID, x0: usize, y0: usize, x1: usize, y1: usize) -> Result<(), xous::Error> { + send_message(cid, api::Opcode::ClearRegion(Rect::new(x0 as _, y0 as _, x1 as _, y1 as _)).into()).map(|_| ()) +} + +pub fn draw_string(cid: CID, s: &str) -> Result<(), xous::Error> { + send_message(cid, api::Opcode::String(s).into()).map(|_| ()) +} diff --git a/services/graphics-server/src/main.rs b/services/graphics-server/src/main.rs index b85028a86..851f212a5 100644 --- a/services/graphics-server/src/main.rs +++ b/services/graphics-server/src/main.rs @@ -1,6 +1,7 @@ #![cfg_attr(target_os = "none", no_std)] #![cfg_attr(target_os = "none", no_main)] +#[cfg(target_os = "none")] #[macro_use] mod debug; @@ -10,69 +11,15 @@ use backend::XousDisplay; mod api; use api::Opcode; -use embedded_graphics::{ - fonts::{Font6x8, Text}, - pixelcolor::BinaryColor, - prelude::*, - primitives::{Circle, Line, Rectangle, Triangle}, - style::{PrimitiveStyle, TextStyle}, -}; +mod op; +mod fonts; use core::convert::TryFrom; mod logo; -const USE_BOOT_LOGO: bool = true; fn draw_boot_logo(display: &mut XousDisplay) { - - if USE_BOOT_LOGO { - display.force_bitmap(logo::LOGO_MAP); - } else { - // Create styles used by the drawing operations. - let thin_stroke = PrimitiveStyle::with_stroke(BinaryColor::On, 1); - let thick_stroke = PrimitiveStyle::with_stroke(BinaryColor::On, 3); - let fill = PrimitiveStyle::with_fill(BinaryColor::On); - let text_style = TextStyle::new(Font6x8, BinaryColor::On); - - let yoffset = 10; - - // Draw a 3px wide outline around the display. - let bottom_right = Point::zero() + display.size() - Point::new(1, 1); - Rectangle::new(Point::zero(), bottom_right) - .into_styled(thick_stroke) - .draw(display) - .unwrap(); - - // Draw a triangle. - Triangle::new( - Point::new(16, 16 + yoffset), - Point::new(16 + 16, 16 + yoffset), - Point::new(16 + 8, yoffset), - ) - .into_styled(thin_stroke) - .draw(display) - .unwrap(); - - // Draw a filled square - Rectangle::new(Point::new(52, yoffset), Point::new(52 + 16, 16 + yoffset)) - .into_styled(fill) - .draw(display) - .unwrap(); - - // Draw a circle with a 3px wide stroke. - Circle::new(Point::new(96, yoffset + 8), 8) - .into_styled(thick_stroke) - .draw(display) - .unwrap(); - - // Draw centered text. - let text = "embedded-graphics"; - let width = text.len() as i32 * 6; - Text::new(text, Point::new(64 - width / 2, 40)) - .into_styled(text_style) - .draw(display) - .unwrap(); - } + display.blit_screen(logo::LOGO_MAP); } #[xous::xous_main] @@ -82,12 +29,13 @@ fn xmain() -> ! { draw_boot_logo(&mut display); - display.redraw(); + let mut current_color = api::Color::from(0usize); - let mut current_style = PrimitiveStyle::with_fill(BinaryColor::Off); + display.redraw(); let sid = xous::create_server(b"graphics-server ").unwrap(); // println!("GFX: Server listening on address {:?}", sid); + // ::debug_here::debug_here!(); loop { let msg = xous::receive_message(sid).unwrap(); // println!("GFX: Message: {:?}", msg); @@ -98,55 +46,61 @@ fn xmain() -> ! { display.update(); display.redraw(); }, - Opcode::Clear(color) => { - let fill_color = PrimitiveStyle::with_fill(if color.color == 0 { - BinaryColor::Off - } else { - BinaryColor::On - }); - - let bottom_right = Point::zero() + display.size(); - Rectangle::new(Point::zero(), bottom_right) - .into_styled(fill_color) - .draw(&mut display) - .ok(); + Opcode::Clear(_color) => { + op::clear_region(display.native_buffer(), op::ClipRegion::screen()); } Opcode::Line(start, end) => { - // println!("GFX: Drawing line from {:?} to {:?}", start, end); - Line::new(start.into(), end.into()) - .into_styled(current_style) - .draw(&mut display) - .ok(); + println!("GFX: Drawing line from {:?} to {:?}", start, end); + op::line(display.native_buffer(), start.x as _, start.y as _, end.x as _, end.y as _, if current_color.color == 0 { op::PixelColor::Off } else {op::PixelColor::On }); + // todo!(); } Opcode::Rectangle(start, end) => { - Line::new(start.into(), end.into()) - .into_styled(current_style) - .draw(&mut display) - .ok(); + todo!(); + // Line::new(start.into(), end.into()) + // .into_styled(current_style) + // .draw(&mut display) + // .ok(); } Opcode::Circle(mid, radius) => { - Circle::new(mid.into(), radius) - .into_styled(current_style) - .draw(&mut display) - .unwrap(); + todo!(); + // Circle::new(mid.into(), radius) + // .into_styled(current_style) + // .draw(&mut display) + // .unwrap(); } Opcode::Style(stroke_width, stroke_color, fill_color) => { - current_style.stroke_width = stroke_width; - current_style.stroke_color = Some(if stroke_color.color == 0 { - BinaryColor::Off - } else { - BinaryColor::On - }); - current_style.fill_color = Some(if fill_color.color == 0 { - BinaryColor::Off - } else { - BinaryColor::On + current_color = stroke_color; + // todo!(); + // current_style.stroke_width = stroke_width; + // current_style.stroke_color = Some(if stroke_color.color == 0 { + // BinaryColor::Off + // } else { + // BinaryColor::On + // }); + // current_style.fill_color = Some(if fill_color.color == 0 { + // BinaryColor::Off + // } else { + // BinaryColor::On + // }); + } + Opcode::ClearRegion(rect) => { + op::clear_region(display.native_buffer(), op::ClipRegion { + x0: rect.x0 as _, + y0: rect.y0 as _, + x1: rect.x1 as _, + y1: rect.y1 as _, }); } + Opcode::String(s) => { + op::string_regular_left(display.native_buffer(), op::ClipRegion::screen(), s); + } } } else { // println!("Couldn't convert opcode"); } + // if let Some(mem) = msg.body.memory() { + // xous::return_memory(msg.sender, *mem).expect("couldn't return message"); + // } display.update(); } } diff --git a/services/graphics-server/src/op.rs b/services/graphics-server/src/op.rs new file mode 100644 index 000000000..a70b62b31 --- /dev/null +++ b/services/graphics-server/src/op.rs @@ -0,0 +1,365 @@ +use super::fonts; +use super::fonts::{Font, GlyphHeader}; + +/// LCD Frame buffer bounds +pub const LCD_WORDS_PER_LINE: usize = 11; +pub const LCD_PX_PER_LINE: usize = 336; +pub const LCD_LINES: usize = 536; +pub const LCD_FRAME_BUF_SIZE: usize = LCD_WORDS_PER_LINE * LCD_LINES; + +const WIDTH: usize = 336; +const HEIGHT: usize = 536; + +#[derive(Copy, Clone, PartialEq)] +pub enum PixelColor { + On, + Off, +} + +/// For passing frame buffer references +pub type LcdFB = [u32; LCD_FRAME_BUF_SIZE]; + +/// For storing a full-row wide blit pattern +pub type BlitRow = [u32; LCD_WORDS_PER_LINE]; + +/// For specifying a vertical region contiguous rows in the frame buffer +/// Range is yr.0..yr.1 (yr.0 included, yr.1 excluded) +#[derive(Copy, Clone)] +pub struct YRegion(pub usize, pub usize); + +/// For specifying a region of pixels in the frame buffer +/// Ranges are x0..x1 and y0..y1 (x0 & y0 are included, x1 & y1 are excluded) +#[derive(Copy, Clone)] +pub struct ClipRegion { + pub x0: usize, + pub x1: usize, + pub y0: usize, + pub y1: usize, +} + +impl ClipRegion { + pub fn screen() -> ClipRegion { + ClipRegion { + x0: 0, + x1: WIDTH - 1, + y0: 0, + y1: HEIGHT - 1, + } + } +} + +/// Blit string with: XOR, bold font, align xr left yr top +pub fn string_bold_left(fb: &mut LcdFB, mut cr: ClipRegion, s: &str) { + let f = Font::new(fonts::GlyphSet::Bold); + for c in s.chars() { + cr.x0 += xor_char(fb, cr, c, f); + } +} + +/// Blit string with: XOR, regular font, align xr left yr top +pub fn string_regular_left(fb: &mut LcdFB, mut cr: ClipRegion, s: &str) { + let f = Font::new(fonts::GlyphSet::Regular); + for c in s.chars() { + cr.x0 += xor_char(fb, cr, c, f); + } +} + +/// Blit string with: XOR, small font, align xr left yr top +pub fn string_small_left(fb: &mut LcdFB, mut cr: ClipRegion, s: &str) { + let f = Font::new(fonts::GlyphSet::Small); + for c in s.chars() { + cr.x0 += xor_char(fb, cr, c, f); + } +} + +/// Calculate the width of all glpyhs and padding for a string +pub fn string_width(s: &str, f: Font) -> usize { + let mut w = 0; + for c in s.chars() { + w += char_width(c, f) + 3; + } + // Subtle padding math: 3px between chars, 1px at left and right ends + w - 1 +} + +/// Blit a char with: XOR, align left:xr.0 top:yr.0, pad L:1px R:2px +/// Precondition: glyph pattern width must be 32px or less +/// Return: width in pixels of character + padding that were blitted (0 for error) +/// +/// Examples of word alignment for source data (rows of glpyh pixels) +/// 1. Fits in one word: +/// row_width:8, row:1 => (data[0].bit_27)->(data[0].bit_24), mask:0x0f00_0000 +/// | data[0] | +/// | /- 8px -\ /- 8px -\ /- 8px -\ /- 8px -\ | +/// | 0123 4567 0123 4567 | +/// | 89ab cdef 89ab cdef | +/// ^^^^^^^^^ +/// 2. Spans word boundary: +/// row_width:11, row:2 => (data[0].bit_09)->(data[1].bit_31), mask:[0x0000_03ff, 0x800_0000] +/// | data[0] | data[1] | +/// | /--- 11px --\/--- 11px ---\/---- 11px --+-\/-----... | +/// | 0123 4567 89a 67 89ab cdef | 0 | +/// | b cdef 0123 45 | 123 45... | +/// ^^^^^^^^^^^^^^^^ +/// +/// Examples of word alignment for destination frame buffer: +/// 1. Fits in word: xr:1..7 => (data[0].bit_30)->(data[0].bit_26), mask:0x7c00_0000 +/// 2. Spans words: xr:30..36 => (data[0].bit_01)->(data[1].bit_29), mask:[0x0000_0003,0xe000_000] +/// +pub fn xor_char(fb: &mut LcdFB, cr: ClipRegion, c: char, f: Font) -> usize { + if cr.y1 > LCD_LINES || cr.x1 > LCD_PX_PER_LINE || cr.x0 >= cr.x1 { + return 0; + } + // Look up glyph and unpack its header + let gpo = (f.glyph_pattern_offset)(c); + let gh = GlyphHeader::new((f.glyph_data)(gpo)); + if gh.w > 32 { + return 0; + } + // Add 1px pad to left + let x0 = cr.x0 + 1; + // Calculate word alignment for destination buffer + let x1 = x0 + gh.w; + let dest_low_word = x0 >> 5; + let dest_high_word = x1 >> 5; + let px_in_dest_low_word = 32 - (x0 & 0x1f); + // Blit it + let y0 = cr.y0 + gh.y_offset; + let y_max = if (y0 + gh.h) <= cr.y1 { + gh.h + } else { + cr.y1 - y0 + }; + for y in 0..y_max { + // Unpack pixels for this glyph row. + // px_in_low_word can include some or all of the pixels for this row of + // the pattern. It may also include pixels for the next row, or, in the + // case of the last row, it may include padding bits. + let px_offset = y * gh.w; + let low_word = gpo + 1 + (px_offset >> 5); + let px_in_low_word = 32 - (px_offset & 0x1f); + let mut pattern = (f.glyph_data)(low_word); + // Mask and align pixels from low word of glyph data array + pattern <<= 32 - px_in_low_word; + pattern >>= 32 - gh.w; + if gh.w > px_in_low_word { + // When pixels for this row span two words in the glyph data array, + // get pixels from the high word too + let px_in_high_word = gh.w - px_in_low_word; + let mut pattern_h = (f.glyph_data)(low_word + 1); + pattern_h >>= 32 - px_in_high_word; + pattern |= pattern_h; + } + // XOR glyph pixels onto destination buffer + let base = (y0 + y) * LCD_WORDS_PER_LINE; + fb[base + dest_low_word] ^= pattern << (32 - px_in_dest_low_word); + if px_in_dest_low_word < gh.w { + fb[base + dest_high_word] ^= pattern >> px_in_dest_low_word; + } + } + (x0 + gh.w + 2) - cr.x0 +} + +/// Calculate the width of glpyh for a char +pub fn char_width(c: char, f: Font) -> usize { + let gpo = (f.glyph_pattern_offset)(c); + let gh = GlyphHeader::new((f.glyph_data)(gpo)); + gh.w +} + +/// Clear a screen region bounded by (cr.x0,cr.y0)..(cr.x0,cr.y1) +pub fn clear_region(fb: &mut LcdFB, cr: ClipRegion) { + if cr.y1 > LCD_LINES || cr.y0 >= cr.y1 || cr.x1 > LCD_PX_PER_LINE || cr.x0 >= cr.x1 { + return; + } + // Calculate word alignment for destination buffer + let dest_low_word = cr.x0 >> 5; + let dest_high_word = cr.x1 >> 5; + let px_in_dest_low_word = 32 - (cr.x0 & 0x1f); + let px_in_dest_high_word = cr.x1 & 0x1f; + // Blit it + for y in cr.y0..cr.y1 { + let base = y * LCD_WORDS_PER_LINE; + fb[base + dest_low_word] |= 0xffffffff << (32 - px_in_dest_low_word); + for w in dest_low_word + 1..dest_high_word { + fb[base + w] = 0xffffffff; + } + if dest_low_word < dest_high_word { + fb[base + dest_high_word] |= 0xffffffff >> (32 - px_in_dest_high_word); + } + } +} + +/// Invert a screen region bounded by (cr.x0,cr.y0)..(cr.x0,cr.y1) +pub fn invert_region(fb: &mut LcdFB, cr: ClipRegion) { + if cr.y1 > LCD_LINES || cr.y0 >= cr.y1 || cr.x1 > LCD_PX_PER_LINE || cr.x0 >= cr.x1 { + return; + } + // Calculate word alignment for destination buffer + let dest_low_word = cr.x0 >> 5; + let dest_high_word = cr.x1 >> 5; + let px_in_dest_low_word = 32 - (cr.x0 & 0x1f); + let px_in_dest_high_word = cr.x1 & 0x1f; + // Blit it + for y in cr.y0..cr.y1 { + let base = y * LCD_WORDS_PER_LINE; + fb[base + dest_low_word] ^= 0xffffffff << (32 - px_in_dest_low_word); + for w in dest_low_word + 1..dest_high_word { + fb[base + w] ^= 0xffffffff; + } + if dest_low_word < dest_high_word { + fb[base + dest_high_word] ^= 0xffffffff >> (32 - px_in_dest_high_word); + } + } +} + +/// Outline a full width screen region with pad and border box +pub fn outline_region(fb: &mut LcdFB, yr: YRegion) { + if yr.1 > LCD_LINES || yr.0 + 6 >= yr.1 { + return; + } + line_fill_clear(fb, yr.0); + line_fill_clear(fb, yr.0 + 1); + line_fill_padded_solid(fb, yr.0 + 2); + for y in yr.0 + 3..yr.1 - 3 { + line_fill_padded_border(fb, y); + } + line_fill_padded_solid(fb, yr.1 - 3); + line_fill_clear(fb, yr.1 - 2); + line_fill_clear(fb, yr.1 - 1); +} + +/// Clear a line of the screen +pub fn line_fill_clear(fb: &mut LcdFB, y: usize) { + if y >= LCD_LINES { + return; + } + let base = y * LCD_WORDS_PER_LINE; + for i in 0..=9 { + fb[base + i] = 0xffff_ffff; + } + fb[base + 10] = 0x0000_ffff; +} + +/// Fill a line of the screen with full-width pattern +pub fn line_fill_pattern(fb: &mut LcdFB, y: usize, pattern: &BlitRow) { + if y >= LCD_LINES { + return; + } + let base = y * LCD_WORDS_PER_LINE; + for (i, v) in pattern.iter().enumerate() { + fb[base + i] = *v; + } +} + +/// Fill a line of the screen with black, padded with clear to left and right +fn line_fill_padded_solid(fb: &mut LcdFB, y: usize) { + if y >= LCD_LINES { + return; + } + let base = y * LCD_WORDS_PER_LINE; + fb[base] = 0x0000_0003; + for i in 1..=9 { + fb[base + i] = 0x0000_0000; + } + fb[base + 10] = 0x0000_c000; +} + +/// Fill a line of the screen with clear, bordered by black, padded with clear +fn line_fill_padded_border(fb: &mut LcdFB, y: usize) { + if y >= LCD_LINES { + return; + } + let base = y * LCD_WORDS_PER_LINE; + fb[base] = 0xffff_fffb; + for i in 1..=9 { + fb[base + i] = 0xffff_ffff; + } + fb[base + 10] = 0x0000_dfff; +} + +fn put_pixel(fb: &mut LcdFB, x: usize, y: usize, color: PixelColor) { + if color == PixelColor::Off { + fb[(x + y * LCD_WORDS_PER_LINE * 32) / 32] |= 1 << (x % 32) + } else { + fb[(x + y * LCD_WORDS_PER_LINE * 32) / 32] &= !(1 << (x % 32)) + } +} + +// plotLine(int x0, int y0, int x1, int y1) +// dx = abs(x1-x0); +// sx = x0= dy) /* e_xy+e_x > 0 */ +// err += dy; +// x0 += sx; +// end if +// if (e2 <= dx) /* e_xy+e_y < 0 */ +// err += dx; +// y0 += sy; +// end if +// end while +pub fn line(fb: &mut LcdFB, x0: usize, y0: usize, x1: usize, y1: usize, color: PixelColor) { + let mut x0 = x0 as i32; + let mut y0 = y0 as i32; + let x1 = x1 as i32; + let y1 = y1 as i32; + + let dx = (x1 - x0).abs(); + let sx = if x0 < x1 { 1 } else { -1 }; + let dy = -((y1 - y0).abs()); + let sy = if y0 < y1 { 1 } else { -1 }; + let mut err = dx + dy; /* error value e_xy */ + loop { + /* loop */ + if x0 >= 0 && y0 >= 0 && x0 < (WIDTH as _) && y0 < (HEIGHT as _) { + put_pixel(fb, x0 as _, y0 as _, color); + } + if x0 == x1 && y0 == y1 { + break; + } + let e2 = 2 * err; + if e2 >= dy { + /* e_xy+e_x > 0 */ + err += dy; + x0 += sx; + } + if e2 <= dx { + /* e_xy+e_y < 0 */ + err += dx; + y0 += sy; + } + } +} + +#[cfg(test)] +mod tests { + use super::fonts; + + #[test] + fn bold_font_at_sign() { + let offset = fonts::bold::get_glyph_pattern_offset('@'); + assert_eq!(offset, 197); + assert_eq!(fonts::bold::DATA[offset], 0x00121008); + } + + #[test] + fn regular_font_at_sign() { + let offset = fonts::regular::get_glyph_pattern_offset('@'); + assert_eq!(offset, 182); + assert_eq!(fonts::regular::DATA[offset], 0x00101008); + } + + #[test] + fn small_font_at_sign() { + let offset = fonts::small::get_glyph_pattern_offset('@'); + assert_eq!(offset, 143); + assert_eq!(fonts::small::DATA[offset], 0x000e1006); + } +}