Ignore:
Timestamp:
Oct 31, 2006, 6:03:21 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Slightly changed the font header information. No one distributes libcaca fonts yet anyway :-)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/tools/makefont.c

    r962 r1271  
    172172
    173173    printf("static unsigned int const %s_size = %i;\n",
    174            prefix, 8 + control_size + data_size);
     174           prefix, 4 + control_size + data_size);
    175175    printf("static struct {\n");
    176176    printf("char ");
    177177    for(i = 0; (i + 1) * STRING_CHUNKS < 8 + control_size + data_size; i++)
    178178        printf("d%x[%i],%c", i, STRING_CHUNKS, (i % 6) == 5 ? '\n' : ' ');
    179     printf("d%x[%i];\n", i, 8 + control_size + data_size - i * STRING_CHUNKS);
     179    printf("d%x[%i];\n", i, 4 + control_size + data_size - i * STRING_CHUNKS);
    180180    printf("} %s_data = {\n", prefix);
    181181    printf("\n");
    182182
    183183    printf("/* file: */\n");
    184     printf("\"CACA\" /* caca_header */\n");
    185     written += 4;
    186     printf("\"FONT\" /* caca_file_type */\n");
    187     written += 4;
     184    printf("\"\\xCA\\xCA\" /* caca_header */\n");
     185    written += 2;
     186    printf("\"FT\" /* caca_file_type */\n");
     187    written += 2;
    188188    printf("\n");
    189189
Note: See TracChangeset for help on using the changeset viewer.