Changeset 1170 for toilet/trunk/src/figlet.c
- Timestamp:
- Oct 1, 2006, 9:55:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
toilet/trunk/src/figlet.c
r1151 r1170 35 35 { 36 36 /* From the font format */ 37 unsigned charhardblank;37 unsigned long int hardblank; 38 38 unsigned int height, baseline, max_length; 39 39 int old_layout; … … 86 86 char *data = NULL; 87 87 char path[2048]; 88 char hardblank[10]; 88 89 struct figfont *font; 89 90 cucul_buffer_t *b; … … 113 114 font->full_layout = 0; 114 115 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, 116 117 &font->height, &font->baseline, &font->max_length, 117 118 &font->old_layout, &comment_lines, &font->print_direction, … … 123 124 return NULL; 124 125 } 126 127 font->hardblank = cucul_utf8_to_utf32(hardblank, NULL); 125 128 126 129 /* Skip comment lines */
Note: See TracChangeset
for help on using the changeset viewer.