#include <graphics/text.h>

static char fontname[] = "countdown.font";

static UWORD CharData[] = {
	0x0000,0x3f03,0x870f,0x9803,0x0000,0x0000,0x01c0,0x1fc0,
	0x3f80,0x3000,0x0000,0x0000,0x0000,0x0000,0x3fe0,0x7f03,
	0xfe1f,0xf83f,0xe1ff,0xc3fe,0x1ffc,0x3fe0,0xff80,0x0000,
	0x0001,0xe000,0x03e0,0x0ff8,0x7ff8,0xff87,0xfe0f,0xf87f,
	0xe1ff,0xc7ff,0x0ff8,0x7c30,0x3e00,0x3e1f,0x0c3e,0x01ff,
	0xf3ff,0x0ff8,0x7fe0,0xff07,0xfe0f,0xf8ff,0xf9f0,0xc7c3,
	0x3cf3,0x7c31,0xf0c7,0xff0f,0xe000,0x001f,0xc020,0x0000,
	0x0380,0x0003,0xc000,0x0001,0xe000,0x00f8,0x0000,0x3c00,
	0x1e00,0x1e0f,0x0007,0x8000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0001,0x8000,0x0000,0x0000,0x0000,0x0000,0x0007,
	0xf007,0x803f,0x8000,0x0000,
	0x0000,0x3f07,0xcf8f,0x9803,0x0000,0x07f8,0x03e0,0x3e00,
	0x07c0,0x3000,0x0000,0x0000,0x0000,0x0000,0x7e70,0x7f07,
	0x3f1c,0xfc77,0xe1cf,0xc73f,0x1cfc,0x7e71,0xf9c0,0x0000,
	0x0003,0xf000,0x03f0,0x1f3c,0xf81d,0xcfc7,0xe71c,0xfc63,
	0xf1f8,0x07e0,0x1cfc,0x7c30,0x3e00,0x3e1f,0x0c3e,0x033c,
	0xf73f,0x1f9c,0x7e71,0xfb87,0xe71f,0x9c1f,0xc1f0,0xc7c3,
	0x3cf3,0x7c31,0xf0c0,0x3f0f,0x0000,0x0003,0xc020,0x0000,
	0x07c0,0x0003,0xc000,0x0001,0xe000,0x00e0,0x0000,0x3c00,
	0x1e00,0x1e0f,0x0007,0x8000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0001,0x8000,0x0000,0x0000,0x0000,0x0000,0x000f,
	0x8007,0x8007,0xc000,0x1ffe,
	0x0000,0x3f07,0xcf8f,0x981f,0xe0e0,0x67c0,0x03e0,0x3c00,
	0x03c3,0x7b00,0xc000,0x0000,0x0000,0x0006,0x7c30,0x1f06,
	0x1f18,0x7c63,0xe187,0xc61f,0x187c,0x7c31,0xf0c0,0x0000,
	0x0007,0xf000,0x0038,0x1e1c,0xf00d,0x87c7,0xc318,0x7c61,
	0xf1f0,0x07c0,0x187c,0x7c30,0x3e00,0x3e1f,0x0c3e,0x033c,
	0xf61f,0x1f0c,0x7c31,0xf187,0xc31f,0x0c0f,0x81f0,0xc7c3,
	0x3cf3,0x7c31,0xf0c0,0x1f0f,0x0060,0x0003,0xc070,0x0000,
	0x07c0,0x0003,0xc000,0x0001,0xe000,0x00c0,0x0000,0x3c00,
	0x1e00,0x1e0f,0x0007,0x8000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0001,0x8000,0x0000,0x0000,0x0000,0x0000,0x000f,
	0x0007,0x8003,0xc1c0,0x1ffe,
	0x0000,0x3f03,0xc7bf,0xfe3e,0x71f0,0xe780,0x01e0,0x3c00,
	0x03c3,0xff00,0xc000,0x0000,0x0000,0x000e,0x7c30,0x1f06,
	0x1f18,0x7c63,0xe187,0xc61e,0x187c,0x7c31,0xf0c0,0x7001,
	0xc00f,0xf000,0x001c,0x1e1c,0xf3cd,0x87c7,0xc318,0x7c61,
	0xf1f0,0x07c0,0x187c,0x7c30,0x3e00,0x3e1f,0x0c3e,0x033c,
	0xf61f,0x1f0c,0x7c31,0xf187,0xc31f,0x0c0f,0x81f0,0xc7c3,
	0x3cf3,0x7c31,0xf0c0,0x1f0f,0x0070,0x0003,0xc0f8,0x0000,
	0x0780,0x0003,0xc000,0x0001,0xe000,0x00e0,0x0000,0x3c00,
	0x0000,0x000f,0x0007,0x8000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0003,0x8000,0x0000,0x0000,0x0000,0x0000,0x000f,
	0x0007,0x8003,0xc3e3,0x1ffe,
	0x0000,0x3f01,0xc3bf,0xfe3c,0x31b1,0xc786,0x00e0,0x3c00,
	0x03c1,0xfe00,0xc000,0x0000,0x0000,0x001c,0x7c30,0x1f00,
	0x1f00,0x7c63,0xe180,0x0600,0x187c,0x7c31,0xf0c0,0xf803,
	0xe01f,0xf0ff,0xc00e,0x1e1c,0xf7ed,0x87c7,0xc318,0x7c61,
	0xf1f0,0x07c0,0x187c,0x7c30,0x3e00,0x3e1f,0x0c3e,0x033c,
	0xf61f,0x1f0c,0x7c31,0xf187,0xc31f,0x0c0f,0x81f0,0xc7c3,
	0x3cf3,0x7c31,0xf0c0,0x3f0f,0x0038,0x0003,0xc1fc,0x0000,
	0x0700,0x7f03,0xfc07,0xf01f,0xe07f,0x01f8,0x07fc,0x3fc0,
	0x0000,0x000f,0x1807,0x81ff,0xf1ff,0x0ff0,0x3fc0,0xff00,
	0xee07,0xf80f,0xc1e1,0x8786,0x3cf3,0x3c60,0xf0c3,0xfe0f,
	0x0007,0x8003,0xc777,0x1ffe,
	0x0000,0x3f03,0x870f,0x783e,0x01f3,0x87c6,0x01c0,0x3c00,
	0x03c0,0xfc01,0xe000,0x0000,0x0000,0x0038,0x7c30,0x1f00,
	0x1f00,0xfc63,0xe1c0,0x0700,0x00fc,0x3e71,0xf0c0,0xf803,
	0xe03f,0xe0ff,0xc00f,0x0038,0xf66d,0xcfc7,0xe718,0x0061,
	0xf1f8,0x07e0,0x1800,0x7e70,0x3e00,0x3e1f,0x9c3e,0x033c,
	0xf61f,0x1f0c,0x7c31,0xf187,0xe71f,0x800f,0x81f0,0xc7c3,
	0x3cf3,0x3e71,0xf0c0,0x7e0f,0x001c,0x0003,0xc376,0x0000,
	0x0380,0xf383,0xbe0e,0xf83b,0xe0ef,0x80f0,0x0f18,0x3be0,
	0x1e00,0x1e0f,0x1807,0x833c,0xf39f,0x1f38,0x7ce1,0xf380,
	0xf80f,0x9c07,0x81e1,0x8786,0x3cf3,0x3c60,0xf0c0,0x3e0f,
	0x0007,0x8003,0xc63e,0x1ffe,
	0x0000,0x1e07,0x0e0e,0x381f,0xe0e7,0x07ff,0x0380,0x3c00,
	0x03c1,0xfe0f,0xfc00,0x00ff,0xc000,0x0070,0x7c30,0x1f00,
	0xff03,0xf863,0xe0ff,0x87fe,0x00f8,0x3fe1,0xf9c0,0x7001,
	0xc07f,0x0000,0x001f,0x8070,0xf66d,0xffc7,0xfe18,0x0061,
	0xf1ff,0x87fe,0x1800,0x7ff0,0x3e00,0x3e1f,0xf83e,0x033c,
	0xf61f,0x1f0c,0x7c31,0xf187,0xfe0f,0xf80f,0x81f0,0xc7c3,
	0x3cf3,0x3fe1,0xf0c0,0xfc0f,0x000e,0x0003,0xc070,0x0000,
	0x01c0,0xf183,0x1e0c,0x7831,0xe0c7,0x80f0,0x0f18,0x31e0,
	0x1e00,0x1e0f,0x1807,0x833c,0xf30f,0x1e18,0x7861,0xe180,
	0xf00f,0x0c07,0x81e1,0x8786,0x3cf3,0x3c60,0xf0c0,0x1e1e,
	0x0000,0x0001,0xe01c,0x1ffe,
	0x0000,0x0c00,0x000e,0x3801,0xf00e,0x07c6,0x0000,0x3c00,
	0x03c3,0xff0f,0xfc00,0x00ff,0xc000,0x00e0,0x7c30,0x1f03,
	0xfe00,0xfc63,0xe00f,0xc73f,0x01f8,0x73e0,0xffc0,0x0000,
	0x007e,0x0000,0x003f,0x80e0,0xf66d,0xcfc7,0xe718,0x7c61,
	0xf1f8,0x07e0,0x19fc,0x7e70,0x3e00,0x3e1c,0xf83e,0x033c,
	0xf61f,0x1f0c,0x7c31,0xf187,0x3e00,0xfc0f,0x81f0,0xc7c3,
	0x3cf3,0x73e1,0xf0c1,0xf80f,0x0007,0x0003,0xc070,0x0000,
	0x0000,0x0383,0x1e0c,0x7831,0xe0c7,0x80f0,0x0f18,0x31e0,
	0x1e00,0x1e0f,0xb807,0x833c,0xf30f,0x1e18,0x7861,0xe180,
	0xf00f,0x8007,0x81e1,0x8786,0x3cf3,0x1ee0,0xf0c0,0x3c1e,
	0x0000,0x0001,0xe000,0x1ffe,
	0x0000,0x0000,0x000e,0x3800,0xf01c,0x0786,0x0000,0x3c00,
	0x03c3,0x7b01,0xe000,0x0000,0x0000,0x01c0,0x7c30,0x1f07,
	0x0000,0x7c77,0xf007,0xc61f,0x01f0,0x61f0,0x01c0,0x0000,
	0x003c,0x00ff,0xc1ff,0x01c0,0xf67d,0x87c7,0xc318,0x7c61,
	0xf1f0,0x07c0,0x18fc,0x7c30,0x3e00,0x3e18,0x7c3e,0x033c,
	0xf61f,0x1f0c,0x7e71,0xf186,0x1f00,0x7c0f,0x81f0,0xc7c3,
	0x3cf3,0x61f1,0xf9c3,0xf00f,0x0003,0x8003,0xc070,0x0000,
	0x0000,0x7f83,0x1e0c,0x0031,0xe0ef,0x80f0,0x0f18,0x31e0,
	0x1e00,0x1e0f,0xf007,0x833c,0xf30f,0x1e18,0x7861,0xe180,
	0xf007,0xf807,0x81e1,0x8786,0x3cf3,0x1fc0,0xf0c0,0x780f,
	0x0007,0x8003,0xc000,0x1ffe,
	0x0000,0x0000,0x000f,0x7830,0xf039,0xc786,0x0000,0x3c00,
	0x03c0,0x3000,0xc007,0x0000,0x0000,0x0380,0x7c30,0x1f06,
	0x0000,0x7c7f,0xf187,0xc61f,0x03f0,0x61f0,0x00c0,0x7001,
	0xc01c,0x00ff,0xc3fe,0x0180,0xf7fd,0x87c7,0xc318,0x7c61,
	0xf1f0,0x07c0,0x187c,0x7c30,0x3e00,0x3e18,0x7c3e,0x033c,
	0xf61f,0x1f0c,0x7fe1,0xf186,0x1f18,0x7c0f,0x81f0,0xc7e7,
	0x3cf3,0x61f0,0xff87,0xe00f,0x0001,0xc003,0xc070,0x0000,
	0x0000,0xef83,0x1e0c,0x0031,0xe0ff,0x80f0,0x0f38,0x31e0,
	0x1e00,0x1e0e,0xf007,0x833c,0xf30f,0x1e18,0x7861,0xe180,
	0xf000,0x7c07,0x81e1,0x87ce,0x3cf3,0x3bc0,0xf0c0,0xf00f,
	0x0007,0x8003,0xc000,0x1ffe,
	0x0000,0x0000,0x003f,0xfe39,0xf073,0xe786,0x0000,0x3c00,
	0x03c0,0x3000,0xc00f,0x8000,0x0070,0x0700,0x7c30,0x1f06,
	0x1f18,0x7c03,0xe187,0xc61f,0x03e0,0x61f0,0xf0c0,0xf803,
	0xe00e,0x0000,0x03fc,0x0000,0xf3ed,0x87c7,0xc318,0x7c61,
	0xf1f0,0x07c0,0x187c,0x7c30,0x3e00,0x3e18,0x7c3e,0x033c,
	0xf61f,0x1f0c,0x7c01,0xf186,0x1f18,0x7c0f,0x81f0,0xc3ff,
	0x3cf3,0x61f0,0x3e07,0xc00f,0x0000,0xe003,0xc070,0x0000,
	0x0000,0xc783,0x1e0c,0x7831,0xe0e0,0x00f0,0x0ff0,0x31e0,
	0x1e00,0x1e0c,0x7807,0x833c,0xf30f,0x1e18,0x7861,0xe180,
	0xf000,0x3c07,0x81e1,0x83fc,0x3cf3,0x31e0,0xf0c1,0xe00f,
	0x0007,0x8003,0xc000,0x1ffe,
	0x0000,0x1e00,0x003f,0xfe1f,0xe0e3,0x6786,0x0000,0x3c00,
	0x03c0,0x0000,0xc00f,0x8000,0x00f8,0x0e00,0x7c30,0x1f06,
	0x1f18,0x7c03,0xe187,0xc61f,0x07e0,0x61f1,0xf0c0,0xf803,
	0xe007,0x0000,0x03f8,0x0180,0xf001,0x87c7,0xc318,0x7c61,
	0xf1f0,0x07c0,0x187c,0x7c30,0x3e00,0x3e18,0x7c3e,0x033c,
	0xf61f,0x1f0c,0x7c01,0xf186,0x1f18,0x7c0f,0x81f0,0xc1fe,
	0x3cf3,0x61f0,0x3e07,0xc00f,0x0000,0x7003,0xc070,0x0000,
	0x0000,0xc783,0x1e0c,0x7831,0xe0c7,0x80f0,0x0c00,0x31e0,
	0x1e00,0x1e0c,0x7807,0x833c,0xf30f,0x1e18,0x7ce1,0xf380,
	0xf00c,0x3c07,0x81e1,0x81f8,0x3cf3,0x31e0,0xf9c3,0xc00f,
	0x0007,0x8003,0xc000,0x1ffe,
	0x0000,0x1e00,0x000c,0xf803,0x01c3,0xe7ce,0x0000,0x3e00,
	0x07c0,0x0000,0x0007,0x8000,0x00f8,0x1c00,0x7e70,0x1f07,
	0x3f1c,0xfc03,0xe1cf,0xc73f,0x07c0,0x73f1,0xf9c0,0x7001,
	0xe003,0xf000,0x03f0,0x03c0,0xf819,0x87c7,0xe71c,0xfc63,
	0xf1f8,0x07c0,0x1cfc,0x7c30,0x3e02,0x7e18,0x7c3f,0x033c,
	0xf61f,0x1f9c,0x7c01,0xfbe6,0x1f1c,0xfc0f,0x81f9,0xc0fc,
	0x3cf3,0x61f0,0x3e07,0xe00f,0x0000,0x3803,0xc070,0x0000,
	0x0000,0xef83,0xbe0e,0xf83b,0xe0ef,0x80f0,0x0ff0,0x31e0,
	0x1e00,0x1e0c,0x7807,0x833c,0xf30f,0x1f38,0x7fc0,0xff80,
	0xf00e,0x7c07,0x81f3,0x80f0,0x3cf3,0x31e0,0x7fc3,0xe00f,
	0x8007,0x8007,0xc000,0x1ffe,
	0x0000,0x1e00,0x000c,0xf803,0x0181,0xc7fc,0x0000,0x1fc0,
	0x3f80,0x0000,0x0003,0x8000,0x0070,0x1800,0x3fe0,0x1f07,
	0xff1f,0xf803,0xe0ff,0x83fe,0x07c0,0x3fe0,0xff80,0x0000,
	0xe001,0xf000,0x01e0,0x03c0,0x7ff1,0x87c7,0xfe0f,0xf87f,
	0xe1ff,0xc7c0,0x0ffc,0x7c30,0x3e03,0xfc18,0x7c3f,0xe33c,
	0xf61f,0x0ff8,0x7c00,0xffe6,0x1f0f,0xf80f,0x80ff,0x8078,
	0x1ffe,0x61f0,0x3e07,0xff0f,0xe000,0x181f,0xc070,0x0000,
	0x0000,0x7f03,0xfc07,0xf01f,0xe07f,0x00f0,0x0c78,0x31e0,
	0x1e00,0x1e0c,0x7807,0x833c,0xf30f,0x0ff0,0x7800,0x0780,
	0xf007,0xf807,0x80ff,0x0060,0x1ffe,0x31e0,0x03c3,0xfe07,
	0xf007,0x803f,0x8000,0x1ffe,
	0x0000,0x0000,0x000c,0xf800,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0007,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0001,
	0xc000,0x0000,0x0000,0x0180,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3fff,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0c78,0x0000,
	0x0002,0x3e00,0x0000,0x0000,0x0000,0x0000,0x7800,0x0780,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x03c0,0x0000,
	0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x000e,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0003,
	0x8000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x3fff,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0ff0,0x0000,
	0x0003,0xfc00,0x0000,0x0000,0x0000,0x0000,0x7800,0x0780,
	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x03c0,0x0000,
	0x0000,0x0000,0x0000,0x0000,
};

static ULONG CharLoc[] = {
	0x0000000e,0x000e000e,0x001c000e,0x002a000e,
	0x0038000e,0x0046000e,0x0054000e,0x0062000e,
	0x0070000e,0x007e000e,0x008c000e,0x009a000e,
	0x00a8000e,0x00b6000e,0x00c4000e,0x00d2000e,
	0x00e0000e,0x00ee000e,0x00fc000e,0x010a000e,
	0x0118000e,0x0126000e,0x0134000e,0x0142000e,
	0x0150000e,0x015e000e,0x016c000e,0x017a000e,
	0x0188000e,0x0196000e,0x01a4000e,0x01b2000e,
	0x01c0000e,0x01ce000e,0x01dc000e,0x01ea000e,
	0x01f8000e,0x0206000e,0x0214000e,0x0222000e,
	0x0230000e,0x023e000e,0x024c000e,0x025a000e,
	0x0268000e,0x0276000e,0x0284000e,0x0292000e,
	0x02a0000e,0x02ae000e,0x02bc000e,0x02ca000e,
	0x02d8000e,0x02e6000e,0x02f4000e,0x0302000e,
	0x0310000e,0x031e000e,0x032c000e,0x033a000e,
	0x0348000e,0x0356000e,0x0364000e,0x0372000e,
	0x0380000e,0x038e000e,0x039c000e,0x03aa000e,
	0x03b8000e,0x03c6000e,0x03d4000e,0x03e2000e,
	0x03f0000e,0x03fe000e,0x040c000e,0x041a000e,
	0x0428000e,0x0436000e,0x0444000e,0x0452000e,
	0x0460000e,0x046e000e,0x047c000e,0x048a000e,
	0x0498000e,0x04a6000e,0x04b4000e,0x04c2000e,
	0x04d0000e,0x04de000e,0x04ec000e,0x04fa000e,
	0x0508000e,0x0516000e,0x0524000e,0x0532000e,
};

struct TextFont CountdownFont = {
	{		/* Message	*/
		{		/* Node	*/
			NULL,		/* ln_Succ	*/
			NULL,		/* ln_Pred	*/
			NT_FONT,	/* ln_Type	*/
			0,		/* ln_Pri	*/
			fontname,	/* ln_Name	*/
		},
		NULL,			/* mn_ReplyPort	*/
		sizeof (CountdownFont) +
		sizeof (fontname) +
		sizeof (CharData) +
		sizeof (CharLoc) + 
		0,			/* mn_Length	*/
	},
	16,		/* tf_YSize	*/
	0,		/* tf_Style	*/
	2,		/* tf_Flags	*/
	14,		/* tf_XSize	*/
	16,		/* tf_Baseline	*/
	0,		/* tf_BoldSmear	*/
	0,		/* tf_Accessors	*/
	32,		/* tf_LoChar	*/
	127,		/* tf_HiChar	*/
	(APTR)&CharData,/* tf_CharData	*/
	168,		/* tf_Modulo	*/
	(APTR)&CharLoc,	/* tf_CharLoc	*/
	NULL,		/* tf_CharSpace	*/
	NULL,		/* tf_CharKern	*/
};

