1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-04 12:24:11 +01:00
LibrePilot/flight/targets/boards/osd/firmware/font_outlined8x8.c

183 lines
9.3 KiB
C

/**
* Super OSD, software revision 3
* Copyright (C) 2010 Thomas Oldbury
*
* Please note the font data here is covered under Creative
* Commons licenses (version 3.0 BY-SA) and *not* the GPL.
*/
// This data is generated by a Python script from
// the original font .pngs.
// 0xff = indicates character not present
// any other byte contains the index of the character.
const char font_lookup_outlined8x8[256] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x00, 0x01, 0x02, 0x03, 0xff, 0xff, 0xff, 0x04,
0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c,
0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
0x15, 0x16, 0x17, 0xff, 0x18, 0x19, 0x1a, 0x1b,
0xff, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22,
0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31, 0x32,
0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0xff, 0x39,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
const char font_data_outlined8x8[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x20
0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x38, 0x00,
0x00, 0x10, 0x10, 0x10, 0x00, 0x10, 0x00, 0x00, // 0x21
0x44, 0xee, 0xee, 0x44, 0x00, 0x00, 0x00, 0x00,
0x00, 0x44, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x22
0x28, 0x7c, 0xfe, 0x7c, 0xfe, 0x7c, 0x28, 0x00,
0x00, 0x28, 0x7c, 0x28, 0x7c, 0x28, 0x00, 0x00, // 0x23
0x10, 0x38, 0x38, 0x10, 0x00, 0x00, 0x00, 0x00,
0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, // 0x27
0x10, 0x38, 0x70, 0x70, 0x70, 0x38, 0x10, 0x00,
0x00, 0x10, 0x20, 0x20, 0x20, 0x10, 0x00, 0x00, // 0x28
0x20, 0x70, 0x38, 0x38, 0x38, 0x70, 0x20, 0x00,
0x00, 0x20, 0x10, 0x10, 0x10, 0x20, 0x00, 0x00, // 0x29
0x28, 0x7c, 0x38, 0x7c, 0x28, 0x00, 0x00, 0x00,
0x00, 0x28, 0x10, 0x28, 0x00, 0x00, 0x00, 0x00, // 0x2a
0x38, 0x38, 0xfe, 0xfe, 0xfe, 0x38, 0x38, 0x00,
0x00, 0x10, 0x10, 0x7c, 0x10, 0x10, 0x00, 0x00, // 0x2b
0x00, 0x00, 0x78, 0x78, 0x78, 0x78, 0x38, 0x00,
0x00, 0x00, 0x00, 0x30, 0x30, 0x10, 0x00, 0x00, // 0x2c
0x00, 0x00, 0xfe, 0xfe, 0xfe, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, // 0x2d
0x00, 0x00, 0x00, 0x78, 0x78, 0x78, 0x78, 0x00,
0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, // 0x2e
0x04, 0x0e, 0x1c, 0x38, 0x70, 0xe0, 0x40, 0x00,
0x00, 0x04, 0x08, 0x10, 0x20, 0x40, 0x00, 0x00, // 0x2f
0x7c, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x7c, 0x00,
0x00, 0x38, 0x44, 0x54, 0x44, 0x38, 0x00, 0x00, // 0x30
0x3c, 0x7c, 0xfc, 0xfc, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x18, 0x28, 0x48, 0x08, 0x7c, 0x00, 0x00, // 0x31
0xfc, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x78, 0x04, 0x78, 0x40, 0x7c, 0x00, 0x00, // 0x32
0xfe, 0xfe, 0xfe, 0x7e, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x04, 0x3c, 0x04, 0x7c, 0x00, 0x00, // 0x33
0xee, 0xee, 0xfe, 0xfe, 0x7e, 0x0e, 0x0e, 0x00,
0x00, 0x44, 0x44, 0x3c, 0x04, 0x04, 0x00, 0x00, // 0x34
0xfc, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0x00,
0x00, 0x7c, 0x40, 0x78, 0x04, 0x78, 0x00, 0x00, // 0x35
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x40, 0x7c, 0x44, 0x7c, 0x00, 0x00, // 0x36
0xfe, 0xfe, 0xfe, 0x38, 0x70, 0xe0, 0xc0, 0x00,
0x00, 0x7c, 0x08, 0x10, 0x20, 0x40, 0x00, 0x00, // 0x37
0x7c, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x7c, 0x00,
0x00, 0x38, 0x44, 0x7c, 0x44, 0x38, 0x00, 0x00, // 0x38
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x7e, 0x7e, 0x00,
0x00, 0x7c, 0x44, 0x7c, 0x04, 0x3c, 0x00, 0x00, // 0x39
0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x78, 0x00,
0x00, 0x30, 0x30, 0x00, 0x30, 0x30, 0x00, 0x00, // 0x3a
0x08, 0x1c, 0x38, 0x70, 0x38, 0x1c, 0x08, 0x00,
0x00, 0x08, 0x10, 0x20, 0x10, 0x08, 0x00, 0x00, // 0x3c
0xfe, 0xfe, 0xfe, 0x00, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, // 0x3d
0x20, 0x70, 0x38, 0x1c, 0x38, 0x70, 0x20, 0x00,
0x00, 0x20, 0x10, 0x08, 0x10, 0x20, 0x00, 0x00, // 0x3e
0x7c, 0xfe, 0xfe, 0xfe, 0x3c, 0x38, 0x38, 0x00,
0x00, 0x38, 0x44, 0x18, 0x00, 0x10, 0x00, 0x00, // 0x3f
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xee, 0xee, 0x00,
0x00, 0x7c, 0x44, 0x7c, 0x44, 0x44, 0x00, 0x00, // 0x41
0xfc, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0x00,
0x00, 0x78, 0x44, 0x7c, 0x44, 0x78, 0x00, 0x00, // 0x42
0xfe, 0xfe, 0xfe, 0xe0, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x40, 0x40, 0x40, 0x7c, 0x00, 0x00, // 0x43
0xfc, 0xfe, 0xfe, 0xee, 0xfe, 0xfe, 0xfc, 0x00,
0x00, 0x78, 0x44, 0x44, 0x44, 0x78, 0x00, 0x00, // 0x44
0xfe, 0xfe, 0xfe, 0xfc, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x40, 0x78, 0x40, 0x7c, 0x00, 0x00, // 0x45
0xfe, 0xfe, 0xfe, 0xfc, 0xfc, 0xe0, 0xe0, 0x00,
0x00, 0x7c, 0x40, 0x78, 0x40, 0x40, 0x00, 0x00, // 0x46
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x40, 0x5c, 0x44, 0x7c, 0x00, 0x00, // 0x47
0xee, 0xee, 0xfe, 0xfe, 0xfe, 0xee, 0xee, 0x00,
0x00, 0x44, 0x44, 0x7c, 0x44, 0x44, 0x00, 0x00, // 0x48
0xfe, 0xfe, 0xfe, 0x38, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x10, 0x10, 0x10, 0x7c, 0x00, 0x00, // 0x49
0xfe, 0xfe, 0xfe, 0x1c, 0xfc, 0xfc, 0xfc, 0x00,
0x00, 0x7c, 0x08, 0x08, 0x08, 0x78, 0x00, 0x00, // 0x4a
0xe6, 0xee, 0xfc, 0xf8, 0xfc, 0xee, 0xe6, 0x00,
0x00, 0x44, 0x48, 0x70, 0x48, 0x44, 0x00, 0x00, // 0x4b
0xe0, 0xe0, 0xe0, 0xe0, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x40, 0x40, 0x40, 0x40, 0x7c, 0x00, 0x00, // 0x4c
0x6c, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xee, 0x00,
0x00, 0x28, 0x54, 0x54, 0x54, 0x44, 0x00, 0x00, // 0x4d
0xee, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xee, 0x00,
0x00, 0x44, 0x64, 0x54, 0x4c, 0x44, 0x00, 0x00, // 0x4e
0xfe, 0xfe, 0xfe, 0xee, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x44, 0x44, 0x44, 0x7c, 0x00, 0x00, // 0x4f
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xe0, 0xe0, 0x00,
0x00, 0x7c, 0x44, 0x7c, 0x40, 0x40, 0x00, 0x00, // 0x50
0xfe, 0xfe, 0xfe, 0xee, 0xfc, 0xfe, 0xf6, 0x00,
0x00, 0x7c, 0x44, 0x44, 0x48, 0x74, 0x00, 0x00, // 0x51
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0xe8, 0x00,
0x00, 0x7c, 0x44, 0x7c, 0x50, 0x48, 0x00, 0x00, // 0x52
0x7e, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfc, 0x00,
0x00, 0x3c, 0x40, 0x7c, 0x04, 0x78, 0x00, 0x00, // 0x53
0xfe, 0xfe, 0xfe, 0x38, 0x38, 0x38, 0x38, 0x00,
0x00, 0x7c, 0x10, 0x10, 0x10, 0x10, 0x00, 0x00, // 0x54
0xee, 0xee, 0xee, 0xee, 0xfe, 0xfe, 0x7c, 0x00,
0x00, 0x44, 0x44, 0x44, 0x44, 0x38, 0x00, 0x00, // 0x55
0xee, 0xee, 0xee, 0xfe, 0xfe, 0x7c, 0x38, 0x00,
0x00, 0x44, 0x44, 0x44, 0x28, 0x10, 0x00, 0x00, // 0x56
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x6c, 0x00,
0x00, 0x54, 0x54, 0x54, 0x54, 0x28, 0x00, 0x00, // 0x57
0xee, 0xfe, 0xfe, 0x7c, 0xfe, 0xfe, 0xee, 0x00,
0x00, 0x44, 0x28, 0x10, 0x28, 0x44, 0x00, 0x00, // 0x58
0xee, 0xfe, 0xfe, 0x7c, 0x38, 0x38, 0x38, 0x00,
0x00, 0x44, 0x28, 0x10, 0x10, 0x10, 0x00, 0x00, // 0x59
0xfe, 0xfe, 0xfe, 0x78, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x7c, 0x08, 0x10, 0x20, 0x7c, 0x00, 0x00, // 0x5a
0x38, 0x7c, 0x78, 0x70, 0x78, 0x7c, 0x38, 0x00,
0x00, 0x38, 0x20, 0x20, 0x20, 0x38, 0x00, 0x00, // 0x5b
0x40, 0xe0, 0x70, 0x38, 0x1c, 0x0e, 0x04, 0x00,
0x00, 0x40, 0x20, 0x10, 0x08, 0x04, 0x00, 0x00, // 0x5c
0x38, 0x7c, 0x3c, 0x1c, 0x3c, 0x7c, 0x38, 0x00,
0x00, 0x38, 0x08, 0x08, 0x08, 0x38, 0x00, 0x00, // 0x5d
0x00, 0x00, 0x00, 0x00, 0xfe, 0xfe, 0xfe, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, // 0x5f
0x10, 0x38, 0x7c, 0xfe, 0xfe, 0x38, 0x38, 0x00,
0x00, 0x10, 0x38, 0x54, 0x10, 0x10, 0x00, 0x00, // 0x80
0x3e, 0x3e, 0x1e, 0x3e, 0x76, 0xe0, 0x40, 0x00,
0x00, 0x1c, 0x0c, 0x14, 0x20, 0x40, 0x00, 0x00, // 0x81
0x10, 0x38, 0xfc, 0xfe, 0xfc, 0x38, 0x10, 0x00,
0x00, 0x10, 0x08, 0x7c, 0x08, 0x10, 0x00, 0x00, // 0x82
0x40, 0xe0, 0x76, 0x3e, 0x1e, 0x3e, 0x3e, 0x00,
0x00, 0x40, 0x20, 0x14, 0x0c, 0x1c, 0x00, 0x00, // 0x83
0x38, 0x38, 0xfe, 0xfe, 0x7c, 0x38, 0x10, 0x00,
0x00, 0x10, 0x10, 0x54, 0x38, 0x10, 0x00, 0x00, // 0x84
0x04, 0x0e, 0xdc, 0xf8, 0xf0, 0xf8, 0xf8, 0x00,
0x00, 0x04, 0x08, 0x50, 0x60, 0x70, 0x00, 0x00, // 0x85
0x10, 0x38, 0x7e, 0xfe, 0x7e, 0x38, 0x10, 0x00,
0x00, 0x10, 0x20, 0x7c, 0x20, 0x10, 0x00, 0x00, // 0x86
0xf8, 0xf8, 0xf0, 0xf8, 0xdc, 0x0e, 0x04, 0x00,
0x00, 0x70, 0x60, 0x50, 0x08, 0x04, 0x00, 0x00 // 0x87
};