parent
f722ba840e
commit
af6cbe7d05
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,203 @@
|
||||
#include <stdint.h>
|
||||
|
||||
// clang-format off
|
||||
|
||||
// - the first two bytes are width and height of the glyph
|
||||
// - the third, fourth and fifth bytes are advance, bearingX and bearingY of the horizontal metrics of the glyph
|
||||
// - the rest is packed 1-bit glyph data
|
||||
|
||||
/* */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_32[] = { 0, 0, 4, 0, 0 };
|
||||
/* ! */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_33[] = { 2, 7, 5, 1, 7, 255, 204 };
|
||||
/* " */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_34[] = { 5, 3, 6, 0, 7, 222, 246 };
|
||||
/* # */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_35[] = { 7, 6, 8, 0, 6, 109, 253, 179, 111, 237, 128 };
|
||||
/* $ */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_36[] = { 7, 7, 8, 0, 7, 16, 251, 67, 225, 127, 132, 0 };
|
||||
/* % */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_37[] = { 12, 7, 13, 0, 7, 112, 141, 152, 219, 7, 110, 13, 177, 155, 16, 224 };
|
||||
/* & */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_38[] = { 6, 7, 7, 0, 7, 123, 60, 30, 207, 55, 192 };
|
||||
/* ' */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_39[] = { 2, 3, 5, 1, 7, 252 };
|
||||
/* ( */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_40[] = { 4, 7, 7, 2, 7, 54, 204, 198, 48 };
|
||||
/* ) */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_41[] = { 4, 7, 7, 0, 7, 198, 51, 54, 192 };
|
||||
/* * */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_42[] = { 5, 7, 6, 0, 7, 37, 126, 239, 212, 128 };
|
||||
/* + */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_43[] = { 6, 5, 7, 0, 6, 48, 207, 204, 48 };
|
||||
/* , */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_44[] = { 3, 3, 5, 0, 2, 111, 0 };
|
||||
/* - */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_45[] = { 4, 1, 5, 0, 4, 240 };
|
||||
/* . */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_46[] = { 2, 1, 5, 1, 1, 192 };
|
||||
/* / */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_47[] = { 4, 7, 5, 0, 7, 51, 102, 108, 192 };
|
||||
/* 0 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_48[] = { 6, 7, 7, 0, 7, 123, 61, 255, 239, 55, 128 };
|
||||
/* 1 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_49[] = { 4, 7, 7, 1, 7, 55, 251, 51, 48 };
|
||||
/* 2 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_50[] = { 6, 7, 7, 0, 7, 123, 48, 198, 49, 143, 192 };
|
||||
/* 3 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_51[] = { 6, 7, 7, 0, 7, 123, 48, 206, 15, 55, 128 };
|
||||
/* 4 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_52[] = { 6, 7, 7, 0, 7, 28, 246, 243, 252, 48, 192 };
|
||||
/* 5 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_53[] = { 6, 7, 7, 0, 7, 255, 15, 131, 15, 55, 128 };
|
||||
/* 6 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_54[] = { 6, 7, 7, 0, 7, 123, 60, 62, 207, 55, 128 };
|
||||
/* 7 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_55[] = { 6, 7, 7, 0, 7, 252, 49, 140, 99, 12, 0 };
|
||||
/* 8 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_56[] = { 6, 7, 7, 0, 7, 123, 60, 222, 207, 55, 128 };
|
||||
/* 9 */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_57[] = { 6, 7, 7, 0, 7, 123, 60, 223, 15, 55, 128 };
|
||||
/* : */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_58[] = { 2, 5, 5, 1, 5, 192, 192 };
|
||||
/* ; */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_59[] = { 3, 6, 5, 0, 5, 96, 55, 128 };
|
||||
/* < */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_60[] = { 4, 5, 5, 0, 6, 54, 198, 48 };
|
||||
/* = */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_61[] = { 4, 3, 5, 0, 5, 240, 240 };
|
||||
/* > */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_62[] = { 4, 5, 5, 0, 6, 198, 54, 192 };
|
||||
/* ? */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_63[] = { 6, 7, 7, 0, 7, 123, 48, 198, 48, 3, 0 };
|
||||
/* @ */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_64[] = { 7, 8, 8, 0, 7, 125, 6, 109, 90, 179, 160, 62, 0 };
|
||||
/* A */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_65[] = { 6, 7, 7, 0, 7, 123, 60, 243, 255, 60, 192 };
|
||||
/* B */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_66[] = { 6, 7, 7, 0, 7, 251, 60, 254, 207, 63, 128 };
|
||||
/* C */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_67[] = { 6, 7, 7, 0, 7, 123, 60, 48, 195, 55, 128 };
|
||||
/* D */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_68[] = { 6, 7, 7, 0, 7, 251, 60, 243, 207, 63, 128 };
|
||||
/* E */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_69[] = { 6, 7, 7, 0, 7, 255, 12, 60, 195, 15, 192 };
|
||||
/* F */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_70[] = { 6, 7, 7, 0, 7, 255, 12, 60, 195, 12, 0 };
|
||||
/* G */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_71[] = { 6, 7, 7, 0, 7, 123, 60, 55, 207, 55, 192 };
|
||||
/* H */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_72[] = { 6, 7, 7, 0, 7, 207, 60, 255, 207, 60, 192 };
|
||||
/* I */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_73[] = { 2, 7, 5, 1, 7, 255, 252 };
|
||||
/* J */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_74[] = { 6, 7, 7, 0, 7, 12, 48, 195, 15, 55, 128 };
|
||||
/* K */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_75[] = { 6, 7, 7, 0, 7, 207, 111, 56, 243, 108, 192 };
|
||||
/* L */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_76[] = { 6, 7, 7, 0, 7, 195, 12, 48, 195, 15, 192 };
|
||||
/* M */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_77[] = { 7, 7, 8, 0, 7, 199, 143, 191, 253, 120, 241, 128 };
|
||||
/* N */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_78[] = { 6, 7, 7, 0, 7, 207, 62, 255, 223, 60, 192 };
|
||||
/* O */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_79[] = { 6, 7, 7, 0, 7, 123, 60, 243, 207, 55, 128 };
|
||||
/* P */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_80[] = { 6, 7, 7, 0, 7, 251, 60, 243, 251, 12, 0 };
|
||||
/* Q */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_81[] = { 6, 7, 7, 0, 7, 123, 60, 251, 255, 102, 192 };
|
||||
/* R */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_82[] = { 6, 7, 7, 0, 7, 251, 60, 243, 251, 108, 192 };
|
||||
/* S */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_83[] = { 6, 7, 7, 0, 7, 123, 60, 30, 15, 55, 128 };
|
||||
/* T */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_84[] = { 6, 7, 7, 0, 7, 252, 195, 12, 48, 195, 0 };
|
||||
/* U */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_85[] = { 6, 7, 7, 0, 7, 207, 60, 243, 207, 55, 128 };
|
||||
/* V */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_86[] = { 6, 7, 7, 0, 7, 207, 60, 243, 205, 227, 0 };
|
||||
/* W */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_87[] = { 7, 7, 8, 0, 7, 199, 143, 94, 189, 122, 219, 0 };
|
||||
/* X */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_88[] = { 6, 7, 7, 0, 7, 207, 55, 140, 123, 60, 192 };
|
||||
/* Y */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_89[] = { 6, 7, 7, 0, 7, 207, 55, 140, 48, 195, 0 };
|
||||
/* Z */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_90[] = { 6, 7, 7, 0, 7, 252, 49, 140, 99, 15, 192 };
|
||||
/* [ */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_91[] = { 4, 7, 7, 2, 7, 252, 204, 204, 240 };
|
||||
/* \ */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_92[] = { 4, 7, 5, 0, 7, 204, 102, 99, 48 };
|
||||
/* ] */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_93[] = { 4, 7, 6, 0, 7, 243, 51, 51, 240 };
|
||||
/* ^ */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_94[] = { 6, 4, 7, 0, 7, 49, 236, 225, 0 };
|
||||
/* _ */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_95[] = { 5, 1, 5, 0, 0, 248 };
|
||||
/* ` */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_96[] = { 3, 2, 5, 0, 7, 204 };
|
||||
/* a */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_97[] = { 6, 5, 7, 0, 5, 120, 55, 243, 124 };
|
||||
/* b */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_98[] = { 6, 7, 7, 0, 7, 195, 15, 179, 207, 63, 128 };
|
||||
/* c */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_99[] = { 6, 5, 7, 0, 5, 123, 60, 51, 120 };
|
||||
/* d */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_100[] = { 6, 7, 7, 0, 7, 12, 55, 243, 207, 55, 192 };
|
||||
/* e */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_101[] = { 6, 5, 7, 0, 5, 123, 63, 240, 120 };
|
||||
/* f */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_102[] = { 5, 7, 6, 0, 7, 59, 62, 198, 49, 128 };
|
||||
/* g */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_103[] = { 6, 6, 7, 0, 5, 127, 60, 223, 13, 224 };
|
||||
/* h */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_104[] = { 6, 7, 7, 0, 7, 195, 15, 179, 207, 60, 192 };
|
||||
/* i */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_105[] = { 2, 7, 5, 1, 7, 207, 252 };
|
||||
/* j */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_106[] = { 6, 8, 7, 0, 7, 12, 0, 195, 12, 60, 222, 0 };
|
||||
/* k */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_107[] = { 6, 7, 7, 0, 7, 195, 13, 188, 243, 108, 192 };
|
||||
/* l */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_108[] = { 3, 7, 5, 1, 7, 219, 109, 152 };
|
||||
/* m */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_109[] = { 7, 5, 8, 0, 5, 237, 175, 94, 60, 96 };
|
||||
/* n */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_110[] = { 6, 5, 7, 0, 5, 251, 60, 243, 204 };
|
||||
/* o */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_111[] = { 6, 5, 7, 0, 5, 123, 60, 243, 120 };
|
||||
/* p */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_112[] = { 6, 6, 7, 0, 5, 251, 60, 254, 195, 0 };
|
||||
/* q */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_113[] = { 6, 6, 7, 0, 5, 127, 60, 223, 12, 48 };
|
||||
/* r */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_114[] = { 6, 5, 7, 0, 5, 207, 126, 48, 192 };
|
||||
/* s */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_115[] = { 6, 5, 7, 0, 5, 123, 7, 131, 248 };
|
||||
/* t */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_116[] = { 5, 6, 6, 0, 6, 103, 216, 198, 28 };
|
||||
/* u */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_117[] = { 6, 5, 7, 0, 5, 207, 60, 243, 120 };
|
||||
/* v */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_118[] = { 6, 5, 7, 0, 5, 207, 60, 222, 48 };
|
||||
/* w */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_119[] = { 7, 5, 8, 0, 5, 199, 143, 94, 182, 192 };
|
||||
/* x */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_120[] = { 6, 5, 7, 0, 5, 205, 227, 30, 204 };
|
||||
/* y */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_121[] = { 6, 6, 7, 0, 5, 207, 60, 223, 13, 224 };
|
||||
/* z */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_122[] = { 6, 5, 7, 0, 5, 252, 99, 24, 252 };
|
||||
/* { */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_123[] = { 5, 7, 6, 0, 7, 59, 25, 134, 48, 224 };
|
||||
/* | */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_124[] = { 2, 7, 5, 1, 7, 255, 252 };
|
||||
/* } */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_125[] = { 5, 7, 6, 0, 7, 225, 140, 51, 27, 128 };
|
||||
/* ~ */ static const uint8_t Font_PixelOperator8_Bold_8_glyph_126[] = { 7, 2, 8, 0, 7, 119, 184 };
|
||||
|
||||
const uint8_t Font_PixelOperator8_Bold_8_glyph_nonprintable[] = { 6, 7, 7, 0, 7, 132, 207, 57, 207, 252, 255 };
|
||||
|
||||
const uint8_t * const Font_PixelOperator8_Bold_8[126 + 1 - 32] = {
|
||||
Font_PixelOperator8_Bold_8_glyph_32,
|
||||
Font_PixelOperator8_Bold_8_glyph_33,
|
||||
Font_PixelOperator8_Bold_8_glyph_34,
|
||||
Font_PixelOperator8_Bold_8_glyph_35,
|
||||
Font_PixelOperator8_Bold_8_glyph_36,
|
||||
Font_PixelOperator8_Bold_8_glyph_37,
|
||||
Font_PixelOperator8_Bold_8_glyph_38,
|
||||
Font_PixelOperator8_Bold_8_glyph_39,
|
||||
Font_PixelOperator8_Bold_8_glyph_40,
|
||||
Font_PixelOperator8_Bold_8_glyph_41,
|
||||
Font_PixelOperator8_Bold_8_glyph_42,
|
||||
Font_PixelOperator8_Bold_8_glyph_43,
|
||||
Font_PixelOperator8_Bold_8_glyph_44,
|
||||
Font_PixelOperator8_Bold_8_glyph_45,
|
||||
Font_PixelOperator8_Bold_8_glyph_46,
|
||||
Font_PixelOperator8_Bold_8_glyph_47,
|
||||
Font_PixelOperator8_Bold_8_glyph_48,
|
||||
Font_PixelOperator8_Bold_8_glyph_49,
|
||||
Font_PixelOperator8_Bold_8_glyph_50,
|
||||
Font_PixelOperator8_Bold_8_glyph_51,
|
||||
Font_PixelOperator8_Bold_8_glyph_52,
|
||||
Font_PixelOperator8_Bold_8_glyph_53,
|
||||
Font_PixelOperator8_Bold_8_glyph_54,
|
||||
Font_PixelOperator8_Bold_8_glyph_55,
|
||||
Font_PixelOperator8_Bold_8_glyph_56,
|
||||
Font_PixelOperator8_Bold_8_glyph_57,
|
||||
Font_PixelOperator8_Bold_8_glyph_58,
|
||||
Font_PixelOperator8_Bold_8_glyph_59,
|
||||
Font_PixelOperator8_Bold_8_glyph_60,
|
||||
Font_PixelOperator8_Bold_8_glyph_61,
|
||||
Font_PixelOperator8_Bold_8_glyph_62,
|
||||
Font_PixelOperator8_Bold_8_glyph_63,
|
||||
Font_PixelOperator8_Bold_8_glyph_64,
|
||||
Font_PixelOperator8_Bold_8_glyph_65,
|
||||
Font_PixelOperator8_Bold_8_glyph_66,
|
||||
Font_PixelOperator8_Bold_8_glyph_67,
|
||||
Font_PixelOperator8_Bold_8_glyph_68,
|
||||
Font_PixelOperator8_Bold_8_glyph_69,
|
||||
Font_PixelOperator8_Bold_8_glyph_70,
|
||||
Font_PixelOperator8_Bold_8_glyph_71,
|
||||
Font_PixelOperator8_Bold_8_glyph_72,
|
||||
Font_PixelOperator8_Bold_8_glyph_73,
|
||||
Font_PixelOperator8_Bold_8_glyph_74,
|
||||
Font_PixelOperator8_Bold_8_glyph_75,
|
||||
Font_PixelOperator8_Bold_8_glyph_76,
|
||||
Font_PixelOperator8_Bold_8_glyph_77,
|
||||
Font_PixelOperator8_Bold_8_glyph_78,
|
||||
Font_PixelOperator8_Bold_8_glyph_79,
|
||||
Font_PixelOperator8_Bold_8_glyph_80,
|
||||
Font_PixelOperator8_Bold_8_glyph_81,
|
||||
Font_PixelOperator8_Bold_8_glyph_82,
|
||||
Font_PixelOperator8_Bold_8_glyph_83,
|
||||
Font_PixelOperator8_Bold_8_glyph_84,
|
||||
Font_PixelOperator8_Bold_8_glyph_85,
|
||||
Font_PixelOperator8_Bold_8_glyph_86,
|
||||
Font_PixelOperator8_Bold_8_glyph_87,
|
||||
Font_PixelOperator8_Bold_8_glyph_88,
|
||||
Font_PixelOperator8_Bold_8_glyph_89,
|
||||
Font_PixelOperator8_Bold_8_glyph_90,
|
||||
Font_PixelOperator8_Bold_8_glyph_91,
|
||||
Font_PixelOperator8_Bold_8_glyph_92,
|
||||
Font_PixelOperator8_Bold_8_glyph_93,
|
||||
Font_PixelOperator8_Bold_8_glyph_94,
|
||||
Font_PixelOperator8_Bold_8_glyph_95,
|
||||
Font_PixelOperator8_Bold_8_glyph_96,
|
||||
Font_PixelOperator8_Bold_8_glyph_97,
|
||||
Font_PixelOperator8_Bold_8_glyph_98,
|
||||
Font_PixelOperator8_Bold_8_glyph_99,
|
||||
Font_PixelOperator8_Bold_8_glyph_100,
|
||||
Font_PixelOperator8_Bold_8_glyph_101,
|
||||
Font_PixelOperator8_Bold_8_glyph_102,
|
||||
Font_PixelOperator8_Bold_8_glyph_103,
|
||||
Font_PixelOperator8_Bold_8_glyph_104,
|
||||
Font_PixelOperator8_Bold_8_glyph_105,
|
||||
Font_PixelOperator8_Bold_8_glyph_106,
|
||||
Font_PixelOperator8_Bold_8_glyph_107,
|
||||
Font_PixelOperator8_Bold_8_glyph_108,
|
||||
Font_PixelOperator8_Bold_8_glyph_109,
|
||||
Font_PixelOperator8_Bold_8_glyph_110,
|
||||
Font_PixelOperator8_Bold_8_glyph_111,
|
||||
Font_PixelOperator8_Bold_8_glyph_112,
|
||||
Font_PixelOperator8_Bold_8_glyph_113,
|
||||
Font_PixelOperator8_Bold_8_glyph_114,
|
||||
Font_PixelOperator8_Bold_8_glyph_115,
|
||||
Font_PixelOperator8_Bold_8_glyph_116,
|
||||
Font_PixelOperator8_Bold_8_glyph_117,
|
||||
Font_PixelOperator8_Bold_8_glyph_118,
|
||||
Font_PixelOperator8_Bold_8_glyph_119,
|
||||
Font_PixelOperator8_Bold_8_glyph_120,
|
||||
Font_PixelOperator8_Bold_8_glyph_121,
|
||||
Font_PixelOperator8_Bold_8_glyph_122,
|
||||
Font_PixelOperator8_Bold_8_glyph_123,
|
||||
Font_PixelOperator8_Bold_8_glyph_124,
|
||||
Font_PixelOperator8_Bold_8_glyph_125,
|
||||
Font_PixelOperator8_Bold_8_glyph_126,
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#if TREZOR_FONT_BPP != 1
|
||||
#error Wrong TREZOR_FONT_BPP (expected 1)
|
||||
#endif
|
||||
#define Font_PixelOperator8_Bold_8_HEIGHT 8
|
||||
#define Font_PixelOperator8_Bold_8_MAX_HEIGHT 8
|
||||
#define Font_PixelOperator8_Bold_8_BASELINE 1
|
||||
extern const uint8_t* const Font_PixelOperator8_Bold_8[126 + 1 - 32];
|
||||
extern const uint8_t Font_PixelOperator8_Bold_8_glyph_nonprintable[];
|
@ -0,0 +1,203 @@
|
||||
#include <stdint.h>
|
||||
|
||||
// clang-format off
|
||||
|
||||
// - the first two bytes are width and height of the glyph
|
||||
// - the third, fourth and fifth bytes are advance, bearingX and bearingY of the horizontal metrics of the glyph
|
||||
// - the rest is packed 1-bit glyph data
|
||||
|
||||
/* */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_32[] = { 0, 0, 8, 0, 0 };
|
||||
/* ! */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_33[] = { 2, 7, 7, 2, 7, 255, 204 };
|
||||
/* " */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_34[] = { 5, 3, 7, 0, 7, 222, 246 };
|
||||
/* # */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_35[] = { 7, 6, 8, 0, 6, 109, 253, 179, 111, 237, 128 };
|
||||
/* $ */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_36[] = { 7, 7, 8, 0, 7, 16, 251, 67, 225, 127, 132, 0 };
|
||||
/* % */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_37[] = { 7, 7, 8, 0, 7, 65, 74, 162, 162, 169, 65, 0 };
|
||||
/* & */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_38[] = { 6, 7, 7, 0, 7, 123, 60, 30, 207, 55, 192 };
|
||||
/* ' */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_39[] = { 2, 3, 7, 2, 7, 252 };
|
||||
/* ( */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_40[] = { 4, 7, 7, 2, 7, 54, 204, 198, 48 };
|
||||
/* ) */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_41[] = { 4, 7, 7, 0, 7, 198, 51, 54, 192 };
|
||||
/* * */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_42[] = { 5, 7, 7, 0, 7, 37, 126, 239, 212, 128 };
|
||||
/* + */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_43[] = { 6, 5, 7, 0, 6, 48, 207, 204, 48 };
|
||||
/* , */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_44[] = { 3, 3, 7, 1, 2, 111, 0 };
|
||||
/* - */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_45[] = { 4, 1, 7, 1, 4, 240 };
|
||||
/* . */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_46[] = { 2, 1, 7, 2, 1, 192 };
|
||||
/* / */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_47[] = { 4, 7, 7, 1, 7, 51, 102, 108, 192 };
|
||||
/* 0 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_48[] = { 6, 7, 7, 0, 7, 123, 61, 255, 239, 55, 128 };
|
||||
/* 1 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_49[] = { 6, 7, 7, 0, 7, 49, 207, 44, 48, 207, 192 };
|
||||
/* 2 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_50[] = { 6, 7, 7, 0, 7, 123, 48, 198, 49, 143, 192 };
|
||||
/* 3 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_51[] = { 6, 7, 7, 0, 7, 123, 48, 206, 15, 55, 128 };
|
||||
/* 4 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_52[] = { 6, 7, 7, 0, 7, 28, 246, 243, 252, 48, 192 };
|
||||
/* 5 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_53[] = { 6, 7, 7, 0, 7, 255, 15, 131, 15, 55, 128 };
|
||||
/* 6 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_54[] = { 6, 7, 7, 0, 7, 123, 60, 62, 207, 55, 128 };
|
||||
/* 7 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_55[] = { 6, 7, 7, 0, 7, 252, 49, 140, 99, 12, 0 };
|
||||
/* 8 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_56[] = { 6, 7, 7, 0, 7, 123, 60, 222, 207, 55, 128 };
|
||||
/* 9 */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_57[] = { 6, 7, 7, 0, 7, 123, 60, 223, 15, 55, 128 };
|
||||
/* : */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_58[] = { 2, 5, 7, 2, 5, 192, 192 };
|
||||
/* ; */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_59[] = { 3, 6, 7, 1, 5, 96, 55, 128 };
|
||||
/* < */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_60[] = { 4, 5, 7, 1, 6, 54, 198, 48 };
|
||||
/* = */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_61[] = { 4, 3, 7, 1, 5, 240, 240 };
|
||||
/* > */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_62[] = { 4, 5, 7, 1, 6, 198, 54, 192 };
|
||||
/* ? */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_63[] = { 6, 7, 7, 0, 7, 123, 48, 198, 48, 3, 0 };
|
||||
/* @ */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_64[] = { 7, 8, 8, 0, 7, 125, 6, 109, 90, 179, 160, 62, 0 };
|
||||
/* A */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_65[] = { 6, 7, 7, 0, 7, 123, 60, 243, 255, 60, 192 };
|
||||
/* B */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_66[] = { 6, 7, 7, 0, 7, 251, 60, 254, 207, 63, 128 };
|
||||
/* C */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_67[] = { 6, 7, 7, 0, 7, 123, 60, 48, 195, 55, 128 };
|
||||
/* D */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_68[] = { 6, 7, 7, 0, 7, 251, 60, 243, 207, 63, 128 };
|
||||
/* E */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_69[] = { 6, 7, 7, 0, 7, 255, 12, 60, 195, 15, 192 };
|
||||
/* F */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_70[] = { 6, 7, 7, 0, 7, 255, 12, 60, 195, 12, 0 };
|
||||
/* G */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_71[] = { 6, 7, 7, 0, 7, 123, 60, 55, 207, 55, 192 };
|
||||
/* H */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_72[] = { 6, 7, 7, 0, 7, 207, 60, 255, 207, 60, 192 };
|
||||
/* I */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_73[] = { 6, 7, 7, 0, 7, 252, 195, 12, 48, 207, 192 };
|
||||
/* J */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_74[] = { 7, 7, 7, 0, 7, 62, 24, 48, 96, 217, 158, 0 };
|
||||
/* K */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_75[] = { 6, 7, 7, 0, 7, 207, 111, 56, 243, 108, 192 };
|
||||
/* L */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_76[] = { 6, 7, 7, 0, 7, 195, 12, 48, 195, 15, 192 };
|
||||
/* M */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_77[] = { 7, 7, 8, 0, 7, 199, 143, 191, 253, 120, 241, 128 };
|
||||
/* N */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_78[] = { 6, 7, 7, 0, 7, 207, 62, 255, 223, 60, 192 };
|
||||
/* O */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_79[] = { 6, 7, 7, 0, 7, 123, 60, 243, 207, 55, 128 };
|
||||
/* P */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_80[] = { 6, 7, 7, 0, 7, 251, 60, 243, 251, 12, 0 };
|
||||
/* Q */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_81[] = { 6, 7, 7, 0, 7, 123, 60, 251, 255, 102, 192 };
|
||||
/* R */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_82[] = { 6, 7, 7, 0, 7, 251, 60, 243, 251, 108, 192 };
|
||||
/* S */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_83[] = { 6, 7, 7, 0, 7, 123, 60, 30, 15, 55, 128 };
|
||||
/* T */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_84[] = { 6, 7, 7, 0, 7, 252, 195, 12, 48, 195, 0 };
|
||||
/* U */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_85[] = { 6, 7, 7, 0, 7, 207, 60, 243, 207, 55, 128 };
|
||||
/* V */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_86[] = { 6, 7, 7, 0, 7, 207, 60, 243, 205, 227, 0 };
|
||||
/* W */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_87[] = { 7, 7, 8, 0, 7, 199, 143, 94, 189, 122, 219, 0 };
|
||||
/* X */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_88[] = { 6, 7, 7, 0, 7, 207, 55, 140, 123, 60, 192 };
|
||||
/* Y */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_89[] = { 6, 7, 7, 0, 7, 207, 55, 140, 48, 195, 0 };
|
||||
/* Z */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_90[] = { 6, 7, 7, 0, 7, 252, 49, 140, 99, 15, 192 };
|
||||
/* [ */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_91[] = { 4, 7, 7, 2, 7, 252, 204, 204, 240 };
|
||||
/* \ */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_92[] = { 4, 7, 7, 1, 7, 204, 102, 99, 48 };
|
||||
/* ] */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_93[] = { 4, 7, 7, 0, 7, 243, 51, 51, 240 };
|
||||
/* ^ */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_94[] = { 6, 4, 7, 0, 7, 49, 236, 225, 0 };
|
||||
/* _ */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_95[] = { 8, 1, 8, 0, 0, 255, 0 };
|
||||
/* ` */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_96[] = { 3, 2, 7, 1, 7, 204 };
|
||||
/* a */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_97[] = { 6, 5, 7, 0, 5, 120, 55, 243, 124 };
|
||||
/* b */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_98[] = { 6, 7, 7, 0, 7, 195, 15, 179, 207, 63, 128 };
|
||||
/* c */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_99[] = { 6, 5, 7, 0, 5, 123, 60, 51, 120 };
|
||||
/* d */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_100[] = { 6, 7, 7, 0, 7, 12, 55, 243, 207, 55, 192 };
|
||||
/* e */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_101[] = { 6, 5, 7, 0, 5, 123, 63, 240, 120 };
|
||||
/* f */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_102[] = { 5, 7, 7, 1, 7, 59, 62, 198, 49, 128 };
|
||||
/* g */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_103[] = { 6, 6, 7, 0, 5, 127, 60, 223, 13, 224 };
|
||||
/* h */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_104[] = { 6, 7, 7, 0, 7, 195, 15, 179, 207, 60, 192 };
|
||||
/* i */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_105[] = { 6, 7, 7, 0, 7, 48, 15, 12, 48, 207, 192 };
|
||||
/* j */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_106[] = { 6, 8, 7, 0, 7, 12, 3, 195, 12, 60, 222, 0 };
|
||||
/* k */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_107[] = { 6, 7, 7, 0, 7, 195, 13, 188, 243, 108, 192 };
|
||||
/* l */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_108[] = { 6, 7, 7, 0, 7, 240, 195, 12, 48, 207, 192 };
|
||||
/* m */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_109[] = { 7, 5, 8, 0, 5, 237, 175, 94, 60, 96 };
|
||||
/* n */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_110[] = { 6, 5, 7, 0, 5, 251, 60, 243, 204 };
|
||||
/* o */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_111[] = { 6, 5, 7, 0, 5, 123, 60, 243, 120 };
|
||||
/* p */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_112[] = { 6, 6, 7, 0, 5, 251, 60, 254, 195, 0 };
|
||||
/* q */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_113[] = { 6, 6, 7, 0, 5, 127, 60, 223, 12, 48 };
|
||||
/* r */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_114[] = { 6, 5, 7, 0, 5, 207, 126, 48, 192 };
|
||||
/* s */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_115[] = { 6, 5, 7, 0, 5, 123, 7, 131, 248 };
|
||||
/* t */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_116[] = { 5, 6, 7, 1, 6, 103, 216, 198, 28 };
|
||||
/* u */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_117[] = { 6, 5, 7, 0, 5, 207, 60, 243, 120 };
|
||||
/* v */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_118[] = { 6, 5, 7, 0, 5, 207, 60, 222, 48 };
|
||||
/* w */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_119[] = { 7, 5, 8, 0, 5, 199, 143, 94, 182, 192 };
|
||||
/* x */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_120[] = { 6, 5, 7, 0, 5, 205, 227, 30, 204 };
|
||||
/* y */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_121[] = { 6, 6, 7, 0, 5, 207, 60, 223, 13, 224 };
|
||||
/* z */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_122[] = { 6, 5, 7, 0, 5, 252, 99, 24, 252 };
|
||||
/* { */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_123[] = { 5, 7, 7, 1, 7, 59, 25, 134, 48, 224 };
|
||||
/* | */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_124[] = { 2, 7, 7, 2, 7, 255, 252 };
|
||||
/* } */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_125[] = { 5, 7, 7, 0, 7, 225, 140, 51, 27, 128 };
|
||||
/* ~ */ static const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_126[] = { 7, 2, 8, 0, 7, 119, 184 };
|
||||
|
||||
const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_nonprintable[] = { 6, 7, 7, 0, 7, 132, 207, 57, 207, 252, 255 };
|
||||
|
||||
const uint8_t * const Font_PixelOperatorMono8_Bold_8[126 + 1 - 32] = {
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_32,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_33,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_34,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_35,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_36,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_37,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_38,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_39,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_40,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_41,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_42,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_43,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_44,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_45,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_46,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_47,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_48,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_49,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_50,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_51,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_52,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_53,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_54,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_55,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_56,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_57,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_58,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_59,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_60,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_61,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_62,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_63,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_64,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_65,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_66,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_67,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_68,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_69,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_70,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_71,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_72,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_73,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_74,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_75,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_76,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_77,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_78,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_79,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_80,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_81,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_82,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_83,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_84,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_85,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_86,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_87,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_88,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_89,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_90,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_91,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_92,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_93,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_94,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_95,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_96,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_97,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_98,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_99,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_100,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_101,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_102,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_103,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_104,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_105,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_106,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_107,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_108,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_109,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_110,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_111,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_112,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_113,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_114,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_115,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_116,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_117,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_118,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_119,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_120,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_121,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_122,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_123,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_124,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_125,
|
||||
Font_PixelOperatorMono8_Bold_8_glyph_126,
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#if TREZOR_FONT_BPP != 1
|
||||
#error Wrong TREZOR_FONT_BPP (expected 1)
|
||||
#endif
|
||||
#define Font_PixelOperatorMono8_Bold_8_HEIGHT 8
|
||||
#define Font_PixelOperatorMono8_Bold_8_MAX_HEIGHT 8
|
||||
#define Font_PixelOperatorMono8_Bold_8_BASELINE 1
|
||||
extern const uint8_t* const Font_PixelOperatorMono8_Bold_8[126 + 1 - 32];
|
||||
extern const uint8_t Font_PixelOperatorMono8_Bold_8_glyph_nonprintable[];
|
@ -0,0 +1,203 @@
|
||||
#include <stdint.h>
|
||||
|
||||
// clang-format off
|
||||
|
||||
// - the first two bytes are width and height of the glyph
|
||||
// - the third, fourth and fifth bytes are advance, bearingX and bearingY of the horizontal metrics of the glyph
|
||||
// - the rest is packed 1-bit glyph data
|
||||
|
||||
/* */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_32[] = { 0, 0, 4, 0, 0 };
|
||||
/* ! */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_33[] = { 1, 5, 3, 0, 5, 248 };
|
||||
/* " */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_34[] = { 3, 2, 3, 0, 5, 180 };
|
||||
/* # */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_35[] = { 5, 5, 4, 0, 5, 83, 148, 229, 0 };
|
||||
/* $ */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_36[] = { 4, 8, 4, 0, 7, 4, 252, 125, 244, 0 };
|
||||
/* % */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_37[] = { 4, 5, 4, 0, 5, 206, 67, 0 };
|
||||
/* & */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_38[] = { 3, 5, 3, 0, 5, 243, 94 };
|
||||
/* ' */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_39[] = { 1, 2, 3, 0, 5, 192 };
|
||||
/* ( */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_40[] = { 2, 5, 3, 0, 5, 234, 64 };
|
||||
/* ) */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_41[] = { 2, 5, 4, 0, 5, 213, 128 };
|
||||
/* * */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_42[] = { 3, 4, 3, 0, 5, 91, 32 };
|
||||
/* + */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_43[] = { 3, 3, 4, 0, 4, 93, 0 };
|
||||
/* , */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_44[] = { 2, 2, 4, 0, 1, 80 };
|
||||
/* - */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_45[] = { 2, 1, 3, 0, 3, 192 };
|
||||
/* . */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_46[] = { 2, 1, 3, 0, 1, 0 };
|
||||
/* / */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_47[] = { 2, 5, 3, 0, 5, 86, 128 };
|
||||
/* 0 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_48[] = { 3, 5, 3, 0, 5, 247, 222 };
|
||||
/* 1 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_49[] = { 2, 5, 4, 0, 5, 117, 64 };
|
||||
/* 2 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_50[] = { 3, 5, 3, 0, 5, 229, 78 };
|
||||
/* 3 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_51[] = { 3, 5, 4, 0, 5, 229, 158 };
|
||||
/* 4 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_52[] = { 3, 5, 3, 0, 5, 63, 146 };
|
||||
/* 5 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_53[] = { 3, 5, 3, 0, 5, 248, 158 };
|
||||
/* 6 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_54[] = { 3, 5, 3, 0, 5, 243, 94 };
|
||||
/* 7 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_55[] = { 3, 5, 3, 0, 5, 229, 72 };
|
||||
/* 8 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_56[] = { 3, 5, 3, 0, 5, 247, 222 };
|
||||
/* 9 */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_57[] = { 3, 5, 3, 0, 5, 245, 158 };
|
||||
/* : */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_58[] = { 2, 4, 3, 0, 4, 0, 0 };
|
||||
/* ; */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_59[] = { 2, 5, 4, 0, 4, 65, 64 };
|
||||
/* < */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_60[] = { 3, 3, 3, 0, 4, 72, 0 };
|
||||
/* = */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_61[] = { 2, 2, 3, 0, 4, 240 };
|
||||
/* > */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_62[] = { 3, 3, 4, 0, 4, 72, 0 };
|
||||
/* ? */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_63[] = { 3, 5, 4, 0, 5, 229, 36 };
|
||||
/* @ */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_64[] = { 4, 5, 4, 0, 5, 255, 250, 96 };
|
||||
/* A */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_65[] = { 3, 5, 3, 0, 5, 247, 218 };
|
||||
/* B */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_66[] = { 3, 5, 3, 0, 5, 247, 222 };
|
||||
/* C */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_67[] = { 3, 5, 3, 0, 5, 242, 78 };
|
||||
/* D */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_68[] = { 3, 5, 3, 0, 5, 246, 222 };
|
||||
/* E */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_69[] = { 3, 5, 3, 0, 5, 243, 78 };
|
||||
/* F */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_70[] = { 3, 5, 3, 0, 5, 243, 72 };
|
||||
/* G */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_71[] = { 3, 5, 3, 0, 5, 242, 222 };
|
||||
/* H */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_72[] = { 3, 5, 3, 0, 5, 183, 218 };
|
||||
/* I */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_73[] = { 1, 5, 3, 0, 5, 248 };
|
||||
/* J */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_74[] = { 3, 5, 4, 0, 5, 36, 158 };
|
||||
/* K */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_75[] = { 3, 5, 3, 0, 5, 187, 74 };
|
||||
/* L */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_76[] = { 3, 5, 3, 0, 5, 146, 78 };
|
||||
/* M */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_77[] = { 4, 5, 4, 0, 5, 159, 153, 144 };
|
||||
/* N */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_78[] = { 3, 5, 3, 0, 5, 183, 218 };
|
||||
/* O */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_79[] = { 3, 5, 3, 0, 5, 246, 222 };
|
||||
/* P */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_80[] = { 3, 5, 3, 0, 5, 247, 72 };
|
||||
/* Q */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_81[] = { 3, 5, 3, 0, 5, 246, 250 };
|
||||
/* R */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_82[] = { 3, 5, 3, 0, 5, 247, 74 };
|
||||
/* S */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_83[] = { 3, 5, 3, 0, 5, 241, 30 };
|
||||
/* T */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_84[] = { 3, 5, 4, 0, 5, 233, 36 };
|
||||
/* U */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_85[] = { 3, 5, 3, 0, 5, 182, 222 };
|
||||
/* V */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_86[] = { 3, 5, 3, 0, 5, 182, 212 };
|
||||
/* W */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_87[] = { 4, 5, 4, 0, 5, 157, 221, 240 };
|
||||
/* X */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_88[] = { 3, 5, 3, 0, 5, 189, 90 };
|
||||
/* Y */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_89[] = { 3, 5, 3, 0, 5, 181, 36 };
|
||||
/* Z */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_90[] = { 3, 5, 3, 0, 5, 229, 78 };
|
||||
/* [ */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_91[] = { 2, 5, 3, 0, 5, 234, 192 };
|
||||
/* \ */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_92[] = { 2, 5, 3, 0, 5, 165, 64 };
|
||||
/* ] */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_93[] = { 2, 5, 4, 0, 5, 213, 192 };
|
||||
/* ^ */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_94[] = { 4, 2, 4, 0, 5, 96, 0 };
|
||||
/* _ */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_95[] = { 4, 1, 4, 0, 0, 96 };
|
||||
/* ` */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_96[] = { 2, 2, 3, 0, 6, 128 };
|
||||
/* a */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_97[] = { 3, 4, 3, 0, 4, 238, 240 };
|
||||
/* b */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_98[] = { 3, 5, 3, 0, 5, 158, 222 };
|
||||
/* c */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_99[] = { 3, 4, 3, 0, 4, 242, 112 };
|
||||
/* d */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_100[] = { 3, 5, 3, 0, 5, 62, 222 };
|
||||
/* e */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_101[] = { 3, 4, 3, 0, 4, 254, 112 };
|
||||
/* f */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_102[] = { 4, 5, 4, 0, 5, 102, 68, 64 };
|
||||
/* g */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_103[] = { 3, 5, 3, 0, 4, 247, 158 };
|
||||
/* h */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_104[] = { 3, 5, 3, 0, 5, 158, 218 };
|
||||
/* i */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_105[] = { 1, 5, 3, 0, 5, 248 };
|
||||
/* j */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_106[] = { 3, 6, 4, 0, 5, 36, 147, 192 };
|
||||
/* k */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_107[] = { 3, 5, 3, 0, 5, 151, 106 };
|
||||
/* l */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_108[] = { 1, 5, 3, 0, 5, 248 };
|
||||
/* m */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_109[] = { 4, 4, 4, 0, 4, 189, 217, 0 };
|
||||
/* n */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_110[] = { 3, 4, 3, 0, 4, 246, 208 };
|
||||
/* o */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_111[] = { 3, 4, 3, 0, 4, 246, 240 };
|
||||
/* p */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_112[] = { 3, 5, 3, 0, 4, 246, 248 };
|
||||
/* q */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_113[] = { 3, 5, 3, 0, 4, 246, 242 };
|
||||
/* r */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_114[] = { 3, 4, 3, 0, 4, 178, 64 };
|
||||
/* s */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_115[] = { 3, 4, 3, 0, 4, 252, 240 };
|
||||
/* t */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_116[] = { 4, 5, 4, 0, 5, 70, 68, 96 };
|
||||
/* u */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_117[] = { 3, 4, 3, 0, 4, 182, 240 };
|
||||
/* v */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_118[] = { 3, 4, 3, 0, 4, 182, 160 };
|
||||
/* w */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_119[] = { 4, 4, 4, 0, 4, 157, 219, 0 };
|
||||
/* x */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_120[] = { 3, 4, 3, 0, 4, 169, 80 };
|
||||
/* y */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_121[] = { 3, 5, 3, 0, 4, 183, 158 };
|
||||
/* z */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_122[] = { 3, 4, 3, 0, 4, 224, 112 };
|
||||
/* { */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_123[] = { 3, 5, 4, 0, 5, 105, 38 };
|
||||
/* | */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_124[] = { 1, 5, 3, 0, 5, 248 };
|
||||
/* } */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_125[] = { 3, 5, 4, 0, 5, 201, 44 };
|
||||
/* ~ */ static const uint8_t Font_PixelOperatorMono_Bold_8_glyph_126[] = { 4, 2, 4, 0, 6, 74, 0 };
|
||||
|
||||
const uint8_t Font_PixelOperatorMono_Bold_8_glyph_nonprintable[] = { 3, 5, 4, 0, 5, 26, 219 };
|
||||
|
||||
const uint8_t * const Font_PixelOperatorMono_Bold_8[126 + 1 - 32] = {
|
||||
Font_PixelOperatorMono_Bold_8_glyph_32,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_33,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_34,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_35,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_36,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_37,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_38,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_39,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_40,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_41,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_42,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_43,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_44,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_45,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_46,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_47,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_48,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_49,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_50,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_51,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_52,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_53,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_54,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_55,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_56,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_57,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_58,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_59,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_60,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_61,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_62,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_63,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_64,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_65,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_66,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_67,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_68,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_69,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_70,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_71,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_72,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_73,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_74,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_75,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_76,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_77,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_78,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_79,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_80,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_81,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_82,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_83,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_84,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_85,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_86,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_87,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_88,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_89,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_90,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_91,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_92,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_93,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_94,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_95,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_96,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_97,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_98,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_99,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_100,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_101,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_102,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_103,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_104,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_105,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_106,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_107,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_108,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_109,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_110,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_111,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_112,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_113,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_114,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_115,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_116,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_117,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_118,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_119,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_120,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_121,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_122,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_123,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_124,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_125,
|
||||
Font_PixelOperatorMono_Bold_8_glyph_126,
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#if TREZOR_FONT_BPP != 1
|
||||
#error Wrong TREZOR_FONT_BPP (expected 1)
|
||||
#endif
|
||||
#define Font_PixelOperatorMono_Bold_8_HEIGHT 8
|
||||
#define Font_PixelOperatorMono_Bold_8_MAX_HEIGHT 8
|
||||
#define Font_PixelOperatorMono_Bold_8_BASELINE 1
|
||||
extern const uint8_t* const Font_PixelOperatorMono_Bold_8[126 + 1 - 32];
|
||||
extern const uint8_t Font_PixelOperatorMono_Bold_8_glyph_nonprintable[];
|
@ -0,0 +1,93 @@
|
||||
use core::{convert::TryFrom, ops::Deref, ptr, slice, str};
|
||||
|
||||
use crate::ui::component::text::paragraphs::ParagraphStrType;
|
||||
|
||||
/// Represents an immutable UTF-8 string managed by MicroPython GC.
|
||||
/// This either means static data, or a valid GC object.
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// We assume that MicroPython is handling strings according to Python
|
||||
/// semantics, i.e., that string data is immutable.
|
||||
/// Furthermore, we assume that string data is always either static or a GC head
|
||||
/// pointer, i.e., we can never obtain a pointer into the middle of a GC string.
|
||||
///
|
||||
/// Given the above assumptions about MicroPython strings, working with
|
||||
/// StrBuffers in Rust is safe.
|
||||
///
|
||||
/// The `off` field represents offset from the `ptr` and allows us to do
|
||||
/// substring slices while keeping the head pointer as required by GC.
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct StrBuffer {
|
||||
ptr: *const u8,
|
||||
len: u16,
|
||||
off: u16,
|
||||
}
|
||||
|
||||
impl StrBuffer {
|
||||
pub fn empty() -> Self {
|
||||
Self::from("")
|
||||
}
|
||||
|
||||
fn as_bytes(&self) -> &[u8] {
|
||||
if self.ptr.is_null() {
|
||||
&[]
|
||||
} else {
|
||||
unsafe { slice::from_raw_parts(self.ptr.add(self.off.into()), self.len.into()) }
|
||||
}
|
||||
}
|
||||
|
||||
pub fn offset(&self, skip_bytes: usize) -> Self {
|
||||
let off: u16 = unwrap!(skip_bytes.try_into());
|
||||
assert!(off <= self.len);
|
||||
assert!(self.as_ref().is_char_boundary(skip_bytes));
|
||||
Self {
|
||||
ptr: self.ptr,
|
||||
// Does not overflow because `off <= self.len`.
|
||||
len: self.len - off,
|
||||
// `self.off + off` could only overflow if `self.off + self.len` could overflow, and
|
||||
// given that `off` only advances by as much as `len` decreases, that should not be
|
||||
// possible either.
|
||||
off: self.off + off,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for StrBuffer {
|
||||
fn default() -> Self {
|
||||
Self::empty()
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for StrBuffer {
|
||||
type Target = str;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
self.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRef<str> for StrBuffer {
|
||||
fn as_ref(&self) -> &str {
|
||||
// SAFETY:
|
||||
// - If constructed from a Rust `&str`, this is safe.
|
||||
unsafe { str::from_utf8_unchecked(self.as_bytes()) }
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&'static str> for StrBuffer {
|
||||
fn from(val: &'static str) -> Self {
|
||||
Self {
|
||||
ptr: val.as_ptr(),
|
||||
len: unwrap!(val.len().try_into()),
|
||||
off: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ParagraphStrType for StrBuffer {
|
||||
fn skip_prefix(&self, chars: usize) -> Self {
|
||||
self.offset(chars)
|
||||
}
|
||||
}
|
@ -0,0 +1,152 @@
|
||||
use crate::ui::{
|
||||
component::{
|
||||
text::paragraphs::{ParagraphVecShort, Paragraphs},
|
||||
Child, Component, ComponentExt, Event, EventCtx, Pad,
|
||||
},
|
||||
display,
|
||||
display::{Color, Font},
|
||||
geometry::{Point, Rect},
|
||||
model_tr::{
|
||||
bootloader::theme::WHITE,
|
||||
component::{ButtonController, ButtonControllerMsg, ButtonLayout, ButtonPos},
|
||||
constant::{HEIGHT, WIDTH},
|
||||
},
|
||||
};
|
||||
|
||||
use super::ReturnToC;
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub enum ConfirmSeedMsg {
|
||||
Cancel = 1,
|
||||
Confirm = 2,
|
||||
}
|
||||
|
||||
impl ReturnToC for ConfirmSeedMsg {
|
||||
fn return_to_c(self) -> u32 {
|
||||
self as u32
|
||||
}
|
||||
}
|
||||
|
||||
pub struct ConfirmSeed<'a> {
|
||||
bg: Pad,
|
||||
bg_color: Color,
|
||||
label: &'static str,
|
||||
message: Child<Paragraphs<ParagraphVecShort<&'a str>>>,
|
||||
message2: Child<Paragraphs<ParagraphVecShort<&'a str>>>,
|
||||
buttons: ButtonController,
|
||||
buttons2: ButtonController,
|
||||
confirm_left: bool,
|
||||
page: i16,
|
||||
}
|
||||
|
||||
impl<'a> ConfirmSeed<'a> {
|
||||
pub fn new(
|
||||
bg_color: Color,
|
||||
label: &'static str,
|
||||
message: Paragraphs<ParagraphVecShort<&'a str>>,
|
||||
message2: Paragraphs<ParagraphVecShort<&'a str>>,
|
||||
text: &'static str,
|
||||
confirm_left: bool,
|
||||
) -> Self {
|
||||
let mut instance = Self {
|
||||
bg: Pad::with_background(bg_color),
|
||||
bg_color,
|
||||
label,
|
||||
message: Child::new(message),
|
||||
message2: Child::new(message2),
|
||||
buttons: ButtonController::new(ButtonLayout::cancel_none_arrow()),
|
||||
buttons2: ButtonController::new(ButtonLayout::up_and_text(text.into())),
|
||||
confirm_left,
|
||||
page: 0,
|
||||
};
|
||||
instance.bg.clear();
|
||||
instance
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Component for ConfirmSeed<'a> {
|
||||
type Msg = ConfirmSeedMsg;
|
||||
|
||||
fn place(&mut self, bounds: Rect) -> Rect {
|
||||
self.bg
|
||||
.place(Rect::new(Point::new(0, 0), Point::new(WIDTH, HEIGHT)));
|
||||
self.message
|
||||
.place(Rect::new(Point::new(0, 9), Point::new(128, 54)));
|
||||
self.message2
|
||||
.place(Rect::new(Point::new(0, 9), Point::new(128, 54)));
|
||||
|
||||
let button_area = bounds.split_bottom(12).1;
|
||||
self.buttons.place(button_area);
|
||||
self.buttons2.place(button_area);
|
||||
|
||||
bounds
|
||||
}
|
||||
|
||||
fn event(&mut self, ctx: &mut EventCtx, event: Event) -> Option<Self::Msg> {
|
||||
if self.page == 0 {
|
||||
match self.buttons.event(ctx, event) {
|
||||
Some(ButtonControllerMsg::Triggered(ButtonPos::Left)) => {
|
||||
Some(ConfirmSeedMsg::Cancel)
|
||||
}
|
||||
Some(ButtonControllerMsg::Triggered(ButtonPos::Right)) => {
|
||||
self.page = 1;
|
||||
ctx.request_paint();
|
||||
self.message2.request_complete_repaint(ctx);
|
||||
self.buttons2.request_complete_repaint(ctx);
|
||||
self.bg.clear();
|
||||
None
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
} else {
|
||||
match self.buttons2.event(ctx, event) {
|
||||
Some(ButtonControllerMsg::Triggered(ButtonPos::Left)) => {
|
||||
self.page = 0;
|
||||
ctx.request_paint();
|
||||
self.message.request_complete_repaint(ctx);
|
||||
self.buttons.request_complete_repaint(ctx);
|
||||
self.bg.clear();
|
||||
None
|
||||
}
|
||||
Some(ButtonControllerMsg::Triggered(ButtonPos::Right)) => {
|
||||
Some(ConfirmSeedMsg::Confirm)
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
// if let Some(Clicked) = self.left.event(ctx, event) {
|
||||
// return if self.confirm_left {
|
||||
// Some(Self::Msg::Confirm)
|
||||
// } else {
|
||||
// Some(Self::Msg::Cancel)
|
||||
// };
|
||||
// };
|
||||
// if let Some(Clicked) = self.right.event(ctx, event) {
|
||||
// return if self.confirm_left {
|
||||
// Some(Self::Msg::Cancel)
|
||||
// } else {
|
||||
// Some(Self::Msg::Confirm)
|
||||
// };
|
||||
// };
|
||||
//None
|
||||
}
|
||||
|
||||
fn paint(&mut self) {
|
||||
self.bg.paint();
|
||||
|
||||
display::text_top_left(Point::zero(), self.label, Font::BOLD, WHITE, self.bg_color);
|
||||
|
||||
if self.page == 0 {
|
||||
self.message.paint();
|
||||
self.buttons.paint();
|
||||
} else {
|
||||
self.message2.paint();
|
||||
self.buttons2.paint();
|
||||
}
|
||||
}
|
||||
|
||||
fn bounds(&self, sink: &mut dyn FnMut(Rect)) {
|
||||
self.buttons.bounds(sink);
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue