Ignore:
Timestamp:
Oct 1, 2006, 9:55:45 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • Allow the hardblank character to be UTF-8.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/src/figlet.c

    r1151 r1170  
    3535{
    3636    /* From the font format */
    37     unsigned char hardblank;
     37    unsigned long int hardblank;
    3838    unsigned int height, baseline, max_length;
    3939    int old_layout;
     
    8686    char *data = NULL;
    8787    char path[2048];
     88    char hardblank[10];
    8889    struct figfont *font;
    8990    cucul_buffer_t *b;
     
    113114    font->full_layout = 0;
    114115    font->codetag_count = 0;
    115     if(fscanf(f, "%*[ft]lf2a%c %u %u %u %i %u %u %u %u\n", &font->hardblank,
     116    if(fscanf(f, "%*[ft]lf2a%6s %u %u %u %i %u %u %u %u\n", hardblank,
    116117              &font->height, &font->baseline, &font->max_length,
    117118              &font->old_layout, &comment_lines, &font->print_direction,
     
    123124        return NULL;
    124125    }
     126
     127    font->hardblank = cucul_utf8_to_utf32(hardblank, NULL);
    125128
    126129    /* Skip comment lines */
Note: See TracChangeset for help on using the changeset viewer.