shithub: purgatorio

ref: 75c92428225428c8fde2d015f010e608a0b12f1d
dir: /os/boot/mpc/defont0.c/

View raw version
#include <u.h>
#include <libc.h>
#include <libg.h>
#include <gnot.h>



static ulong bits0[] = {
 0x907070f0,  0xf0f07000,  0xf0888888,  0xf8707070,  0xe0e0e0e0,  0xe09070f0,  0x70f870f0,  0xf870f088, 
 0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000, 
 0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000, 
 0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x000000e0, 
 0xd0808080,  0x80808800,  0x8888c888,  0x80888888,  0x90909090,  0x90d08080,  0x80808080,  0x80888888, 
 0x00000000,  0x08000000,  0x0c300000,  0x00000006,  0x00000000,  0x00000000,  0x00000000,  0x00000000, 
 0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x0000003c,  0xc03c0000, 
 0x00006000,  0x06001e00,  0x60181860,  0x78000000,  0x00000000,  0x00000000,  0x0000001c,  0x18380090, 
 0xb06060e0,  0xe0e0f800,  0xf088a888,  0x80808080,  0x90909090,  0x90b060e0,  0x808060e0,  0x80808888, 
 0x00182428,  0x3e707018,  0x18180000,  0x00000006,  0x3c183c3c,  0x1c3e3c7e,  0x3c3c0000,  0x0200403c, 
 0x3c187c1e,  0x787e7e1e,  0x663c7c66,  0x6066623c,  0x7c3c7c3c,  0x7e6266c2,  0x66667e30,  0xc00c1000, 
 0x08006000,  0x06003000,  0x60181860,  0x18000000,  0x00000000,  0x10000000,  0x00000030,  0x180c0090, 
 0x90101080,  0x80808818,  0x88f8a888,  0xe0807070,  0xe0e0e0e0,  0xe0901080,  0x70e01080,  0xe098f088, 
 0x00182428,  0x6adad818,  0x18181000,  0x0000000c,  0x66386666,  0x2c3e667e,  0x66660000,  0x06006066, 
 0x42186632,  0x6c606032,  0x66181864,  0x60667224,  0x66246666,  0x186262da,  0x62620630,  0x600c3800, 
 0x10006000,  0x06003000,  0x60000060,  0x18000000,  0x00000000,  0x30000000,  0x00000030,  0x180c00e0, 
 0x00e0e0f0,  0xf0f00018,  0x88889850,  0x80880808,  0x201c1c1c,  0x1c00e0f0,  0x0080e0f0,  0x80888888, 
 0x00182428,  0x68dad808,  0x300c5418,  0x0000000c,  0x66580606,  0x2c206002,  0x66661818,  0x0cfe3006, 
 0x9e2c6660,  0x66606060,  0x6618186c,  0x60667266,  0x66666660,  0x186262da,  0x36660c30,  0x600c2800, 
 0x103c6c3c,  0x3e3c7e3e,  0x6c787866,  0x18d46c3c,  0x6c3e763c,  0x7e6666c2,  0x66667e18,  0x18180000, 
 0x44180000,  0x18241c24,  0xf0888820,  0x8070f0f0,  0x20202020,  0x201c243e,  0x1cf8241c,  0x80708870, 
 0x0018247c,  0x78745008,  0x300c3818,  0x00000018,  0x66180606,  0x4c206006,  0x76661818,  0x18fe180c, 
 0xb62c6660,  0x66606060,  0x66181868,  0x607e5a66,  0x66666470,  0x186266da,  0x34340c30,  0x300c6c00, 
 0x18667666,  0x66663066,  0x76181864,  0x18fe7666,  0x76663666,  0x306662da,  0x62620608,  0x1810323c, 
 0x44247c7c,  0x24342042,  0x00000000,  0x00000000,  0x20202020,  0x20222408,  0x22002420,  0x00000000, 
 0x00180028,  0x3c287610,  0x300cee7e,  0x00fe0018,  0x66180c18,  0x4c3c7c0c,  0x3c3e0000,  0x30000c18, 
 0xb62c7c60,  0x667c7c6e,  0x7e181878,  0x605a5a66,  0x6466783c,  0x186234da,  0x18341830,  0x300c4400, 
 0x18066660,  0x66663066,  0x66181868,  0x18d66666,  0x66663860,  0x306662da,  0x34620c30,  0x180c5a20, 
 0x44241010,  0x242c2042,  0x0e3e103e,  0x3e3c1c3e,  0x3c1c1c1c,  0x1c3e1c08,  0x3e222418,  0x0e0e0e0e, 
 0x0008007c,  0x1e5cdc00,  0x300c387e,  0x00fe0030,  0x66181806,  0x7e066618,  0x6e060000,  0x18001818, 
 0xb67e6660,  0x66606066,  0x6618186c,  0x605a4e66,  0x78666c0e,  0x1862346c,  0x2c183030,  0x180c4400, 
 0x003e6660,  0x667e3066,  0x66181878,  0x18d66666,  0x6666303c,  0x306634da,  0x18341808,  0x18104c38, 
 0x3c181010,  0x18241c42,  0x11081008,  0x20222208,  0x00000000,  0x00220408,  0x22361804,  0x11111111, 
 0x00000028,  0x16b6cc00,  0x300c5418,  0x00000030,  0x66183006,  0x7e066618,  0x66060000,  0x0cfe3000, 
 0x9a466660,  0x66606066,  0x6618186c,  0x605a4e66,  0x60666606,  0x1862346c,  0x6c183030,  0x180c0000, 
 0x00666660,  0x66603066,  0x6618186c,  0x18d66666,  0x66663006,  0x3066346c,  0x2c343018,  0x18180020, 
 0x00091010,  0x000e0942,  0x10081008,  0x20222208,  0x0f06060f,  0x0a09041e,  0x002a0e38,  0x10101010, 
 0x00180028,  0x56b6cc00,  0x300c1018,  0x18001860,  0x66187e66,  0x0c666630,  0x66661818,  0x06fe6018, 
 0x40466632,  0x6c606036,  0x66181866,  0x605a4624,  0x60246666,  0x1834186c,  0x46186030,  0x0c0c0000, 
 0x006e6666,  0x6e66306e,  0x66181866,  0x18d66666,  0x666e3066,  0x306e186c,  0x46186030,  0x180c003c, 
 0x08090909,  0x1f110aff,  0x0e081008,  0x382c2208,  0x08020901,  0x0a0a0911,  0x09220907,  0x0e0e0e0e, 
 0x00180028,  0x7c1c7600,  0x18180000,  0x18001860,  0x3c7e7e3c,  0x0c3c3c30,  0x3c3c1818,  0x02004018, 
 0x3e467c1e,  0x787e601e,  0x663c1866,  0x7e42463c,  0x603c663c,  0x1818186c,  0x66187e30,  0x0c0c0000, 
 0x00367c3c,  0x363c7c36,  0x667e1866,  0x7ed6663c,  0x7c367c3c,  0x1e36186c,  0x66187e30,  0x180c0008, 
 0x080f0606,  0x04110c18,  0x01081008,  0x20222208,  0x0e020203,  0x0a0c0d1e,  0x0d220e08,  0x01010101, 
 0x00000000,  0x10000000,  0x18180000,  0x080000c0,  0x00000000,  0x00000000,  0x00000008,  0x00000000, 
 0x00000000,  0x00000000,  0x00001800,  0x00000000,  0x000c0000,  0x00000000,  0x00000030,  0x060c00fe, 
 0x00000000,  0x00000006,  0x00001800,  0x00000000,  0x60060000,  0x00000000,  0x0010001c,  0x18380008, 
 0x08090606,  0x040e0a18,  0x11081f08,  0x20221c3e,  0x08020401,  0x0f0a0b11,  0x0b220908,  0x11111111, 
 0x00000000,  0x00000000,  0x0c300000,  0x080000c0,  0x00000000,  0x00000000,  0x00000008,  0x00000000, 
 0x00000000,  0x00000000,  0x00007000,  0x00000000,  0x00060000,  0x00000000,  0x0000003c,  0x063c0000, 
 0x00000000,  0x00000066,  0x00001800,  0x00000000,  0x60060000,  0x00000000,  0x00300000,  0x00000008, 
 0x0f090909,  0x04030900,  0x0e000000,  0x00000000,  0x0f0f0f0f,  0x0209091e,  0x09000f07,  0x0e0e0e0e, 
 0x00000000,  0x00000000,  0x00000000,  0x10000000,  0x00000000,  0x00000000,  0x00000010,  0x00000000, 
 0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000,  0x00000000, 
 0x00000000,  0x0000003c,  0x00007000,  0x00000000,  0x60060000,  0x00000000,  0x00600000,  0x0000000f, 

};

static GBitmap strike0 = {
	bits0,
	0,
	32,
	0,
	{0, 0, 1024, 14},
	{0, 0, 1024, 14},
};

static Fontchar info0[] = {
	{ 0, 0, 14, 0, 8 },
	{ 8, 0, 14, 0, 8 },
	{ 16, 0, 14, 0, 8 },
	{ 24, 0, 14, 0, 8 },
	{ 32, 0, 14, 0, 8 },
	{ 40, 0, 14, 0, 8 },
	{ 48, 0, 14, 0, 8 },
	{ 56, 0, 14, 0, 8 },
	{ 64, 0, 14, 0, 8 },
	{ 72, 0, 14, 0, 8 },
	{ 80, 0, 14, 0, 8 },
	{ 88, 0, 14, 0, 8 },
	{ 96, 0, 14, 0, 8 },
	{ 104, 0, 14, 0, 8 },
	{ 112, 0, 14, 0, 8 },
	{ 120, 0, 14, 0, 8 },
	{ 128, 0, 14, 0, 8 },
	{ 136, 0, 14, 0, 8 },
	{ 144, 0, 14, 0, 8 },
	{ 152, 0, 14, 0, 8 },
	{ 160, 0, 14, 0, 8 },
	{ 168, 0, 14, 0, 8 },
	{ 176, 0, 14, 0, 8 },
	{ 184, 0, 14, 0, 8 },
	{ 192, 0, 14, 0, 8 },
	{ 200, 0, 14, 0, 8 },
	{ 208, 0, 14, 0, 8 },
	{ 216, 0, 14, 0, 8 },
	{ 224, 0, 14, 0, 8 },
	{ 232, 0, 14, 0, 8 },
	{ 240, 0, 14, 0, 8 },
	{ 248, 0, 14, 0, 8 },
	{ 256, 0, 0, 0, 8 },
	{ 264, 2, 11, 0, 8 },
	{ 272, 2, 6, 0, 8 },
	{ 280, 2, 11, 0, 8 },
	{ 288, 1, 12, 0, 8 },
	{ 296, 2, 11, 0, 8 },
	{ 304, 2, 11, 0, 8 },
	{ 312, 2, 7, 0, 8 },
	{ 320, 1, 13, 0, 8 },
	{ 328, 1, 13, 0, 8 },
	{ 336, 3, 10, 0, 8 },
	{ 344, 4, 10, 0, 8 },
	{ 352, 9, 14, 0, 8 },
	{ 360, 6, 8, 0, 8 },
	{ 368, 9, 11, 0, 8 },
	{ 376, 1, 13, 0, 8 },
	{ 384, 2, 11, 0, 8 },
	{ 392, 2, 11, 0, 8 },
	{ 400, 2, 11, 0, 8 },
	{ 408, 2, 11, 0, 8 },
	{ 416, 2, 11, 0, 8 },
	{ 424, 2, 11, 0, 8 },
	{ 432, 2, 11, 0, 8 },
	{ 440, 2, 11, 0, 8 },
	{ 448, 2, 11, 0, 8 },
	{ 456, 2, 11, 0, 8 },
	{ 464, 4, 11, 0, 8 },
	{ 472, 4, 14, 0, 8 },
	{ 480, 2, 11, 0, 8 },
	{ 488, 4, 10, 0, 8 },
	{ 496, 2, 11, 0, 8 },
	{ 504, 2, 11, 0, 8 },
	{ 512, 2, 11, 0, 8 },
	{ 520, 2, 11, 0, 8 },
	{ 528, 2, 11, 0, 8 },
	{ 536, 2, 11, 0, 8 },
	{ 544, 2, 11, 0, 8 },
	{ 552, 2, 11, 0, 8 },
	{ 560, 2, 11, 0, 8 },
	{ 568, 2, 11, 0, 8 },
	{ 576, 2, 11, 0, 8 },
	{ 584, 2, 11, 0, 8 },
	{ 592, 2, 13, 0, 8 },
	{ 600, 2, 11, 0, 8 },
	{ 608, 2, 11, 0, 8 },
	{ 616, 2, 11, 0, 8 },
	{ 624, 2, 11, 0, 8 },
	{ 632, 2, 11, 0, 8 },
	{ 640, 2, 11, 0, 8 },
	{ 648, 2, 13, 0, 8 },
	{ 656, 2, 11, 0, 8 },
	{ 664, 2, 11, 0, 8 },
	{ 672, 2, 11, 0, 8 },
	{ 680, 2, 11, 0, 8 },
	{ 688, 2, 11, 0, 8 },
	{ 696, 2, 11, 0, 8 },
	{ 704, 2, 11, 0, 8 },
	{ 712, 2, 11, 0, 8 },
	{ 720, 2, 11, 0, 8 },
	{ 728, 1, 13, 0, 8 },
	{ 736, 1, 13, 0, 8 },
	{ 744, 1, 13, 0, 8 },
	{ 752, 2, 8, 0, 8 },
	{ 760, 11, 12, 0, 8 },
	{ 768, 2, 7, 0, 8 },
	{ 776, 4, 11, 0, 8 },
	{ 784, 1, 11, 0, 8 },
	{ 792, 4, 11, 0, 8 },
	{ 800, 1, 11, 0, 8 },
	{ 808, 4, 11, 0, 8 },
	{ 816, 1, 11, 0, 8 },
	{ 824, 4, 14, 0, 8 },
	{ 832, 1, 11, 0, 8 },
	{ 840, 1, 11, 0, 8 },
	{ 848, 1, 14, 0, 8 },
	{ 856, 1, 11, 0, 8 },
	{ 864, 1, 11, 0, 8 },
	{ 872, 4, 11, 0, 8 },
	{ 880, 4, 11, 0, 8 },
	{ 888, 4, 11, 0, 8 },
	{ 896, 4, 14, 0, 8 },
	{ 904, 4, 14, 0, 8 },
	{ 912, 4, 11, 0, 8 },
	{ 920, 4, 11, 0, 8 },
	{ 928, 2, 11, 0, 8 },
	{ 936, 4, 11, 0, 8 },
	{ 944, 4, 11, 0, 8 },
	{ 952, 4, 11, 0, 8 },
	{ 960, 4, 11, 0, 8 },
	{ 968, 4, 14, 0, 8 },
	{ 976, 4, 11, 0, 8 },
	{ 984, 1, 12, 0, 8 },
	{ 992, 1, 12, 0, 8 },
	{ 1000, 1, 12, 0, 8 },
	{ 1008, 5, 8, 0, 8 },
	{ 1016, 0, 14, 0, 8 },
	{ 1024, 0, 14, 0, 8 },
	{ 0, 0, 0, 0, 0 }
};

GSubfont defont0 = {
	129,
	14,
	2,
	info0,
	&strike0,
};