home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
back2roots/padua
/
padua.7z
/
padua
/
ftp.vapor.com
/
microdot-1
/
md1_src_02.lzx
/
mdm.c
< prev
next >
Wrap
C/C++ Source or Header
|
2014-05-19
|
9KB
|
202 lines
#include <graphics/text.h>
static char fontname[] = "mdmicro.font";
static UWORD CharData[] = {
0xa852,0x8bc0,0x0014,0x927d,0xf480,0x0092,0xcb7e,0xaf76,
0x5eb2,0x65ed,0xb6ff,0x1d08,0x4042,0x1119,0x8000,0x0040,
0x0000,0x68a1,0x2202,0x7580,0x76e9,0x2c80,0x0904,0x4428,
0x57a6,0x8c56,0x157b,0xc2bd,0x70aa,0x7942,0xbd01,0x0ab0,
0xaa5e,0x15e8,0x0680,
0xade5,0x4c35,0x001b,0xad72,0x1b64,0x016d,0xb6c9,0x6a36,
0x7b6d,0x5aad,0xb699,0x0688,0x4045,0x1008,0x8000,0x0040,
0x0000,0xa544,0x75b6,0x825a,0x9915,0x5300,0x1ad4,0x4204,
0xaa4d,0x52a1,0x2a14,0x2552,0xa950,0x92a5,0x4000,0x9509,
0x50e1,0x2a02,0x0800,
0x8784,0x9429,0x002a,0x89bb,0x1b64,0x886d,0xb2c9,0x2a36,
0x7b6d,0x58ad,0xb698,0x8687,0xe6d4,0x5b3a,0xab2c,0xf3eb,
0x66de,0xa409,0x4456,0x43ea,0x8f17,0x945e,0x0ad4,0xccab,
0x7db5,0x3fff,0xffd6,0xdbed,0xf6db,0x5aff,0xffe4,0x925b,
0x6c4d,0x2490,0x7680,
0x85e9,0xa43f,0x9c2e,0x92a6,0xa541,0x747f,0xd2ff,0xfa3a,
0x5b75,0x64ad,0xaaa8,0x8400,0xd96e,0xb51a,0xbedb,0x6c4b,
0x66d3,0x2211,0x46b4,0xa37d,0x0b09,0x225b,0x092d,0x532f,
0xefff,0x2491,0x24bf,0xdb6d,0xf6db,0x5712,0x495b,0x6da9,
0x24d6,0xdb6f,0xb680,
0x8729,0x4429,0x004a,0xa1e6,0xaac2,0x02bd,0xb2c9,0x6a36,
0x5b65,0x52ad,0xf548,0x4401,0xd97c,0xb51c,0xbedb,0x6a4b,
0x7d54,0xa407,0xc4aa,0xa3c5,0x0f01,0x4c5a,0x082a,0xbecb,
0x7db5,0x36d9,0x2497,0xdb6d,0xf6db,0x5ab6,0xdbf9,0xffe9,
0x2556,0xdb68,0xf680,
0x85f3,0x4435,0x204a,0xa536,0xaa65,0x74a5,0xb6c9,0x6ab6,
0x5b65,0x5aad,0xf548,0x4402,0xd964,0x751a,0xa6db,0x615b,
0x7ed8,0xa40b,0xc45e,0x427a,0x8d00,0x705a,0x1fd5,0xcddb,
0x6db5,0x6491,0x2497,0xdb6d,0xb6da,0x92db,0x6dab,0x2489,
0x2556,0xdb6a,0xb680,
0x0040,0xa3c0,0x2285,0xfa29,0x25a4,0x881d,0xcb78,0xaf57,
0xdaa3,0x549a,0xb57e,0x3c03,0xe6dc,0x37db,0xe6ac,0xe626,
0xa6ae,0x6813,0xffaa,0x2182,0x8603,0x807a,0x2053,0x93ab,
0x6db6,0xbfff,0xfffa,0xa492,0xcdb6,0xbb7f,0xfff4,0xdb7f,
0xfed5,0x2490,0xc900,
0x8000,0x0000,0x4280,0x0000,0x0008,0x0080,0x0000,0x0000,
0x0000,0x8000,0x0000,0x2070,0x0000,0xc020,0x0008,0x4000,
0x0040,0x0001,0x2000,0xc000,0x0000,0x0040,0x4000,0x9880,
0x0000,0x8000,0x0000,0x0000,0x0000,0x0200,0x0004,0x0000,
0x0000,0x0000,0x1200,
};
static ULONG CharLoc[] = {
0x00000000,0x00000002,0x00020003,0x00050003,
0x00080003,0x000b0004,0x000f0004,0x00130002,
0x00150003,0x00180003,0x001b0003,0x001e0003,
0x00210002,0x00230003,0x00260002,0x00280004,
0x002c0003,0x002f0003,0x00320003,0x00350003,
0x00380003,0x003b0003,0x003e0003,0x00410003,
0x00440003,0x00470003,0x004a0002,0x004c0002,
0x004e0003,0x00510003,0x00540003,0x00570003,
0x005a0003,0x005d0003,0x00600003,0x00630003,
0x00660003,0x00690003,0x006c0003,0x006f0003,
0x00720003,0x00750003,0x00780003,0x007b0003,
0x007e0003,0x00810003,0x00840003,0x00870003,
0x008a0003,0x008d0004,0x00910003,0x00940003,
0x00970003,0x009a0003,0x009d0003,0x00a00003,
0x00a30003,0x00a60003,0x00a90003,0x00ac0003,
0x00af0004,0x00b30003,0x00b60003,0x00b90003,
0x00bc0002,0x00be0003,0x00c10003,0x00c40003,
0x00c70003,0x00ca0003,0x00cd0003,0x00d00003,
0x00d30003,0x00d60003,0x00d90003,0x00dc0003,
0x00df0003,0x00e20004,0x00e60003,0x00e90003,
0x00ec0003,0x00ef0003,0x00f20003,0x00f50003,
0x00f80004,0x00fc0003,0x00ff0003,0x01020004,
0x01060003,0x01090003,0x010c0003,0x010f0003,
0x01120002,0x01140003,0x01170004,0x011b0003,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x011e0003,0x01210003,0x01240004,
0x01280003,0x012b0003,0x012e0002,0x01300003,
0x01330003,0x01360004,0x013a0003,0x013d0004,
0x01410003,0x00230003,0x01440004,0x01480003,
0x014b0003,0x014e0003,0x01510003,0x01540003,
0x01570002,0x01590003,0x015c0003,0x015f0002,
0x01610002,0x01630003,0x01660003,0x01690004,
0x016d0004,0x01710004,0x01750004,0x01790003,
0x017c0003,0x017f0003,0x01820003,0x01850003,
0x01880003,0x01820003,0x018b0004,0x018f0003,
0x01920003,0x01950003,0x01980003,0x019b0003,
0x019e0003,0x01a10003,0x01a40003,0x01a70003,
0x01aa0004,0x01ae0003,0x01b10003,0x01b40003,
0x01b70003,0x01ba0003,0x01bd0003,0x00a30003,
0x01c00003,0x01c30003,0x01c60003,0x01c90003,
0x01cc0003,0x01cf0003,0x01d20004,0x01d60003,
0x01d90003,0x01dc0003,0x01df0003,0x01e20003,
0x01e50003,0x01df0003,0x01e80004,0x01ec0003,
0x01ef0003,0x01f20003,0x01f50003,0x01f80003,
0x01fb0003,0x01fe0003,0x02010003,0x02040003,
0x02070004,0x020b0003,0x020e0003,0x02110003,
0x02140003,0x02170003,0x021a0003,0x021d0003,
0x02200003,0x01c30003,0x01c60003,0x01c90003,
0x01cc0003,0x02230003,0x01d20004,0x02260003,
};
static UWORD CharSpace[] = {
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
};
static UWORD CharKern[] = {
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,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,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,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,
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,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,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,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
};
struct TextFont mdmicroFont = {
{ /* Message */
{ /* Node */
NULL, /* ln_Succ */
NULL, /* ln_Pred */
NT_FONT, /* ln_Type */
0, /* ln_Pri */
fontname, /* ln_Name */
},
NULL, /* mn_ReplyPort */
sizeof (mdmicroFont) +
sizeof (fontname) +
sizeof (CharData) +
sizeof (CharLoc) +
sizeof (CharSpace) +
sizeof (CharKern), /* mn_Length */
},
8, /* tf_YSize */
0, /* tf_Style */
98, /* tf_Flags */
4, /* tf_XSize */
6, /* tf_Baseline */
1, /* tf_BoldSmear */
0, /* tf_Accessors */
32, /* tf_LoChar */
255, /* tf_HiChar */
(APTR)&CharData,/* tf_CharData */
70, /* tf_Modulo */
(APTR)&CharLoc, /* tf_CharLoc */
(APTR)&CharSpace,/*tf_CharSpace */
(APTR)&CharKern,/* tf_CharKern */
};