home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 160.lha / Extract_Fonts / SMALL.c < prev    next >
C/C++ Source or Header  |  1988-04-27  |  3KB  |  97 lines

  1. #include <graphics/text.h>
  2.  
  3. extern char fontname[];
  4. extern UWORD CharData[];
  5. extern ULONG CharLoc[];
  6. extern UWORD CharSpace[];
  7. extern UWORD CharKern[];
  8.  
  9. struct TextFont SmallFont = {
  10.     {        /* Message    */
  11.         {        /* Node    */
  12.             NULL,        /* ln_Succ    */
  13.             NULL,        /* ln_Pred    */
  14.             NT_FONT,    /* ln_Type    */
  15.             0,        /* ln_Pri    */
  16.             fontname,    /* ln_Name    */
  17.         },
  18.         NULL,            /* mn_ReplyPort    */
  19.         sizeof (SmallFont) +
  20.         sizeof (fontname) +
  21.         sizeof (CharData) +
  22.         sizeof (CharLoc) +
  23.         sizeof (CharSpace) +
  24.         sizeof (CharKern),    /* mn_Length    */
  25.     },
  26.     5,        /* tf_YSize    */
  27.     0,        /* tf_Style    */
  28.     98,        /* tf_Flags    */
  29.     6,        /* tf_XSize    */
  30.     5,        /* tf_Baseline    */
  31.     1,        /* tf_BoldSmear    */
  32.     0,        /* tf_Accessors    */
  33.     32,        /* tf_LoChar    */
  34.     95,        /* tf_HiChar    */
  35.     (APTR)&CharData,/* tf_CharData    */
  36.     32,        /* tf_Modulo    */
  37.     (APTR)&CharLoc,    /* tf_CharLoc    */
  38.     (APTR)&CharSpace,/*tf_CharSpace    */
  39.     (APTR)&CharKern,/* tf_CharKern    */
  40. };
  41.  
  42. char fontname[] = "small.font";
  43.  
  44. UWORD CharData[] = {
  45.     0xaa9d,0x5264,0x0017,0x3f38,0x7f77,0xdce0,0x2264,0xef3b,
  46.     0xdffb,0xb7e3,0xde23,0x3779,0xde7f,0xef7b,0xdeff,0xcd0e,
  47.     0xafe8,0x6a9e,0x801d,0xf1ef,0x78c0,0xf7b9,0x5d1b,0xbdef,
  48.     0x78c6,0x36c3,0xf637,0xbdef,0x7bc3,0x6f7b,0xdecd,0x468e,
  49.     0x829c,0x9495,0xce2f,0xb71b,0x7ef1,0x9cf0,0x80ab,0xbf63,
  50.     0x7ef6,0xfec3,0xe63f,0xfdef,0x7b73,0x6f7f,0x73d9,0x240a,
  51.     0x07cb,0x289e,0x904d,0xbc6f,0xe3db,0x3639,0x5d09,0xfdef,
  52.     0x78c6,0xf6db,0xf637,0xbdfb,0xde1b,0x6d5b,0xd9b1,0x140e,
  53.     0x829d,0x5464,0x2147,0x3fb8,0x7e76,0x1ce2,0x2225,0xbf3b,
  54.     0xdfc3,0xb7ee,0xdff7,0x9761,0x7bf3,0x3891,0xdf3f,0x9c7e,
  55. };
  56.  
  57. ULONG CharLoc[] = {
  58.     0x00000000,0x00000002,0x00020003,0x00050005,
  59.     0x000a0005,0x000f0003,0x00120004,0x00160002,
  60.     0x00180002,0x001a0002,0x001c0003,0x001f0003,
  61.     0x00220002,0x00240003,0x00270002,0x00290003,
  62.     0x002c0005,0x00310003,0x00340005,0x00390005,
  63.     0x003e0005,0x00430005,0x00480005,0x004d0005,
  64.     0x00520005,0x00570005,0x005c0002,0x005e0002,
  65.     0x00600003,0x00630003,0x00660003,0x00690003,
  66.     0x006c0003,0x006f0005,0x00740005,0x00790005,
  67.     0x007e0005,0x00830005,0x00880005,0x008d0005,
  68.     0x00920005,0x00970004,0x009b0005,0x00a00005,
  69.     0x00a50005,0x00aa0005,0x00af0005,0x00b40005,
  70.     0x00b90005,0x00be0005,0x00c30005,0x00c80005,
  71.     0x00cd0004,0x00d10005,0x00d60005,0x00db0005,
  72.     0x00e00005,0x00e50005,0x00ea0005,0x00ef0002,
  73.     0x00f10003,0x00f40002,0x00f60003,0x00f90003,
  74. };
  75.  
  76. UWORD CharSpace[] = {
  77.     0x0004,0x0002,0x0004,0x0006,0x0006,0x0004,0x0005,0x0002,
  78.     0x0003,0x0003,0x0004,0x0004,0x0003,0x0004,0x0002,0x0004,
  79.     0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
  80.     0x0006,0x0006,0x0002,0x0003,0x0004,0x0004,0x0004,0x0004,
  81.     0x0004,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
  82.     0x0006,0x0005,0x0006,0x0006,0x0006,0x0006,0x0006,0x0006,
  83.     0x0006,0x0006,0x0006,0x0006,0x0005,0x0006,0x0006,0x0006,
  84.     0x0006,0x0006,0x0006,0x0003,0x0004,0x0003,0x0004,0x0004,
  85. };
  86.  
  87. UWORD CharKern[] = {
  88.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  89.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  90.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  91.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  92.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  93.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  94.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  95.     0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
  96. };
  97.