#define MEDIUM_FONT_WIDTH 9
#define MEDIUM_FONT_HEIGHT 12
#define MEDIUM_FONT_SPAN 9

#define MEDIUM_FONT_LINE_COUNT     (DISPLAY_SCREEN_HEIGHT/MEDIUM_FONT_HEIGHT)
#define MEDIUM_FONT_CHARS_PER_LINE (DISPLAY_SCREEN_WIDTH/MEDIUM_FONT_SPAN)

#define MEDIUM_FONT_CHAR_START 32
#define MEDIUM_FONT_CHAR_END 126
#define MEDIUM_FONT_UNPRINTABLE 95


static const uint16_t gMediumFontGlyphs[] = {
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, /*   */
	0x0000,0x0000,0x0000,0x037f,0x037f,0x0000,0x0000,0x0000,0x0000, /* ! */
	0x0000,0x0000,0x0007,0x0007,0x0000,0x0007,0x0000,0x0000,0x0000, /* " */
	0x00c0,0x02cc,0x03fe,0x00ff,0x03cc,0x03ff,0x00df,0x00cc,0x0000, /* # */
	0x0000,0x018e,0x031e,0x0213,0x07ff,0x0333,0x03e6,0x01c2,0x0000, /* $ */
	0x0006,0x020f,0x018f,0x006f,0x01f0,0x024c,0x0263,0x03c1,0x0000, /* % */
	0x0000,0x07c8,0x06de,0x0676,0x06f6,0x039e,0x0780,0x06c0,0x0000, /* & */
	0x0000,0x0000,0x0000,0x0003,0x0007,0x0000,0x0000,0x0000,0x0000, /* ' */
	0x0000,0x0000,0x00fc,0x03ff,0x0701,0x0600,0x0400,0x0000,0x0000, /* ( */
	0x0000,0x0000,0x0400,0x0600,0x0703,0x03ff,0x00fc,0x0000,0x0000, /* ) */
	0x0000,0x008c,0x00d8,0x0076,0x003e,0x00f8,0x00c8,0x0008,0x0000, /* * */
	0x0000,0x0018,0x0018,0x0018,0x00fe,0x0018,0x0018,0x0018,0x0000, /* + */
/*Font too tall*/
	0x0000,0x0000,0x0000,0x0300,0x0700,0x0200,0x0000,0x0000,0x0000, /* , */
	0x0000,0x0018,0x0018,0x0018,0x0018,0x0018,0x0018,0x0000,0x0000, /* - */
	0x0000,0x0000,0x0000,0x0180,0x0180,0x0000,0x0000,0x0000,0x0000, /* . */
	0x0000,0x0080,0x01e0,0x003c,0x000f,0x0003,0x0000,0x0000,0x0000, /* / */
	0x0000,0x01fe,0x03cf,0x0323,0x0313,0x030b,0x01fe,0x00fc,0x0000, /* 0 */
	0x0000,0x0006,0x0002,0x0003,0x03ff,0x0000,0x0000,0x0000,0x0000, /* 1 */
	0x0000,0x0306,0x0383,0x03c3,0x0363,0x0333,0x031e,0x0304,0x0000, /* 2 */
	0x0000,0x0182,0x0303,0x031b,0x031b,0x03bf,0x01fe,0x0040,0x0000, /* 3 */
	0x0000,0x00e0,0x00f0,0x00dc,0x00c6,0x03ff,0x03ff,0x00c0,0x0000, /* 4 */
	0x0000,0x0110,0x039f,0x030b,0x030f,0x031b,0x01fb,0x00f3,0x0000, /* 5 */
	0x0000,0x00fc,0x01fe,0x031b,0x031b,0x031b,0x01f3,0x00e0,0x0000, /* 6 */
	0x0000,0x0003,0x0303,0x03c3,0x00fb,0x003f,0x0007,0x0001,0x0000, /* 7 */
	0x0000,0x01ce,0x03ff,0x033b,0x0333,0x033b,0x01ee,0x00c0,0x0000, /* 8 */
	0x0000,0x011e,0x03bf,0x0333,0x0333,0x0393,0x01fe,0x0038,0x0000, /* 9 */
	0x0000,0x0000,0x0000,0x018c,0x018c,0x0000,0x0000,0x0000,0x0000, /* : */
	0x0000,0x0000,0x0000,0x058c,0x078c,0x0000,0x0000,0x0000,0x0000, /* ; */
	0x0000,0x0030,0x0038,0x0068,0x004c,0x00c6,0x0086,0x0183,0x0000, /* < */
	0x0000,0x006c,0x006c,0x006c,0x006c,0x006c,0x006c,0x006c,0x0000, /* = */
	0x0000,0x0183,0x00c6,0x00c4,0x006c,0x0068,0x0038,0x0010,0x0000, /* > */
	0x0000,0x0003,0x0001,0x0301,0x0371,0x0119,0x000f,0x0002,0x0000, /* ? */
	0x0030,0x00fe,0x0186,0x033b,0x036f,0x036f,0x037f,0x027e,0x0000, /* @ */
	0x0200,0x03c0,0x01f8,0x005e,0x004f,0x007c,0x03e0,0x0300,0x0000, /* A */
	0x0000,0x03ff,0x03ff,0x031b,0x031b,0x033b,0x01fe,0x01e4,0x0000, /* B */
	0x0030,0x01fc,0x01ce,0x0303,0x0303,0x0303,0x0383,0x0106,0x0000, /* C */
	0x0000,0x03ff,0x03ff,0x0303,0x0303,0x0303,0x01fe,0x00fc,0x0000, /* D */
	0x0000,0x03ff,0x03ff,0x0333,0x0333,0x0333,0x0333,0x0303,0x0000, /* E */
	0x0000,0x03ff,0x03ff,0x001b,0x001b,0x001b,0x001b,0x0003,0x0000, /* F */
	0x0078,0x01fe,0x0386,0x0303,0x0333,0x0333,0x03f7,0x01f2,0x0000, /* G */
	0x0000,0x03ff,0x03ff,0x0030,0x0030,0x0030,0x03ff,0x03ff,0x0000, /* H */
	0x0000,0x0303,0x0303,0x03ff,0x03ff,0x0303,0x0303,0x0000,0x0000, /* I */
	0x0100,0x0380,0x0303,0x0303,0x03ff,0x01ff,0x0003,0x0003,0x0000, /* J */
/*Image must be wider than 9*/
	0x0000,0x01ff,0x01ff,0x001c,0x003e,0x00e3,0x01c1,0x0180,0x0100, /* K */
	0x0000,0x03ff,0x03ff,0x0300,0x0300,0x0300,0x0300,0x0300,0x0000, /* L */
	0x0000,0x03ff,0x000f,0x0038,0x0070,0x001e,0x03ff,0x03ff,0x0000, /* M */
	0x0000,0x03ff,0x0007,0x001e,0x0078,0x01c0,0x03ff,0x03ff,0x0000, /* N */
	0x0078,0x01fe,0x0387,0x0303,0x0303,0x0303,0x01fe,0x00fc,0x0000, /* O */
	0x0000,0x03ff,0x03ff,0x0033,0x0033,0x0013,0x001f,0x000e,0x0000, /* P */
/*Font too tall*/
	0x0078,0x03fe,0x0387,0x0603,0x0603,0x0603,0x03fe,0x01fc,0x0000, /* Q */
	0x0000,0x03ff,0x03ff,0x0033,0x0073,0x01f3,0x039f,0x030e,0x0000, /* R */
	0x0100,0x018e,0x031f,0x0313,0x0333,0x0323,0x01e6,0x00c2,0x0000, /* S */
	0x0003,0x0003,0x0003,0x03ff,0x03ff,0x0003,0x0003,0x0003,0x0000, /* T */
	0x0000,0x01ff,0x03ff,0x0300,0x0300,0x0300,0x01ff,0x00ff,0x0000, /* U */
	0x0001,0x000f,0x007e,0x03f0,0x0380,0x01f8,0x003f,0x0007,0x0000, /* V */
	0x0007,0x03ff,0x03c0,0x00fc,0x001e,0x01f8,0x03f8,0x00ff,0x0000, /* W */
	0x0201,0x0303,0x03cf,0x00fc,0x0078,0x01fe,0x0387,0x0301,0x0000, /* X */
	0x0001,0x0003,0x000f,0x03fc,0x03f0,0x003c,0x000f,0x0003,0x0000, /* Y */
	0x0000,0x0303,0x03c3,0x03e3,0x033b,0x031f,0x0307,0x0303,0x0000, /* Z */
	0x0000,0x0000,0x07ff,0x07ff,0x0401,0x0401,0x0401,0x0000,0x0000, /* [ */
	0x0000,0x0000,0x0003,0x000f,0x003c,0x00f0,0x0380,0x0100,0x0000, /* \ */
	0x0000,0x0000,0x0401,0x0401,0x0401,0x0401,0x07ff,0x0000,0x0000, /* ] */
	0x0000,0x0010,0x001c,0x0006,0x0007,0x000c,0x0018,0x0000,0x0000, /* ^ */
	0x0400,0x0400,0x0400,0x0400,0x0400,0x0400,0x0400,0x0400,0x0000, /* _ */
	0x0000,0x0000,0x0000,0x0000,0x0001,0x0000,0x0000,0x0000,0x0000, /* ` */
	0x0000,0x03c8,0x03ec,0x036c,0x036c,0x016c,0x03f8,0x03e0,0x0000, /* a */
	0x0000,0x03ff,0x01ff,0x030c,0x030c,0x030c,0x01f8,0x00f0,0x0000, /* b */
	0x0000,0x01f8,0x01f8,0x030c,0x030c,0x030c,0x039c,0x0108,0x0000, /* c */
	0x0000,0x01f8,0x039c,0x030c,0x030c,0x0108,0x03ff,0x03ff,0x0000, /* d */
	0x0000,0x01f8,0x01fc,0x036c,0x036c,0x036c,0x0378,0x0170,0x0000, /* e */
	0x0000,0x000c,0x03fe,0x03ff,0x000d,0x000d,0x000d,0x0001,0x0000, /* f */
/*Font too tall*/
	0x0000,0x05b8,0x03fc,0x03cc,0x034c,0x027c,0x063c,0x040c,0x0000, /* g */
	0x0000,0x03ff,0x03ff,0x000c,0x000c,0x000c,0x03fc,0x03f0,0x0000, /* h */
	0x0000,0x0000,0x0186,0x01fe,0x01fe,0x0180,0x0180,0x0000,0x0000, /* i */
	0x0400,0x0600,0x0406,0x0406,0x07fe,0x07fe,0x0000,0x0000,0x0000, /* j */
/*Image must be wider than 9*/
	0x0000,0x03ff,0x03ff,0x0030,0x00f8,0x01dc,0x038c,0x0204,0x0200, /* k */
	0x0000,0x0301,0x0301,0x03ff,0x03ff,0x0300,0x0300,0x0000,0x0000, /* l */
	0x0000,0x03fc,0x000c,0x03fc,0x03fc,0x000c,0x03fc,0x03fc,0x0000, /* m */
	0x0000,0x03fc,0x03fc,0x000c,0x000c,0x000c,0x03fc,0x03f0,0x0000, /* n */
	0x0020,0x01f8,0x039c,0x030c,0x030c,0x030c,0x01f8,0x00f0,0x0000, /* o */
/*Font too tall*/
	0x0000,0x07fc,0x07fc,0x030c,0x030c,0x030c,0x01f8,0x00f0,0x0000, /* p */
/*Font too tall*/
	0x0020,0x01f8,0x039c,0x030c,0x030c,0x0198,0x07fc,0x07fc,0x0000, /* q */
	0x0000,0x0000,0x03fc,0x0018,0x000c,0x000c,0x000c,0x001c,0x0000, /* r */
	0x0000,0x0198,0x033c,0x032c,0x036c,0x036c,0x01d8,0x0080,0x0000, /* s */
	0x0000,0x0006,0x0066,0x01ff,0x0187,0x0186,0x0186,0x0080,0x0000, /* t */
	0x0000,0x01fc,0x03fc,0x0300,0x0300,0x0180,0x03fc,0x03fc,0x0000, /* u */
	0x0004,0x001c,0x00f8,0x03c0,0x0380,0x01e0,0x003c,0x0004,0x0000, /* v */
	0x000c,0x01fc,0x03e0,0x01f0,0x0038,0x03e0,0x03fc,0x00fc,0x0000, /* w */
	0x0204,0x030c,0x039c,0x01f8,0x00f0,0x01fc,0x030c,0x0204,0x0000, /* x */
/*Font too tall*/
	0x0000,0x001c,0x007c,0x07e0,0x0780,0x01f0,0x003c,0x0004,0x0000, /* y */
	0x0000,0x030c,0x038c,0x03ec,0x037c,0x033c,0x030c,0x0300,0x0000, /* z */
/*Font too tall*/
	0x0000,0x0060,0x07fc,0x07bf,0x0003,0x0003,0x0003,0x0000,0x0000, /* { */
/*Font too tall*/
	0x0000,0x0000,0x0000,0x07ff,0x07ff,0x0000,0x0000,0x0000,0x0000, /* | */
/*Font too tall*/
	0x0000,0x0003,0x0003,0x0003,0x07be,0x07fc,0x0060,0x0000,0x0000, /* } */
	0x0000,0x0018,0x0008,0x000c,0x0018,0x0018,0x0018,0x0008,0x0000, /* ~ */
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, /*  */
};

static const Font gMediumFont = {
       MEDIUM_FONT_LINE_COUNT,
       MEDIUM_FONT_CHARS_PER_LINE,
       MEDIUM_FONT_HEIGHT,
       MEDIUM_FONT_WIDTH,
       MEDIUM_FONT_CHAR_START,
       MEDIUM_FONT_CHAR_END,
       0, /* CenteredByDefault */
       MEDIUM_FONT_SPAN==MEDIUM_FONT_WIDTH,
       gMediumFontGlyphs
};
