mirror of
https://github.com/tat3r/tdfiglet.git
synced 2024-11-14 12:16:41 +00:00
fixed spacing
This commit is contained in:
parent
6f2332ff71
commit
6d39d31c2c
15
tdfiglet.c
15
tdfiglet.c
@ -331,22 +331,20 @@ readchar(int i, glyph_t *glyph, font_t *font)
|
||||
glyph->cell[i].color = 0;
|
||||
}
|
||||
|
||||
/* unsure why tbqh */
|
||||
p += 2;
|
||||
|
||||
while (*p) {
|
||||
|
||||
ch = *p;
|
||||
p++;
|
||||
|
||||
color = *p;
|
||||
p++;
|
||||
|
||||
if (ch == '\r') {
|
||||
ch = ' ';
|
||||
row++;
|
||||
col = 0;
|
||||
p++;
|
||||
color = 0;
|
||||
} else {
|
||||
color = *p;
|
||||
p++;
|
||||
#ifdef DEBUG
|
||||
if (ch == 0x09)
|
||||
ch = 'T';
|
||||
@ -480,7 +478,12 @@ printstr(const char *str, font_t *font)
|
||||
} else {
|
||||
printf("\x03");
|
||||
}
|
||||
|
||||
for (int s = 0; s < font->spacing; s++) {
|
||||
printf(" ");
|
||||
}
|
||||
}
|
||||
|
||||
if (opt.color == COLOR_ANSI) {
|
||||
printf("\x1b[0m\n");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user