If using a CP437 font (assumed to be any font lacking Unicode info) in a wide build, we need Unicode info to convert U+(point) to a CP437 glyph number.

pull/221/head
Bill-Gray
parent e73cae9b2c
commit 569d1a2db1
No known key found for this signature in database
GPG Key ID: F697AF32016DA539

@ -1,706 +0,0 @@
/* Converted from Lat2-VGA16.psf into an array, using mk_array.c.
This is a passable 8x16 font for wide-character builds. See
../dosvga/font.h for the equivalent CP437 font for non-wide builds.
Note that you can turn _any_ PSF1 or PSF2 font with a Unicode table
into a C array, replace the following with your new array (with size
correctly adjusted), recompile, and have your new font built in.
Or you can set PSF_FONT=(font file name) to get a desired font. */
static const unsigned char font_bytes[5558] = {
0x36, 0x04, 0x02, 0x10, 0x00, 0x00, 0x3c, 0x42,
0x99, 0xa5, 0xa1, 0xa1, 0xa5, 0x99, 0x42, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdb, 0xdb,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf1, 0x5b,
0x55, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x10, 0x38, 0x7c, 0xfe, 0x7c, 0x38, 0x10, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcc, 0xcf,
0xed, 0xff, 0xfc, 0xdf, 0xcc, 0xcc, 0xcc, 0xcc,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x66, 0x3c, 0x66, 0x66, 0x66, 0x3c, 0x66, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x18, 0x3c, 0x3c, 0x18, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x6c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x44,
0xba, 0xb2, 0xaa, 0x44, 0x38, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x18, 0x0c, 0x38, 0x00, 0x0c, 0x18, 0x00, 0x10,
0x38, 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c, 0x10,
0x38, 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x6c, 0x00, 0xfe,
0x66, 0x62, 0x68, 0x78, 0x68, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0x3c,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x18, 0x3c, 0x42, 0x3c,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0x7c,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x44, 0x7c,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xdb,
0xdb, 0xdb, 0x7b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b,
0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6, 0x60,
0x38, 0x6c, 0xc6, 0xc6, 0x6c, 0x38, 0x0c, 0xc6,
0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x66, 0x3c, 0x18, 0x3c, 0x66, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3c,
0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x7e, 0x3c, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x0c, 0x06, 0xff, 0x06, 0x0c, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x30, 0x60, 0xff, 0x60, 0x30, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0x66,
0x66, 0x66, 0x3c, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7e,
0x06, 0x0c, 0xf8, 0x00, 0x6c, 0x38, 0x00, 0x10,
0x38, 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38,
0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3c,
0x3c, 0x3c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66,
0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c,
0x6c, 0xfe, 0x6c, 0x6c, 0x6c, 0xfe, 0x6c, 0x6c,
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x7c, 0xc6,
0xc2, 0xc0, 0x7c, 0x06, 0x06, 0x86, 0xc6, 0x7c,
0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xc2, 0xc6, 0x0c, 0x18, 0x30, 0x60, 0xc6, 0x86,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c,
0x6c, 0x38, 0x76, 0xdc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x30,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x18, 0x0c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x18,
0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x18, 0x30,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x66, 0x3c, 0xff, 0x3c, 0x66, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x18, 0x18, 0x7e, 0x18, 0x18, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18,
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0x80,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c,
0xc6, 0xc6, 0xd6, 0xd6, 0xc6, 0xc6, 0x6c, 0x38,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x38,
0x78, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x7e,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0x06, 0x06, 0x3c, 0x06, 0x06, 0x06, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x1c,
0x3c, 0x6c, 0xcc, 0xfe, 0x0c, 0x0c, 0x0c, 0x1e,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xc0,
0xc0, 0xc0, 0xfc, 0x06, 0x06, 0x06, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x60,
0xc0, 0xc0, 0xfc, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xc6,
0x06, 0x06, 0x0c, 0x18, 0x30, 0x30, 0x30, 0x30,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0xc6, 0xc6, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0xc6, 0xc6, 0x7e, 0x06, 0x06, 0x06, 0x0c, 0x78,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x18, 0x18, 0x00, 0x00, 0x00, 0x18, 0x18, 0x30,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06,
0x0c, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0c, 0x06,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7e, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60,
0x30, 0x18, 0x0c, 0x06, 0x0c, 0x18, 0x30, 0x60,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0xc6, 0x0c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c,
0xc6, 0xc6, 0xde, 0xde, 0xde, 0xdc, 0xc0, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38,
0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x66,
0x66, 0x66, 0x7c, 0x66, 0x66, 0x66, 0x66, 0xfc,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66,
0xc2, 0xc0, 0xc0, 0xc0, 0xc0, 0xc2, 0x66, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x6c,
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x6c, 0xf8,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x66,
0x62, 0x68, 0x78, 0x68, 0x60, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x66,
0x62, 0x68, 0x78, 0x68, 0x60, 0x60, 0x60, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x66,
0xc2, 0xc0, 0xc0, 0xde, 0xc6, 0xc6, 0x66, 0x3a,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xc6,
0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x0c,
0x0c, 0x0c, 0x0c, 0x0c, 0xcc, 0xcc, 0xcc, 0x78,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x66,
0x66, 0x6c, 0x78, 0x78, 0x6c, 0x66, 0x66, 0xe6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x60,
0x60, 0x60, 0x60, 0x60, 0x60, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xee,
0xfe, 0xfe, 0xd6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xe6,
0xf6, 0xfe, 0xde, 0xce, 0xc6, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x66,
0x66, 0x66, 0x7c, 0x60, 0x60, 0x60, 0x60, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xd6, 0xde, 0x7c,
0x0c, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x66,
0x66, 0x66, 0x7c, 0x6c, 0x66, 0x66, 0x66, 0xe6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0xc6, 0x60, 0x38, 0x0c, 0x06, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x7e,
0x5a, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x6c, 0x38, 0x10,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xc6,
0xc6, 0xc6, 0xd6, 0xd6, 0xd6, 0xfe, 0xee, 0x6c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0xc6,
0x6c, 0x7c, 0x38, 0x38, 0x7c, 0x6c, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66,
0x66, 0x66, 0x3c, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xc6,
0x86, 0x0c, 0x18, 0x30, 0x60, 0xc2, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x30,
0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
0xc0, 0xe0, 0x70, 0x38, 0x1c, 0x0e, 0x06, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x0c,
0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xff, 0x00, 0x00, 0x30, 0x30, 0x18, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x60,
0x60, 0x78, 0x6c, 0x66, 0x66, 0x66, 0x66, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0xc0, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x0c,
0x0c, 0x3c, 0x6c, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c,
0x64, 0x60, 0xf0, 0x60, 0x60, 0x60, 0x60, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x76, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x7c,
0x0c, 0xcc, 0x78, 0x00, 0x00, 0x00, 0xe0, 0x60,
0x60, 0x6c, 0x76, 0x66, 0x66, 0x66, 0x66, 0xe6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06,
0x00, 0x0e, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
0x66, 0x66, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x60,
0x60, 0x66, 0x6c, 0x78, 0x78, 0x6c, 0x66, 0xe6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xec, 0xfe, 0xd6, 0xd6, 0xd6, 0xd6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xdc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xdc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7c,
0x60, 0x60, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x76, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x7c,
0x0c, 0x0c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xdc, 0x76, 0x66, 0x60, 0x60, 0x60, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x30,
0x30, 0xfc, 0x30, 0x30, 0x30, 0x30, 0x36, 0x1c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3c, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xc6, 0xc6, 0xd6, 0xd6, 0xd6, 0xfe, 0x6c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xc6, 0x6c, 0x38, 0x38, 0x38, 0x6c, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7e,
0x06, 0x0c, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xfe, 0xcc, 0x18, 0x30, 0x60, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x18,
0x18, 0x18, 0x70, 0x18, 0x18, 0x18, 0x18, 0x0e,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x18,
0x18, 0x18, 0x0e, 0x18, 0x18, 0x18, 0x18, 0x70,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xdc,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38,
0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6, 0xc6,
0x0c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x3c, 0x66,
0xc2, 0xc0, 0xc0, 0xc0, 0xc0, 0xc2, 0x66, 0x3c,
0x18, 0x0c, 0x38, 0x00, 0x00, 0x00, 0xcc, 0xcc,
0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c,
0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x6c,
0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30,
0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76,
0x0c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0xc0, 0xc0, 0xc0, 0xc6, 0x7c,
0x18, 0x0c, 0x38, 0x00, 0x0c, 0x18, 0x00, 0x3c,
0x66, 0xc2, 0xc0, 0xc0, 0xc0, 0xc2, 0x66, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x6c,
0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x30,
0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0x7c, 0xc6, 0xc0, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c,
0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0x3c,
0x66, 0xc2, 0xc0, 0xc0, 0xc0, 0xc2, 0x66, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x6c, 0x00, 0x10,
0x38, 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10,
0x00, 0x7c, 0xc6, 0xc0, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0xfe,
0x66, 0x62, 0x68, 0x78, 0x68, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0xf8,
0x6c, 0x66, 0x66, 0x66, 0x66, 0x66, 0x6c, 0xf8,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0x0c,
0x0c, 0x3c, 0x6c, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x38, 0x6c,
0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x6c,
0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x6c,
0x66, 0x66, 0xf6, 0x66, 0x66, 0x66, 0x6c, 0xf8,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x3e,
0x0c, 0x3c, 0x6c, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe,
0x66, 0x62, 0x68, 0x78, 0x68, 0x62, 0x66, 0xfe,
0x18, 0x30, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c,
0x30, 0x60, 0x38, 0x00, 0x6c, 0x6c, 0x00, 0x7c,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x6c, 0x00, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0xfe,
0x66, 0x62, 0x68, 0x78, 0x68, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, 0x64,
0x60, 0xf0, 0x60, 0x60, 0x60, 0x60, 0xe6, 0xfc,
0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10,
0x00, 0x7c, 0xc6, 0xfe, 0xc0, 0xc0, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x18, 0x30, 0x00, 0xf0,
0x60, 0x60, 0x60, 0x60, 0x60, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0x38,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x30,
0x00, 0x78, 0x0c, 0x7c, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0x38, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x30,
0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xdc,
0x00, 0xdc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x00, 0x00, 0x00, 0x00, 0x76, 0xdc, 0x00, 0xc6,
0xe6, 0xf6, 0xfe, 0xde, 0xce, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0xf0,
0x60, 0x60, 0x60, 0x60, 0x60, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0x38,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30,
0x00, 0x30, 0x30, 0x60, 0xc0, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x60,
0x60, 0x60, 0x78, 0xe0, 0x60, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xfe, 0x06, 0x06, 0x06, 0x06, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x18,
0x18, 0x18, 0x1e, 0x78, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0xc6,
0xe6, 0xf6, 0xfe, 0xde, 0xce, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x00, 0x18, 0x18, 0x18, 0x3c, 0x3c, 0x3c, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x6c, 0xd8, 0x6c, 0x36, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xd8, 0x6c, 0x36, 0x6c, 0xd8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x11, 0x44, 0x11, 0x44,
0x11, 0x44, 0x11, 0x44, 0x11, 0x44, 0x11, 0x44,
0x11, 0x44, 0x11, 0x44, 0x55, 0xaa, 0x55, 0xaa,
0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa,
0x55, 0xaa, 0x55, 0xaa, 0x00, 0x00, 0x0c, 0x18,
0x00, 0xdc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0xf8, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x6c, 0x38, 0x10, 0xc6,
0xe6, 0xf6, 0xfe, 0xde, 0xce, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10,
0x00, 0xdc, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x00, 0x00, 0x00, 0x00, 0x66, 0xcc, 0x00, 0x7c,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0xcc,
0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0xfc,
0x66, 0x66, 0x66, 0x7c, 0x6c, 0x66, 0x66, 0xe6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0xdc, 0x76, 0x66, 0x60, 0x60, 0x60, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0xfc,
0x66, 0x66, 0x66, 0x7c, 0x6c, 0x66, 0x66, 0xe6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10,
0x00, 0xdc, 0x76, 0x66, 0x60, 0x60, 0x60, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0x7c,
0xc6, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0x7c, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf8, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x1f, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0xff, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x1f, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0xff, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x00, 0x7c,
0xc6, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0xc6, 0x7c,
0x18, 0x0c, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0x7c,
0x18, 0x0c, 0x38, 0x00, 0x6c, 0x38, 0x10, 0x7c,
0xc6, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10,
0x00, 0x7c, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x7e,
0x5a, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x18, 0x0c, 0x38, 0x00, 0x00, 0x00, 0x10, 0x30,
0x30, 0xfc, 0x30, 0x30, 0x30, 0x30, 0x36, 0x1c,
0x18, 0x0c, 0x38, 0x00, 0x6c, 0x38, 0x10, 0x7e,
0x7e, 0x5a, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0x10,
0x30, 0xfc, 0x30, 0x30, 0x30, 0x30, 0x36, 0x1c,
0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x36, 0x36,
0x36, 0x36, 0xf7, 0x00, 0xf7, 0x36, 0x36, 0x36,
0x36, 0x36, 0x36, 0x36, 0x38, 0x6c, 0x38, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, 0x38,
0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x66, 0xcc, 0x00, 0xc6,
0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0xcc,
0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x76,
0x00, 0x00, 0x00, 0x00, 0x0c, 0x18, 0x00, 0xfe,
0xc6, 0x8c, 0x18, 0x30, 0x60, 0xc2, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x18,
0x00, 0xfe, 0xcc, 0x18, 0x30, 0x60, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x00, 0xfe,
0xc6, 0x8c, 0x18, 0x30, 0x60, 0xc2, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x00, 0xfe, 0xcc, 0x18, 0x30, 0x60, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10, 0xfe,
0xc6, 0x8c, 0x18, 0x30, 0x60, 0xc2, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0xff, 0x18, 0xff, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0xf8, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x1f, 0x18, 0x18, 0x18, 0x18,
0x18, 0x18, 0x18, 0x18, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0x00, 0x6c, 0x38, 0x10,
0x00, 0xfe, 0xcc, 0x18, 0x30, 0x60, 0xc6, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0xc6,
0xc6, 0x60, 0x38, 0x0c, 0x06, 0xc6, 0xc6, 0x7c,
0x00, 0x18, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00,
0x00, 0x7c, 0xc6, 0x60, 0x38, 0x0c, 0xc6, 0x7c,
0x00, 0x18, 0x18, 0x30, 0x00, 0x00, 0x7e, 0x7e,
0x5a, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c,
0x00, 0x18, 0x18, 0x30, 0x00, 0x00, 0x10, 0x30,
0x30, 0xfc, 0x30, 0x30, 0x30, 0x30, 0x36, 0x1c,
0x00, 0x18, 0x18, 0x30, 0x00, 0x00, 0x3c, 0x66,
0x66, 0x66, 0x6c, 0x66, 0x66, 0x66, 0x66, 0xec,
0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38, 0x10,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xfe, 0x6c, 0x6c, 0x6c, 0x6c, 0x6c, 0x66,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x38,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xf6,
0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x18, 0x30, 0x1c, 0x00, 0x00, 0x00, 0x66, 0xcc,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x30, 0x30,
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x18,
0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x18, 0x30, 0x00, 0x00, 0x00, 0x66, 0xcc, 0xcc,
0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66, 0x66,
0xcc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x66,
0x66, 0xcc, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x18, 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
0x18, 0x7e, 0x18, 0x18, 0x7e, 0x18, 0x18, 0x18,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x18, 0x18, 0x7e, 0x18, 0x18, 0x00, 0x7e, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xe0, 0x38, 0x0e, 0x38, 0xe0, 0x00, 0xfe, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0e, 0x38, 0xe0, 0x38, 0x0e, 0x00, 0xfe, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0,
0xc6, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0x36, 0x36,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0c, 0x18, 0x30, 0x60, 0x30, 0x18, 0x0c, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x18, 0x18, 0x00, 0x7e, 0x00, 0x18, 0x18, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x76, 0xdc, 0x00, 0x76, 0xdc, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x6c, 0x6c,
0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x60, 0x30, 0x18, 0x0c, 0x18, 0x30, 0x60, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x36,
0x60, 0xfc, 0x60, 0xf8, 0x60, 0x60, 0x36, 0x1c,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,
0x08, 0x7e, 0x08, 0x10, 0x7e, 0x10, 0x20, 0x00,
0x00, 0x00, 0x00, 0x00, 0x60, 0x30, 0x00, 0x10,
0x38, 0x6c, 0xc6, 0xc6, 0xfe, 0xc6, 0xc6, 0xc6,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe,
0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe,
0x00, 0x00, 0x00, 0x00, 0x30, 0x18, 0x00, 0xfe,
0x66, 0x62, 0x68, 0x78, 0x68, 0x62, 0x66, 0xfe,
0x00, 0x00, 0x00, 0x00, 0xa9, 0x00, 0xff, 0xff,
0x14, 0x20, 0x15, 0x20, 0xff, 0xff, 0x26, 0x20,
0xff, 0xff, 0x22, 0x21, 0xff, 0xff, 0x66, 0x26,
0xc8, 0x25, 0xfd, 0xff, 0xff, 0xff, 0x16, 0x21,
0xff, 0xff, 0xa4, 0x00, 0xff, 0xff, 0x22, 0x20,
0xcf, 0x25, 0xff, 0xff, 0xa6, 0x00, 0xff, 0xff,
0xa8, 0x00, 0xff, 0xff, 0xae, 0x00, 0xff, 0xff,
0xb4, 0x00, 0xff, 0xff, 0xb8, 0x00, 0xff, 0xff,
0xc1, 0x00, 0xff, 0xff, 0xc2, 0x00, 0xff, 0xff,
0xcb, 0x00, 0x01, 0x04, 0xff, 0xff, 0xcd, 0x00,
0xff, 0xff, 0xce, 0x00, 0xff, 0xff, 0xd3, 0x00,
0xff, 0xff, 0xd4, 0x00, 0xff, 0xff, 0xb6, 0x00,
0xff, 0xff, 0xa7, 0x00, 0xff, 0xff, 0xd7, 0x00,
0xff, 0xff, 0xda, 0x00, 0xff, 0xff, 0x91, 0x21,
0xb2, 0x25, 0xb4, 0x25, 0xff, 0xff, 0x93, 0x21,
0xbc, 0x25, 0xbe, 0x25, 0xff, 0xff, 0x92, 0x21,
0xb6, 0x25, 0xb8, 0x25, 0xff, 0xff, 0x90, 0x21,
0xc0, 0x25, 0xc2, 0x25, 0xff, 0xff, 0xdd, 0x00,
0xff, 0xff, 0xfd, 0x00, 0xff, 0xff, 0x02, 0x01,
0xd0, 0x04, 0xff, 0xff, 0x03, 0x01, 0xd1, 0x04,
0xff, 0xff, 0x20, 0x00, 0xa0, 0x00, 0x00, 0x20,
0x01, 0x20, 0x02, 0x20, 0x03, 0x20, 0x04, 0x20,
0x05, 0x20, 0x06, 0x20, 0x07, 0x20, 0x08, 0x20,
0x09, 0x20, 0x0a, 0x20, 0x2f, 0x20, 0xff, 0xff,
0x21, 0x00, 0xff, 0xff, 0x22, 0x00, 0xff, 0xff,
0x23, 0x00, 0xff, 0xff, 0x24, 0x00, 0xff, 0xff,
0x25, 0x00, 0x95, 0x22, 0xff, 0xff, 0x26, 0x00,
0xff, 0xff, 0x27, 0x00, 0xff, 0xff, 0x28, 0x00,
0xff, 0xff, 0x29, 0x00, 0xff, 0xff, 0x2a, 0x00,
0x9b, 0x22, 0xff, 0xff, 0x2b, 0x00, 0xff, 0xff,
0x2c, 0x00, 0xff, 0xff, 0x2d, 0x00, 0x12, 0x20,
0x13, 0x20, 0x12, 0x22, 0xad, 0x00, 0x10, 0x20,
0x11, 0x20, 0x96, 0x22, 0xff, 0xff, 0x2e, 0x00,
0x99, 0x22, 0xff, 0xff, 0x2f, 0x00, 0x98, 0x22,
0xff, 0xff, 0x30, 0x00, 0xea, 0x24, 0xff, 0xff,
0x31, 0x00, 0x60, 0x24, 0xff, 0xff, 0x32, 0x00,
0x61, 0x24, 0xff, 0xff, 0x33, 0x00, 0x62, 0x24,
0xff, 0xff, 0x34, 0x00, 0x63, 0x24, 0xff, 0xff,
0x35, 0x00, 0x64, 0x24, 0xff, 0xff, 0x36, 0x00,
0x65, 0x24, 0xff, 0xff, 0x37, 0x00, 0x66, 0x24,
0xff, 0xff, 0x38, 0x00, 0x67, 0x24, 0xff, 0xff,
0x39, 0x00, 0x68, 0x24, 0xff, 0xff, 0x3a, 0x00,
0xff, 0xff, 0x3b, 0x00, 0xff, 0xff, 0x3c, 0x00,
0xff, 0xff, 0x3d, 0x00, 0x9c, 0x22, 0xff, 0xff,
0x3e, 0x00, 0xff, 0xff, 0x3f, 0x00, 0xff, 0xff,
0x40, 0x00, 0xff, 0xff, 0x41, 0x00, 0x10, 0x04,
0x91, 0x03, 0xb6, 0x24, 0xff, 0xff, 0x42, 0x00,
0x12, 0x04, 0x92, 0x03, 0xb7, 0x24, 0xff, 0xff,
0x43, 0x00, 0x21, 0x04, 0xb8, 0x24, 0xff, 0xff,
0x44, 0x00, 0xb9, 0x24, 0xff, 0xff, 0x45, 0x00,
0x15, 0x04, 0x95, 0x03, 0xba, 0x24, 0xff, 0xff,
0x46, 0x00, 0xbb, 0x24, 0xff, 0xff, 0x47, 0x00,
0xbc, 0x24, 0xff, 0xff, 0x48, 0x00, 0x1d, 0x04,
0x97, 0x03, 0xbd, 0x24, 0xff, 0xff, 0x49, 0x00,
0x06, 0x04, 0x99, 0x03, 0xbe, 0x24, 0xff, 0xff,
0x4a, 0x00, 0x08, 0x04, 0xbf, 0x24, 0xff, 0xff,
0x4b, 0x00, 0x1a, 0x04, 0x9a, 0x03, 0x2a, 0x21,
0xc0, 0x24, 0xff, 0xff, 0x4c, 0x00, 0xc1, 0x24,
0xff, 0xff, 0x4d, 0x00, 0x1c, 0x04, 0x9c, 0x03,
0xc2, 0x24, 0xff, 0xff, 0x4e, 0x00, 0x9d, 0x03,
0xc3, 0x24, 0xff, 0xff, 0x4f, 0x00, 0x1e, 0x04,
0x9f, 0x03, 0xc4, 0x24, 0xff, 0xff, 0x50, 0x00,
0x20, 0x04, 0xa1, 0x03, 0xc5, 0x24, 0xff, 0xff,
0x51, 0x00, 0xc6, 0x24, 0xff, 0xff, 0x52, 0x00,
0xc7, 0x24, 0xff, 0xff, 0x53, 0x00, 0x05, 0x04,
0xc8, 0x24, 0xff, 0xff, 0x54, 0x00, 0x22, 0x04,
0xa4, 0x03, 0xc9, 0x24, 0xff, 0xff, 0x55, 0x00,
0xca, 0x24, 0xff, 0xff, 0x56, 0x00, 0xcb, 0x24,
0xff, 0xff, 0x57, 0x00, 0xcc, 0x24, 0xff, 0xff,
0x58, 0x00, 0x25, 0x04, 0xa7, 0x03, 0xcd, 0x24,
0xff, 0xff, 0x59, 0x00, 0xae, 0x04, 0xce, 0x24,
0xff, 0xff, 0x5a, 0x00, 0x96, 0x03, 0xcf, 0x24,
0xff, 0xff, 0x5b, 0x00, 0xff, 0xff, 0x5c, 0x00,
0xff, 0xff, 0x5d, 0x00, 0xff, 0xff, 0x5e, 0x00,
0xff, 0xff, 0x5f, 0x00, 0xff, 0xff, 0x60, 0x00,
0xff, 0xff, 0x61, 0x00, 0x30, 0x04, 0xd0, 0x24,
0xff, 0xff, 0x62, 0x00, 0xd1, 0x24, 0xff, 0xff,
0x63, 0x00, 0x41, 0x04, 0xd2, 0x24, 0xff, 0xff,
0x64, 0x00, 0xd3, 0x24, 0xff, 0xff, 0x65, 0x00,
0x35, 0x04, 0xd4, 0x24, 0xff, 0xff, 0x66, 0x00,
0xd5, 0x24, 0xff, 0xff, 0x67, 0x00, 0xd6, 0x24,
0xff, 0xff, 0x68, 0x00, 0xd7, 0x24, 0xff, 0xff,
0x69, 0x00, 0x56, 0x04, 0xd8, 0x24, 0xff, 0xff,
0x6a, 0x00, 0x58, 0x04, 0xd9, 0x24, 0xff, 0xff,
0x6b, 0x00, 0xda, 0x24, 0xff, 0xff, 0x6c, 0x00,
0xdb, 0x24, 0xff, 0xff, 0x6d, 0x00, 0xdc, 0x24,
0xff, 0xff, 0x6e, 0x00, 0xdd, 0x24, 0xff, 0xff,
0x6f, 0x00, 0x3e, 0x04, 0xde, 0x24, 0xff, 0xff,
0x70, 0x00, 0x40, 0x04, 0xdf, 0x24, 0xff, 0xff,
0x71, 0x00, 0xe0, 0x24, 0xff, 0xff, 0x72, 0x00,
0xe1, 0x24, 0xff, 0xff, 0x73, 0x00, 0x55, 0x04,
0x73, 0x00, 0xe2, 0x24, 0xff, 0xff, 0x74, 0x00,
0xe3, 0x24, 0xff, 0xff, 0x75, 0x00, 0xe4, 0x24,
0xff, 0xff, 0x76, 0x00, 0xe5, 0x24, 0xff, 0xff,
0x77, 0x00, 0xe6, 0x24, 0xff, 0xff, 0x78, 0x00,
0x45, 0x04, 0xe7, 0x24, 0xff, 0xff, 0x79, 0x00,
0x43, 0x04, 0xe8, 0x24, 0xff, 0xff, 0x7a, 0x00,
0xe9, 0x24, 0xff, 0xff, 0x7b, 0x00, 0xff, 0xff,
0x7c, 0x00, 0xff, 0xff, 0x7d, 0x00, 0xff, 0xff,
0x7e, 0x00, 0xff, 0xff, 0x04, 0x01, 0xff, 0xff,
0xc7, 0x00, 0xff, 0xff, 0xfc, 0x00, 0xff, 0xff,
0xe9, 0x00, 0xff, 0xff, 0xe2, 0x00, 0xff, 0xff,
0xe4, 0x00, 0xff, 0xff, 0xe0, 0x00, 0xff, 0xff,
0x05, 0x01, 0xff, 0xff, 0xe7, 0x00, 0xff, 0xff,
0x06, 0x01, 0xff, 0xff, 0xeb, 0x00, 0x51, 0x04,
0xff, 0xff, 0xe8, 0x00, 0xff, 0xff, 0x07, 0x01,
0xff, 0xff, 0xee, 0x00, 0xff, 0xff, 0x0c, 0x01,
0xff, 0xff, 0xc4, 0x00, 0xff, 0xff, 0x0d, 0x01,
0xff, 0xff, 0xc9, 0x00, 0xff, 0xff, 0x0e, 0x01,
0xff, 0xff, 0x0f, 0x01, 0xff, 0xff, 0xf4, 0x00,
0xff, 0xff, 0xf6, 0x00, 0xff, 0xff, 0xd0, 0x00,
0x10, 0x01, 0xff, 0xff, 0x11, 0x01, 0xff, 0xff,
0x18, 0x01, 0xff, 0xff, 0x19, 0x01, 0xff, 0xff,
0xd6, 0x00, 0xff, 0xff, 0xdc, 0x00, 0xff, 0xff,
0x1a, 0x01, 0xff, 0xff, 0xa3, 0x00, 0xff, 0xff,
0x1b, 0x01, 0xff, 0xff, 0x39, 0x01, 0xff, 0xff,
0x3a, 0x01, 0xff, 0xff, 0xe1, 0x00, 0xff, 0xff,
0xed, 0x00, 0xff, 0xff, 0xf3, 0x00, 0xff, 0xff,
0xfa, 0x00, 0xff, 0xff, 0xf1, 0x00, 0xff, 0xff,
0xd1, 0x00, 0xff, 0xff, 0x3d, 0x01, 0xff, 0xff,
0x3e, 0x01, 0xff, 0xff, 0xbf, 0x00, 0xff, 0xff,
0x41, 0x01, 0xff, 0xff, 0xac, 0x00, 0xff, 0xff,
0x42, 0x01, 0xff, 0xff, 0x43, 0x01, 0xff, 0xff,
0xa1, 0x00, 0xff, 0xff, 0xab, 0x00, 0x6a, 0x22,
0xff, 0xff, 0xbb, 0x00, 0x6b, 0x22, 0xff, 0xff,
0x91, 0x25, 0xff, 0xff, 0x92, 0x25, 0xff, 0xff,
0x44, 0x01, 0xff, 0xff, 0x02, 0x25, 0x03, 0x25,
0x7f, 0x25, 0x7d, 0x25, 0x7b, 0x25, 0x77, 0x25,
0x79, 0x25, 0x75, 0x25, 0xff, 0xff, 0x24, 0x25,
0x2b, 0x25, 0x2a, 0x25, 0x29, 0x25, 0x28, 0x25,
0x27, 0x25, 0x26, 0x25, 0x25, 0x25, 0xff, 0xff,
0x47, 0x01, 0xff, 0xff, 0x48, 0x01, 0xff, 0xff,
0x50, 0x01, 0xff, 0xff, 0x51, 0x01, 0xff, 0xff,
0x54, 0x01, 0xff, 0xff, 0x55, 0x01, 0xff, 0xff,
0x58, 0x01, 0xff, 0xff, 0x59, 0x01, 0xff, 0xff,
0x5a, 0x01, 0xff, 0xff, 0x5b, 0x01, 0xff, 0xff,
0x10, 0x25, 0x13, 0x25, 0x12, 0x25, 0x11, 0x25,
0xff, 0xff, 0x14, 0x25, 0x17, 0x25, 0x16, 0x25,
0x15, 0x25, 0xff, 0xff, 0x34, 0x25, 0x3b, 0x25,
0x3a, 0x25, 0x39, 0x25, 0x38, 0x25, 0x37, 0x25,
0x36, 0x25, 0x35, 0x25, 0xff, 0xff, 0x2c, 0x25,
0x33, 0x25, 0x32, 0x25, 0x31, 0x25, 0x30, 0x25,
0x2f, 0x25, 0x2e, 0x25, 0x2d, 0x25, 0xff, 0xff,
0x1c, 0x25, 0x23, 0x25, 0x22, 0x25, 0x21, 0x25,
0x20, 0x25, 0x1f, 0x25, 0x1e, 0x25, 0x1d, 0x25,
0xff, 0xff, 0x00, 0x25, 0x01, 0x25, 0x7e, 0x25,
0x7c, 0x25, 0x7a, 0x25, 0x76, 0x25, 0x78, 0x25,
0x74, 0x25, 0xff, 0xff, 0x3c, 0x25, 0x4b, 0x25,
0x4a, 0x25, 0x49, 0x25, 0x48, 0x25, 0x47, 0x25,
0x46, 0x25, 0x45, 0x25, 0x44, 0x25, 0x43, 0x25,
0x42, 0x25, 0x41, 0x25, 0x40, 0x25, 0x3f, 0x25,
0x3e, 0x25, 0x3d, 0x25, 0xff, 0xff, 0x5e, 0x01,
0xff, 0xff, 0x5f, 0x01, 0xff, 0xff, 0x60, 0x01,
0xff, 0xff, 0x61, 0x01, 0xff, 0xff, 0x62, 0x01,
0xff, 0xff, 0x63, 0x01, 0xff, 0xff, 0x64, 0x01,
0xff, 0xff, 0x65, 0x01, 0xff, 0xff, 0x6c, 0x25,
0xff, 0xff, 0x6e, 0x01, 0xff, 0xff, 0x6f, 0x01,
0xff, 0xff, 0x70, 0x01, 0xff, 0xff, 0x71, 0x01,
0xff, 0xff, 0x79, 0x01, 0xff, 0xff, 0x7a, 0x01,
0xff, 0xff, 0x7b, 0x01, 0xff, 0xff, 0x7c, 0x01,
0xff, 0xff, 0x7d, 0x01, 0xff, 0xff, 0x6a, 0x25,
0xff, 0xff, 0x18, 0x25, 0x1b, 0x25, 0x1a, 0x25,
0x19, 0x25, 0xff, 0xff, 0x0c, 0x25, 0x0f, 0x25,
0x0e, 0x25, 0x0d, 0x25, 0xff, 0xff, 0x88, 0x25,
0xff, 0xff, 0x7e, 0x01, 0xff, 0xff, 0x18, 0x02,
0xff, 0xff, 0x19, 0x02, 0xff, 0xff, 0x1a, 0x02,
0xff, 0xff, 0x1b, 0x02, 0xff, 0xff, 0xdf, 0x00,
0xff, 0xff, 0xc7, 0x02, 0xff, 0xff, 0xc0, 0x03,
0xff, 0xff, 0xd8, 0x02, 0xff, 0xff, 0xd9, 0x02,
0xff, 0xff, 0xb5, 0x00, 0xbc, 0x03, 0xff, 0xff,
0xdb, 0x02, 0xff, 0xff, 0xdd, 0x02, 0xff, 0xff,
0x18, 0x20, 0xff, 0xff, 0x19, 0x20, 0xff, 0xff,
0x1a, 0x20, 0xff, 0xff, 0x1c, 0x20, 0xff, 0xff,
0x1d, 0x20, 0xff, 0xff, 0x1e, 0x20, 0xff, 0xff,
0x20, 0x20, 0xff, 0xff, 0x21, 0x20, 0xff, 0xff,
0xb1, 0x00, 0xff, 0xff, 0x65, 0x22, 0xff, 0xff,
0x64, 0x22, 0xff, 0xff, 0x30, 0x20, 0xff, 0xff,
0x39, 0x20, 0xff, 0xff, 0xf7, 0x00, 0xff, 0xff,
0x48, 0x22, 0xff, 0xff, 0xb0, 0x00, 0xff, 0xff,
0x3a, 0x20, 0xff, 0xff, 0xb7, 0x00, 0xff, 0xff,
0xac, 0x20, 0xff, 0xff, 0x60, 0x22, 0xff, 0xff,
0xc0, 0x00, 0xff, 0xff, 0xa0, 0x25, 0xae, 0x25,
0xff, 0xff, 0xc8, 0x00, 0xff, 0xff
};

@ -10,10 +10,10 @@
#include <linux/fb.h>
#include "pdcfb.h"
#include "psf.c"
#include "../dosvga/font.h"
#ifdef PDC_WIDE
#include "lat2_vga.h"
#include "uni_info.h"
#else
#include "../dosvga/font.h"
#endif
static struct termios orig_term;
@ -209,6 +209,13 @@ int PDC_scr_open(void)
#endif
}
#ifdef PDC_WIDE
/* If there's no Unicode info, the font is probably a CP437 one. */
/* We can use the data in uni_info.h to make the translations. */
if( !PDC_font_info.unicode_info)
PDC_font_info.unicode_info = _decipher_psf2_unicode_table(
_unicode_info, sizeof( _unicode_info), &PDC_font_info.unicode_info_size);
#endif
setbuf( stdin, NULL);
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;

@ -114,10 +114,56 @@ struct psf2_header {
#define IS_UTF8_STARTING_BYTE( c) (!((c) & 0x80) || ((c) > 0xc1 && (c) < 0xf5))
static uint32_t *_decipher_psf2_unicode_table( const uint8_t *buff, const size_t info_len,
uint32_t *unicode_info_size)
{
unsigned glyph_num = 0;
size_t i, n1 = 0;
uint32_t n_references_found = 0;
uint32_t *unicode_info, *tptr;
for( i = 0; i < info_len; i++)
if( IS_UTF8_STARTING_BYTE( buff[i]))
n1++;
unicode_info = tptr = (uint32_t *)malloc( n1 * 2 * sizeof( uint32_t));
for( i = 0; i < info_len; i++)
if( buff[i] == PSF2_SEPARATOR)
glyph_num++;
else if( buff[i] != PSF2_STARTSEQ)
{
unsigned cval; /* decipher UTF8 value */
if( !(buff[i] & 0x80)) /* plain ASCII */
cval = (unsigned)buff[i];
else if( (buff[i] & 0xe0) == 0xc0) /* two-byte UTF8 : code */
{ /* points U+80 to U+7FF */
cval = ((buff[i] & 0x1f) << 6) | (buff[i + 1] & 0x3f);
i++;
}
else
{ /* three-byte UTF: U+800 to U+FFFF */
cval = ((buff[i] & 0x0f) << 12) | ((buff[i + 1] & 0x3f) << 6) | (buff[i + 2] & 0x3f);
if( (buff[i] & 0xf0) == 0xf0) /* Four-byte UTF: */
{ /* U+10000 and beyond (SMP) */
cval = (cval << 6) | (buff[i + 3] & 0x3f);
i++;
}
i += 2;
}
*tptr++ = cval;
*tptr++ = glyph_num;
n_references_found++;
}
qsort( unicode_info, n_references_found, 2 * sizeof( uint32_t),
_compare_unicode_info);
*unicode_info_size = n_references_found;
return( unicode_info);
}
static int _load_psf2( struct font_info *f, const uint8_t *buff, const long filelen)
{
struct psf2_header hdr;
int n_references_found = 0;
if( buff[0] != PSF2_MAGIC0 || buff[1] != PSF2_MAGIC1
|| buff[2] != PSF2_MAGIC2 || buff[3] != PSF2_MAGIC3)
@ -132,49 +178,16 @@ static int _load_psf2( struct font_info *f, const uint8_t *buff, const long file
f->glyphs = buff + f->headersize;
if( hdr.flags & PSF2_HAS_UNICODE_TABLE)
{
size_t i = (size_t)( hdr.headersize + hdr.length * hdr.charsize);
unsigned glyph_num = 0;
int j, n1 = 0;
uint32_t *tptr;
for( j = (int)i ; j < (int)filelen; j++)
if( IS_UTF8_STARTING_BYTE( buff[j]))
n1++;
f->unicode_info = tptr = (uint32_t *)malloc( n1 * 2 * sizeof( uint32_t));
for( ; i < (size_t)filelen; i++)
if( buff[i] == PSF2_SEPARATOR)
glyph_num++;
else if( buff[i] != PSF2_STARTSEQ)
{
unsigned cval; /* decipher UTF8 value */
uint32_t start_of_unicode_data = hdr.headersize + hdr.length * hdr.charsize;
if( !(buff[i] & 0x80)) /* plain ASCII */
cval = (unsigned)buff[i];
else if( (buff[i] & 0xe0) == 0xc0) /* two-byte UTF8 : code */
{ /* points U+80 to U+7FF */
cval = ((buff[i] & 0x1f) << 6) | (buff[i + 1] & 0x3f);
i++;
}
else
{ /* three-byte UTF: U+800 to U+FFFF */
cval = ((buff[i] & 0x0f) << 12) | ((buff[i + 1] & 0x3f) << 6) | (buff[i + 2] & 0x3f);
if( (buff[i] & 0xf0) == 0xf0) /* Four-byte UTF: */
{ /* U+10000 and beyond (SMP) */
cval = (cval << 6) | (buff[i + 3] & 0x3f);
i++;
}
i += 2;
}
*tptr++ = cval;
*tptr++ = glyph_num;
n_references_found++;
}
qsort( f->unicode_info, n_references_found, 2 * sizeof( uint32_t),
_compare_unicode_info);
f->unicode_info = _decipher_psf2_unicode_table( buff + start_of_unicode_data,
(size_t)( filelen - start_of_unicode_data), &f->unicode_info_size);
}
else
{
f->unicode_info = NULL;
f->unicode_info_size = n_references_found;
f->unicode_info_size = 0;
}
return( 0);
}

@ -0,0 +1,262 @@
/* Unicode information table for CP437 fonts. This tells wide-char
builds which glyphs to use from the CP437 font found in dosvga/font.h
(or similar CP437 fonts... for example, almost all vgafont-formatted
fonts). */
static const unsigned char _unicode_info[] = {
/* 0x00 = 0 */ 0x00, 0xff,
/* 0x01 = 1 */ 0xe2, 0x98, 0xba, 0xff,
/* 0x02 = 2 */ 0xe2, 0x98, 0xbb, 0xff,
/* 0x03 = 3 */ 0xe2, 0x99, 0xa5, 0xff,
/* 0x04 = 4 */ 0xe2, 0x99, 0xa6, 0xff,
/* 0x05 = 5 */ 0xe2, 0x99, 0xa3, 0xff,
/* 0x06 = 6 */ 0xe2, 0x99, 0xa0, 0xff,
/* 0x07 = 7 */ 0xe2, 0x80, 0xa4, 0xff,
/* 0x08 = 8 */ 0xe2, 0x97, 0x98, 0xff,
/* 0x09 = 9 */ 0xe2, 0x96, 0xbc, 0xff,
/* 0x0a = 10 */ 0xe2, 0x97, 0x99, 0xff,
/* 0x0b = 11 */ 0xe2, 0x99, 0x82, 0xff,
/* 0x0c = 12 */ 0xe2, 0x99, 0x80, 0xff,
/* 0x0d = 13 */ 0xe2, 0x99, 0xaa, 0xff,
/* 0x0e = 14 */ 0xe2, 0x99, 0xac, 0xff,
/* 0x0f = 15 */ 0xe2, 0x98, 0xbc, 0xff,
/* 0x10 = 16 */ 0xe2, 0x96, 0xb6, 0xff,
/* 0x11 = 17 */ 0xe2, 0x97, 0x80, 0xff,
/* 0x12 = 18 */ 0xe2, 0x86, 0x95, 0xff,
/* 0x13 = 19 */ 0xe2, 0x80, 0xbc, 0xff,
/* 0x14 = 20 */ 0xc2, 0xb6, 0xff,
/* 0x15 = 21 */ 0xc2, 0xa7, 0xff,
/* 0x16 = 22 */ 0xe2, 0x96, 0x82, 0xff,
/* 0x17 = 23 */ 0xe2, 0xa0, 0x8d, 0xff,
/* 0x18 = 24 */ 0xe2, 0x86, 0x91, 0xff,
/* 0x19 = 25 */ 0xe2, 0x86, 0x93, 0xff,
/* 0x1a = 26 */ 0xe2, 0x86, 0x92, 0xff,
/* 0x1b = 27 */ 0xe2, 0x86, 0x90, 0xff,
/* 0x1c = 28 */ 0xe2, 0x8c, 0x99, 0xff,
/* 0x1d = 29 */ 0xe2, 0xa0, 0x8c, 0xff,
/* 0x1e = 30 */ 0xe2, 0x96, 0xb2, 0xff,
/* 0x1f = 31 */ 0xe2, 0x96, 0xbc, 0xff,
/* 0x20 = 32 */ 0x20, 0xff,
/* 0x21 = 33 */ 0x21, 0xff,
/* 0x22 = 34 */ 0x22, 0xff,
/* 0x23 = 35 */ 0x23, 0xff,
/* 0x24 = 36 */ 0x24, 0xff,
/* 0x25 = 37 */ 0x25, 0xff,
/* 0x26 = 38 */ 0x26, 0xff,
/* 0x27 = 39 */ 0x27, 0xff,
/* 0x28 = 40 */ 0x28, 0xff,
/* 0x29 = 41 */ 0x29, 0xff,
/* 0x2a = 42 */ 0x2a, 0xff,
/* 0x2b = 43 */ 0x2b, 0xff,
/* 0x2c = 44 */ 0x2c, 0xff,
/* 0x2d = 45 */ 0x2d, 0xff,
/* 0x2e = 46 */ 0x2e, 0xff,
/* 0x2f = 47 */ 0x2f, 0xff,
/* 0x30 = 48 */ 0x30, 0xff,
/* 0x31 = 49 */ 0x31, 0xff,
/* 0x32 = 50 */ 0x32, 0xff,
/* 0x33 = 51 */ 0x33, 0xff,
/* 0x34 = 52 */ 0x34, 0xff,
/* 0x35 = 53 */ 0x35, 0xff,
/* 0x36 = 54 */ 0x36, 0xff,
/* 0x37 = 55 */ 0x37, 0xff,
/* 0x38 = 56 */ 0x38, 0xff,
/* 0x39 = 57 */ 0x39, 0xff,
/* 0x3a = 58 */ 0x3a, 0xff,
/* 0x3b = 59 */ 0x3b, 0xff,
/* 0x3c = 60 */ 0x3c, 0xff,
/* 0x3d = 61 */ 0x3d, 0xff,
/* 0x3e = 62 */ 0x3e, 0xff,
/* 0x3f = 63 */ 0x3f, 0xff,
/* 0x40 = 64 */ 0x40, 0xff,
/* 0x41 = 65 */ 0x41, 0xff,
/* 0x42 = 66 */ 0x42, 0xff,
/* 0x43 = 67 */ 0x43, 0xff,
/* 0x44 = 68 */ 0x44, 0xff,
/* 0x45 = 69 */ 0x45, 0xff,
/* 0x46 = 70 */ 0x46, 0xff,
/* 0x47 = 71 */ 0x47, 0xff,
/* 0x48 = 72 */ 0x48, 0xff,
/* 0x49 = 73 */ 0x49, 0xff,
/* 0x4a = 74 */ 0x4a, 0xff,
/* 0x4b = 75 */ 0x4b, 0xff,
/* 0x4c = 76 */ 0x4c, 0xff,
/* 0x4d = 77 */ 0x4d, 0xff,
/* 0x4e = 78 */ 0x4e, 0xff,
/* 0x4f = 79 */ 0x4f, 0xff,
/* 0x50 = 80 */ 0x50, 0xff,
/* 0x51 = 81 */ 0x51, 0xff,
/* 0x52 = 82 */ 0x52, 0xff,
/* 0x53 = 83 */ 0x53, 0xff,
/* 0x54 = 84 */ 0x54, 0xff,
/* 0x55 = 85 */ 0x55, 0xff,
/* 0x56 = 86 */ 0x56, 0xff,
/* 0x57 = 87 */ 0x57, 0xff,
/* 0x58 = 88 */ 0x58, 0xff,
/* 0x59 = 89 */ 0x59, 0xff,
/* 0x5a = 90 */ 0x5a, 0xff,
/* 0x5b = 91 */ 0x5b, 0xff,
/* 0x5c = 92 */ 0x5c, 0xff,
/* 0x5d = 93 */ 0x5d, 0xff,
/* 0x5e = 94 */ 0x5e, 0xff,
/* 0x5f = 95 */ 0x5f, 0xff,
/* 0x60 = 96 */ 0x60, 0xff,
/* 0x61 = 97 */ 0x61, 0xff,
/* 0x62 = 98 */ 0x62, 0xff,
/* 0x63 = 99 */ 0x63, 0xff,
/* 0x64 = 100 */ 0x64, 0xff,
/* 0x65 = 101 */ 0x65, 0xff,
/* 0x66 = 102 */ 0x66, 0xff,
/* 0x67 = 103 */ 0x67, 0xff,
/* 0x68 = 104 */ 0x68, 0xff,
/* 0x69 = 105 */ 0x69, 0xff,
/* 0x6a = 106 */ 0x6a, 0xff,
/* 0x6b = 107 */ 0x6b, 0xff,
/* 0x6c = 108 */ 0x6c, 0xff,
/* 0x6d = 109 */ 0x6d, 0xff,
/* 0x6e = 110 */ 0x6e, 0xff,
/* 0x6f = 111 */ 0x6f, 0xff,
/* 0x70 = 112 */ 0x70, 0xff,
/* 0x71 = 113 */ 0x71, 0xff,
/* 0x72 = 114 */ 0x72, 0xff,
/* 0x73 = 115 */ 0x73, 0xff,
/* 0x74 = 116 */ 0x74, 0xff,
/* 0x75 = 117 */ 0x75, 0xff,
/* 0x76 = 118 */ 0x76, 0xff,
/* 0x77 = 119 */ 0x77, 0xff,
/* 0x78 = 120 */ 0x78, 0xff,
/* 0x79 = 121 */ 0x79, 0xff,
/* 0x7a = 122 */ 0x7a, 0xff,
/* 0x7b = 123 */ 0x7b, 0xff,
/* 0x7c = 124 */ 0x7c, 0xff,
/* 0x7d = 125 */ 0x7d, 0xff,
/* 0x7e = 126 */ 0x7e, 0xff,
/* 0x7f = 127 */ 0xe2, 0x8c, 0x82, 0xff,
/* 0x80 = 128 */ 0xc3, 0x87, 0xff,
/* 0x81 = 129 */ 0xc3, 0xbc, 0xff,
/* 0x82 = 130 */ 0xc3, 0xa9, 0xff,
/* 0x83 = 131 */ 0xc3, 0xa2, 0xff,
/* 0x84 = 132 */ 0xc3, 0xa4, 0xff,
/* 0x85 = 133 */ 0xc3, 0xa0, 0xff,
/* 0x86 = 134 */ 0xc3, 0xa5, 0xff,
/* 0x87 = 135 */ 0xc3, 0xa7, 0xff,
/* 0x88 = 136 */ 0xc3, 0xaa, 0xff,
/* 0x89 = 137 */ 0xc3, 0xab, 0xff,
/* 0x8a = 138 */ 0xc3, 0xa8, 0xff,
/* 0x8b = 139 */ 0xc3, 0xaf, 0xff,
/* 0x8c = 140 */ 0xc3, 0xae, 0xff,
/* 0x8d = 141 */ 0xc3, 0xac, 0xff,
/* 0x8e = 142 */ 0xc3, 0x84, 0xff,
/* 0x8f = 143 */ 0xc3, 0x85, 0xff,
/* 0x90 = 144 */ 0xc3, 0x89, 0xff,
/* 0x91 = 145 */ 0xc3, 0xa6, 0xff,
/* 0x92 = 146 */ 0xc3, 0x86, 0xff,
/* 0x93 = 147 */ 0xc3, 0xb4, 0xff,
/* 0x94 = 148 */ 0xc3, 0xb5, 0xff,
/* 0x95 = 149 */ 0xc3, 0xb2, 0xff,
/* 0x96 = 150 */ 0xc3, 0xbb, 0xff,
/* 0x97 = 151 */ 0xc3, 0xb9, 0xff,
/* 0x98 = 152 */ 0xc3, 0xbf, 0xff,
/* 0x99 = 153 */ 0xc3, 0x96, 0xff,
/* 0x9a = 154 */ 0xc3, 0x9c, 0xff,
/* 0x9b = 155 */ 0xc2, 0xa2, 0xff,
/* 0x9c = 156 */ 0xc2, 0xa3, 0xff,
/* 0x9d = 157 */ 0xc2, 0xa5, 0xff,
/* 0x9e = 158 */ 0xe2, 0x82, 0xa7, 0xff,
/* 0x9f = 159 */ 0xc6, 0x92, 0xff,
/* 0xa0 = 160 */ 0xc3, 0xa1, 0xff,
/* 0xa1 = 161 */ 0xc3, 0xad, 0xff,
/* 0xa2 = 162 */ 0xc3, 0xb3, 0xff,
/* 0xa3 = 163 */ 0xc3, 0xba, 0xff,
/* 0xa4 = 164 */ 0xc3, 0xb1, 0xff,
/* 0xa5 = 165 */ 0xc3, 0x91, 0xff,
/* 0xa6 = 166 */ 0xc2, 0xaa, 0xff,
/* 0xa7 = 167 */ 0xc2, 0xba, 0xff,
/* 0xa8 = 168 */ 0xc2, 0xbf, 0xff,
/* 0xa9 = 169 */ 0xe2, 0x8c, 0x90, 0xff,
/* 0xaa = 170 */ 0xc2, 0xac, 0xff,
/* 0xab = 171 */ 0xc2, 0xbd, 0xff,
/* 0xac = 172 */ 0xc2, 0xbc, 0xff,
/* 0xad = 173 */ 0xc2, 0xa1, 0xff,
/* 0xae = 174 */ 0xc2, 0xab, 0xff,
/* 0xaf = 175 */ 0xc2, 0xbb, 0xff,
/* 0xb0 = 176 */ 0xe2, 0x96, 0x91, 0xff,
/* 0xb1 = 177 */ 0xe2, 0x96, 0x92, 0xff,
/* 0xb2 = 178 */ 0xe2, 0x96, 0x93, 0xff,
/* 0xb3 = 179 */ 0xe2, 0x94, 0x82, 0xff,
/* 0xb4 = 180 */ 0xe2, 0x94, 0xa4, 0xff,
/* 0xb5 = 181 */ 0xe2, 0x95, 0xa1, 0xff,
/* 0xb6 = 182 */ 0xe2, 0x95, 0xa2, 0xff,
/* 0xb7 = 183 */ 0xe2, 0x95, 0x96, 0xff,
/* 0xb8 = 184 */ 0xe2, 0x95, 0x95, 0xff,
/* 0xb9 = 185 */ 0xe2, 0x95, 0xa3, 0xff,
/* 0xba = 186 */ 0xe2, 0x95, 0x91, 0xff,
/* 0xbb = 187 */ 0xe2, 0x95, 0x97, 0xff,
/* 0xbc = 188 */ 0xe2, 0x95, 0x9d, 0xff,
/* 0xbd = 189 */ 0xe2, 0x95, 0x9c, 0xff,
/* 0xbe = 190 */ 0xe2, 0x95, 0x9b, 0xff,
/* 0xbf = 191 */ 0xe2, 0x94, 0x90, 0xff,
/* 0xc0 = 192 */ 0xe2, 0x94, 0x94, 0xff,
/* 0xc1 = 193 */ 0xe2, 0x94, 0xb4, 0xff,
/* 0xc2 = 194 */ 0xe2, 0x94, 0xac, 0xff,
/* 0xc3 = 195 */ 0xe2, 0x94, 0x9c, 0xff,
/* 0xc4 = 196 */ 0xe2, 0x94, 0x80, 0xff,
/* 0xc5 = 197 */ 0xe2, 0x94, 0xbc, 0xff,
/* 0xc6 = 198 */ 0xe2, 0x95, 0x9e, 0xff,
/* 0xc7 = 199 */ 0xe2, 0x95, 0x9f, 0xff,
/* 0xc8 = 200 */ 0xe2, 0x95, 0x9a, 0xff,
/* 0xc9 = 201 */ 0xe2, 0x95, 0x94, 0xff,
/* 0xca = 202 */ 0xe2, 0x95, 0xa9, 0xff,
/* 0xcb = 203 */ 0xe2, 0x95, 0xa6, 0xff,
/* 0xcc = 204 */ 0xe2, 0x95, 0xa0, 0xff,
/* 0xcd = 205 */ 0xe2, 0x95, 0x90, 0xff,
/* 0xce = 206 */ 0xe2, 0x95, 0xac, 0xff,
/* 0xcf = 207 */ 0xe2, 0x95, 0xa7, 0xff,
/* 0xd0 = 208 */ 0xe2, 0x95, 0xa8, 0xff,
/* 0xd1 = 209 */ 0xe2, 0x95, 0xa4, 0xff,
/* 0xd2 = 210 */ 0xe2, 0x95, 0xa5, 0xff,
/* 0xd3 = 211 */ 0xe2, 0x95, 0x99, 0xff,
/* 0xd4 = 212 */ 0xe2, 0x95, 0x98, 0xff,
/* 0xd5 = 213 */ 0xe2, 0x95, 0x92, 0xff,
/* 0xd6 = 214 */ 0xe2, 0x95, 0x93, 0xff,
/* 0xd7 = 215 */ 0xe2, 0x95, 0xab, 0xff,
/* 0xd8 = 216 */ 0xe2, 0x95, 0xaa, 0xff,
/* 0xd9 = 217 */ 0xe2, 0x94, 0x98, 0xff,
/* 0xda = 218 */ 0xe2, 0x94, 0x8c, 0xff,
/* 0xdb = 219 */ 0xe2, 0x96, 0x88, 0xff,
/* 0xdc = 220 */ 0xe2, 0x96, 0x84, 0xff,
/* 0xdd = 221 */ 0xe2, 0x96, 0x8c, 0xff,
/* 0xde = 222 */ 0xe2, 0x96, 0x90, 0xff,
/* 0xdf = 223 */ 0xe2, 0x96, 0x80, 0xff,
/* 0xe0 = 224 */ 0xce, 0xb1, 0xff,
/* 0xe1 = 225 */ 0xc3, 0x9f, 0xff,
/* 0xe2 = 226 */ 0xce, 0x93, 0xff,
/* 0xe3 = 227 */ 0xcf, 0x80, 0xff,
/* 0xe4 = 228 */ 0xce, 0xa3, 0xff,
/* 0xe5 = 229 */ 0xcf, 0x83, 0xff,
/* 0xe6 = 230 */ 0xc2, 0xb5, 0xff,
/* 0xe7 = 231 */ 0xcf, 0x84, 0xff,
/* 0xe8 = 232 */ 0xce, 0xa6, 0xff,
/* 0xe9 = 233 */ 0xce, 0x98, 0xff,
/* 0xea = 234 */ 0xce, 0xa9, 0xff,
/* 0xeb = 235 */ 0xce, 0xb4, 0xff,
/* 0xec = 236 */ 0xe2, 0x88, 0x9e, 0xff,
/* 0xed = 237 */ 0xcf, 0x86, 0xff,
/* 0xee = 238 */ 0xce, 0xb5, 0xff,
/* 0xef = 239 */ 0xe2, 0x88, 0xa9, 0xff,
/* 0xf0 = 240 */ 0xe2, 0x89, 0xa1, 0xff,
/* 0xf1 = 241 */ 0xc2, 0xb1, 0xff,
/* 0xf2 = 242 */ 0xe2, 0x89, 0xa5, 0xff,
/* 0xf3 = 243 */ 0xe2, 0x89, 0xa4, 0xff,
/* 0xf4 = 244 */ 0xe2, 0x8c, 0xa0, 0xff,
/* 0xf5 = 245 */ 0xe2, 0x8c, 0xa1, 0xff,
/* 0xf6 = 246 */ 0xc3, 0xb7, 0xff,
/* 0xf7 = 247 */ 0xe2, 0x89, 0x88, 0xff,
/* 0xf8 = 248 */ 0xc2, 0xb0, 0xff,
/* 0xf9 = 249 */ 0xe2, 0x88, 0x99, 0xff,
/* 0xfa = 250 */ 0xc2, 0xb7, 0xff,
/* 0xfb = 251 */ 0xe2, 0x88, 0x9a, 0xff,
/* 0xfc = 252 */ 0xe2, 0x81, 0xbf, 0xff,
/* 0xfd = 253 */ 0xc2, 0xb2, 0xff,
/* 0xfe = 254 */ 0xe2, 0x96, 0xa0, 0xff,
/* 0xff = 255 */ 0xc2, 0xa0, 0xff };
Loading…
Cancel
Save