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 >
C/C++ Source or Header  |  2014-05-19  |  9KB  |  202 lines

  1. #include <graphics/text.h>
  2.  
  3. static char fontname[] = "mdmicro.font";
  4.  
  5. static UWORD  CharData[] = {
  6.     0xa852,0x8bc0,0x0014,0x927d,0xf480,0x0092,0xcb7e,0xaf76,
  7.     0x5eb2,0x65ed,0xb6ff,0x1d08,0x4042,0x1119,0x8000,0x0040,
  8.     0x0000,0x68a1,0x2202,0x7580,0x76e9,0x2c80,0x0904,0x4428,
  9.     0x57a6,0x8c56,0x157b,0xc2bd,0x70aa,0x7942,0xbd01,0x0ab0,
  10.     0xaa5e,0x15e8,0x0680,
  11.     0xade5,0x4c35,0x001b,0xad72,0x1b64,0x016d,0xb6c9,0x6a36,
  12.     0x7b6d,0x5aad,0xb699,0x0688,0x4045,0x1008,0x8000,0x0040,
  13.     0x0000,0xa544,0x75b6,0x825a,0x9915,0x5300,0x1ad4,0x4204,
  14.     0xaa4d,0x52a1,0x2a14,0x2552,0xa950,0x92a5,0x4000,0x9509,
  15.     0x50e1,0x2a02,0x0800,
  16.     0x8784,0x9429,0x002a,0x89bb,0x1b64,0x886d,0xb2c9,0x2a36,
  17.     0x7b6d,0x58ad,0xb698,0x8687,0xe6d4,0x5b3a,0xab2c,0xf3eb,
  18.     0x66de,0xa409,0x4456,0x43ea,0x8f17,0x945e,0x0ad4,0xccab,
  19.     0x7db5,0x3fff,0xffd6,0xdbed,0xf6db,0x5aff,0xffe4,0x925b,
  20.     0x6c4d,0x2490,0x7680,
  21.     0x85e9,0xa43f,0x9c2e,0x92a6,0xa541,0x747f,0xd2ff,0xfa3a,
  22.     0x5b75,0x64ad,0xaaa8,0x8400,0xd96e,0xb51a,0xbedb,0x6c4b,
  23.     0x66d3,0x2211,0x46b4,0xa37d,0x0b09,0x225b,0x092d,0x532f,
  24.     0xefff,0x2491,0x24bf,0xdb6d,0xf6db,0x5712,0x495b,0x6da9,
  25.     0x24d6,0xdb6f,0xb680,
  26.     0x8729,0x4429,0x004a,0xa1e6,0xaac2,0x02bd,0xb2c9,0x6a36,
  27.     0x5b65,0x52ad,0xf548,0x4401,0xd97c,0xb51c,0xbedb,0x6a4b,
  28.     0x7d54,0xa407,0xc4aa,0xa3c5,0x0f01,0x4c5a,0x082a,0xbecb,
  29.     0x7db5,0x36d9,0x2497,0xdb6d,0xf6db,0x5ab6,0xdbf9,0xffe9,
  30.     0x2556,0xdb68,0xf680,
  31.     0x85f3,0x4435,0x204a,0xa536,0xaa65,0x74a5,0xb6c9,0x6ab6,
  32.     0x5b65,0x5aad,0xf548,0x4402,0xd964,0x751a,0xa6db,0x615b,
  33.     0x7ed8,0xa40b,0xc45e,0x427a,0x8d00,0x705a,0x1fd5,0xcddb,
  34.     0x6db5,0x6491,0x2497,0xdb6d,0xb6da,0x92db,0x6dab,0x2489,
  35.     0x2556,0xdb6a,0xb680,
  36.     0x0040,0xa3c0,0x2285,0xfa29,0x25a4,0x881d,0xcb78,0xaf57,
  37.     0xdaa3,0x549a,0xb57e,0x3c03,0xe6dc,0x37db,0xe6ac,0xe626,
  38.     0xa6ae,0x6813,0xffaa,0x2182,0x8603,0x807a,0x2053,0x93ab,
  39.     0x6db6,0xbfff,0xfffa,0xa492,0xcdb6,0xbb7f,0xfff4,0xdb7f,
  40.     0xfed5,0x2490,0xc900,
  41.     0x8000,0x0000,0x4280,0x0000,0x0008,0x0080,0x0000,0x0000,
  42.     0x0000,0x8000,0x0000,0x2070,0x0000,0xc020,0x0008,0x4000,
  43.     0x0040,0x0001,0x2000,0xc000,0x0000,0x0040,0x4000,0x9880,
  44.     0x0000,0x8000,0x0000,0x0000,0x0000,0x0200,0x0004,0x0000,
  45.     0x0000,0x0000,0x1200,
  46. };
  47.  
  48. static ULONG  CharLoc[] = {
  49.     0x00000000,0x00000002,0x00020003,0x00050003,
  50.     0x00080003,0x000b0004,0x000f0004,0x00130002,
  51.     0x00150003,0x00180003,0x001b0003,0x001e0003,
  52.     0x00210002,0x00230003,0x00260002,0x00280004,
  53.     0x002c0003,0x002f0003,0x00320003,0x00350003,
  54.     0x00380003,0x003b0003,0x003e0003,0x00410003,
  55.     0x00440003,0x00470003,0x004a0002,0x004c0002,
  56.     0x004e0003,0x00510003,0x00540003,0x00570003,
  57.     0x005a0003,0x005d0003,0x00600003,0x00630003,
  58.     0x00660003,0x00690003,0x006c0003,0x006f0003,
  59.     0x00720003,0x00750003,0x00780003,0x007b0003,
  60.     0x007e0003,0x00810003,0x00840003,0x00870003,
  61.     0x008a0003,0x008d0004,0x00910003,0x00940003,
  62.     0x00970003,0x009a0003,0x009d0003,0x00a00003,
  63.     0x00a30003,0x00a60003,0x00a90003,0x00ac0003,
  64.     0x00af0004,0x00b30003,0x00b60003,0x00b90003,
  65.     0x00bc0002,0x00be0003,0x00c10003,0x00c40003,
  66.     0x00c70003,0x00ca0003,0x00cd0003,0x00d00003,
  67.     0x00d30003,0x00d60003,0x00d90003,0x00dc0003,
  68.     0x00df0003,0x00e20004,0x00e60003,0x00e90003,
  69.     0x00ec0003,0x00ef0003,0x00f20003,0x00f50003,
  70.     0x00f80004,0x00fc0003,0x00ff0003,0x01020004,
  71.     0x01060003,0x01090003,0x010c0003,0x010f0003,
  72.     0x01120002,0x01140003,0x01170004,0x011b0003,
  73.     0x00000000,0x00000000,0x00000000,0x00000000,
  74.     0x00000000,0x00000000,0x00000000,0x00000000,
  75.     0x00000000,0x00000000,0x00000000,0x00000000,
  76.     0x00000000,0x00000000,0x00000000,0x00000000,
  77.     0x00000000,0x00000000,0x00000000,0x00000000,
  78.     0x00000000,0x00000000,0x00000000,0x00000000,
  79.     0x00000000,0x00000000,0x00000000,0x00000000,
  80.     0x00000000,0x00000000,0x00000000,0x00000000,
  81.     0x00000000,0x011e0003,0x01210003,0x01240004,
  82.     0x01280003,0x012b0003,0x012e0002,0x01300003,
  83.     0x01330003,0x01360004,0x013a0003,0x013d0004,
  84.     0x01410003,0x00230003,0x01440004,0x01480003,
  85.     0x014b0003,0x014e0003,0x01510003,0x01540003,
  86.     0x01570002,0x01590003,0x015c0003,0x015f0002,
  87.     0x01610002,0x01630003,0x01660003,0x01690004,
  88.     0x016d0004,0x01710004,0x01750004,0x01790003,
  89.     0x017c0003,0x017f0003,0x01820003,0x01850003,
  90.     0x01880003,0x01820003,0x018b0004,0x018f0003,
  91.     0x01920003,0x01950003,0x01980003,0x019b0003,
  92.     0x019e0003,0x01a10003,0x01a40003,0x01a70003,
  93.     0x01aa0004,0x01ae0003,0x01b10003,0x01b40003,
  94.     0x01b70003,0x01ba0003,0x01bd0003,0x00a30003,
  95.     0x01c00003,0x01c30003,0x01c60003,0x01c90003,
  96.     0x01cc0003,0x01cf0003,0x01d20004,0x01d60003,
  97.     0x01d90003,0x01dc0003,0x01df0003,0x01e20003,
  98.     0x01e50003,0x01df0003,0x01e80004,0x01ec0003,
  99.     0x01ef0003,0x01f20003,0x01f50003,0x01f80003,
  100.     0x01fb0003,0x01fe0003,0x02010003,0x02040003,
  101.     0x02070004,0x020b0003,0x020e0003,0x02110003,
  102.     0x02140003,0x02170003,0x021a0003,0x021d0003,
  103.     0x02200003,0x01c30003,0x01c60003,0x01c90003,
  104.     0x01cc0003,0x02230003,0x01d20004,0x02260003,
  105. };
  106.  
  107. static UWORD  CharSpace[] = {
  108.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  109.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  110.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  111.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  112.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  113.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  114.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  115.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  116.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  117.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  118.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  119.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  120.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  121.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  122.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  123.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  124.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  125.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  126.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  127.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  128.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  129.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  130.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  131.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  132.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  133.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  134.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  135.     0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,0x0004,
  136. };
  137.  
  138. static UWORD  CharKern[] = {
  139.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  140.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  141.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  142.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  143.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  144.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  145.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  146.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  147.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  148.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  149.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  150.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  151.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  152.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  153.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  154.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  155.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  156.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  157.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  158.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  159.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  160.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  161.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  162.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  163.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  164.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  165.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  166.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  167. };
  168.  
  169. struct TextFont mdmicroFont = {
  170.     {        /* Message    */
  171.         {        /* Node    */
  172.             NULL,        /* ln_Succ    */
  173.             NULL,        /* ln_Pred    */
  174.             NT_FONT,    /* ln_Type    */
  175.             0,        /* ln_Pri    */
  176.             fontname,    /* ln_Name    */
  177.         },
  178.         NULL,            /* mn_ReplyPort    */
  179.         sizeof (mdmicroFont) +
  180.         sizeof (fontname) +
  181.         sizeof (CharData) +
  182.         sizeof (CharLoc) +
  183.         sizeof (CharSpace) +
  184.         sizeof (CharKern),    /* mn_Length    */
  185.     },
  186.     8,        /* tf_YSize    */
  187.     0,        /* tf_Style    */
  188.     98,        /* tf_Flags    */
  189.     4,        /* tf_XSize    */
  190.     6,        /* tf_Baseline    */
  191.     1,        /* tf_BoldSmear    */
  192.     0,        /* tf_Accessors    */
  193.     32,        /* tf_LoChar    */
  194.     255,        /* tf_HiChar    */
  195.     (APTR)&CharData,/* tf_CharData    */
  196.     70,        /* tf_Modulo    */
  197.     (APTR)&CharLoc,    /* tf_CharLoc    */
  198.     (APTR)&CharSpace,/*tf_CharSpace    */
  199.     (APTR)&CharKern,/* tf_CharKern    */
  200. };
  201.  
  202.