* Define default layout as fullwidth for generated fonts.

This commit is contained in:
Sam Hocevar 2006-11-16 00:05:22 +00:00 committed by sam
parent 3a513d8be4
commit e3f4dc4375
8 changed files with 60 additions and 54 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -23,23 +23,23 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
▝ @ ▝ @
▝ @@ ▝ @@
▜▝▌@ ▜▝▌@
▘▝ @ ▘▝$@
@ @
@@ @@
ABC@ $@
▟▟▖@ ▟▟▖@
▟▟▖@ ▟▟▖@
▝▝ @@ ▝▝$@@
▗▙▖@ ▗▙▖@
▚▙ @ ▚▙ @
▄▙▘@ ▄▙▘@
@@ $@@
█ ▌@ █ ▌@
@ $@
▞▗▖@ ▞▗▖@
▘▝▘@@ ▘▝▘@@
▞▚ @ ▞▚ @
@ $@
▌▚▘@ ▌▚▘@
▝▘▘@@ ▝▘▘@@
▝▌@ ▝▌@
@ -47,7 +47,7 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
@ @
@@ @@
▞ @ ▞ @
@ $ @
▝▖ @ ▝▖ @
▝ @@ ▝ @@
▝▖ @ ▝▖ @
@ -60,7 +60,7 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
@@ @@
▖ @ ▖ @
▄▙▖@ ▄▙▖@
@ $@
@@ @@
@ @
@ @
@ -71,21 +71,21 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
@ @
@@ @@
@ @
@ $@
▗▖@ ▗▖@
▝▘@@ ▝▘@@
▌@ ▌@
@ $@
@ $ @
▘ @@ ▘ @@
▞▀▖@ ▞▀▖@
▌▞▌@ ▌▞▌@
▛ ▌@ ▛ ▌@
▝▀ @@ ▝▀ @@
▗▌ @ ▗▌$@
@ $@
@ $@
▝▀ @@ ▝▀$@@
▞▀▖@ ▞▀▖@
▗▘@ ▗▘@
▗▘ @ ▗▘ @
@ -155,7 +155,7 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
▌ ▌@ ▌ ▌@
▀▀ @@ ▀▀ @@
▞▀▖@ ▞▀▖@
@ $@
▌ ▖@ ▌ ▖@
▝▀ @@ ▝▀ @@
▛▀▖@ ▛▀▖@
@ -251,8 +251,8 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
▞ @ ▞ @
▀▀▘@@ ▀▀▘@@
▐▀▘@ ▐▀▘@
@ $ @
@ $ @
▝▀▘@@ ▝▀▘@@
▌ @ ▌ @
▝▖ @ ▝▖ @
@ -295,7 +295,7 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
▛▀ @ ▛▀ @
▝▀▘@@ ▝▀▘@@
▗▀▖@ ▗▀▖@
@ $@
▜▀ @ ▜▀ @
▐ @@ ▐ @@
@ @
@ -344,7 +344,7 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
▌@@ ▌@@
@ @
▙▀▖@ ▙▀▖@
@ $@
▘ @@ ▘ @@
@ @
▞▀▘@ ▞▀▘@
@ -379,7 +379,7 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
▗▘ @ ▗▘ @
▀▀▘@@ ▀▀▘@@
▗▀ @ ▗▀ @
@ $ @
▐ @ ▐ @
▀ @@ ▀ @@
▐ @ ▐ @
@ -685,11 +685,11 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
0x2580 ▀ UPPER HALF BLOCK 0x2580 ▀ UPPER HALF BLOCK
███@ ███@
███@ ███@
@ $@
@@ $@@
0x2584 ▄ LOWER HALF BLOCK 0x2584 ▄ LOWER HALF BLOCK
@ $@
@ $@
███@ ███@
███@ ███@
0x2588 █ FULL BLOCK 0x2588 █ FULL BLOCK
@ -698,45 +698,45 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
███@ ███@
███@@ ███@@
0x258C ▌ LEFT HALF BLOCK 0x258C ▌ LEFT HALF BLOCK
█▌ @ █▌$@
█▌ @ █▌$@
█▌ @ █▌$@
█▌ @@ █▌$@@
0x2590 ▐ RIGHT HALF BLOCK 0x2590 ▐ RIGHT HALF BLOCK
▐█@ ▐█@
▐█@ ▐█@
▐█@ ▐█@
▐█@@ ▐█@@
0x2596 ▖ QUADRANT LOWER LEFT 0x2596 ▖ QUADRANT LOWER LEFT
@ $@
@ $@
█▌ @ █▌$@
█▌ @@ █▌$@@
0x2597 ▗ QUADRANT LOWER RIGHT 0x2597 ▗ QUADRANT LOWER RIGHT
@ $@
@ $@
▐█@ ▐█@
▐█@@ ▐█@@
0x2598 ▘ QUADRANT UPPER LEFT 0x2598 ▘ QUADRANT UPPER LEFT
█▌ @ █▌$@
█▌ @ █▌$@
@ $@
@@ $@@
0x2599 ▙ QUADRANT UPPER LEFT AND LOWER LEFT AND LOWER RIGHT 0x2599 ▙ QUADRANT UPPER LEFT AND LOWER LEFT AND LOWER RIGHT
█▌ @ █▌$@
█▌ @ █▌$@
███@ ███@
███@@ ███@@
0x259A ▚ QUADRANT UPPER LEFT AND LOWER RIGHT 0x259A ▚ QUADRANT UPPER LEFT AND LOWER RIGHT
█▌ @ █▌$@
█▌ @ █▌$@
▐█@ ▐█@
▐█@@ ▐█@@
0x259B ▛ QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER LEFT 0x259B ▛ QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER LEFT
███@ ███@
███@ ███@
█▌ @ █▌$@
█▌ @@ █▌$@@
0x259C ▜ QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER RIGHT 0x259C ▜ QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER RIGHT
███@ ███@
███@ ███@
@ -745,32 +745,32 @@ on the TOIlet website at http://libcaca.zoy.org/toilet.html
0x259D ▝ QUADRANT UPPER RIGHT 0x259D ▝ QUADRANT UPPER RIGHT
▐█@ ▐█@
▐█@ ▐█@
@ $@
@@ $@@
0x259E ▞ QUADRANT UPPER RIGHT AND LOWER LEFT 0x259E ▞ QUADRANT UPPER RIGHT AND LOWER LEFT
▐█@ ▐█@
▐█@ ▐█@
█▌ @ █▌$@
█▌ @@ █▌$@@
0x259F ▟ QUADRANT UPPER RIGHT AND LOWER LEFT AND LOWER RIGHT 0x259F ▟ QUADRANT UPPER RIGHT AND LOWER LEFT AND LOWER RIGHT
▐█@ ▐█@
▐█@ ▐█@
███@ ███@
███@@ ███@@
0x25A0 ■ BLACK SQUARE 0x25A0 ■ BLACK SQUARE
@ $@
███@ ███@
███@ ███@
@@ $@@
0x30A1 ァ KATAKANA LETTER SMALL A 0x30A1 ァ KATAKANA LETTER SMALL A
@ @
▄▄▖ @ ▄▄▖ @
▐▞ @ ▐▞$ @
▘ @@ ▘ @@
0x30A2 ア KATAKANA LETTER A 0x30A2 ア KATAKANA LETTER A
▗▄▄▄▖@ ▗▄▄▄▖@
▙▞ @ ▙▞ @
▗▘ @ ▗▘$ @
▘ @@ ▘ @@
0x30A3 ィ KATAKANA LETTER SMALL I 0x30A3 ィ KATAKANA LETTER SMALL I
@ @

Binary file not shown.

Binary file not shown.

View file

@ -105,7 +105,7 @@ int main(int argc, char *argv[])
image = malloc(4 * iw * ih); image = malloc(4 * iw * ih);
out = cucul_create_canvas(0, 0); out = cucul_create_canvas(0, 0);
printf("tlf2a$ %u %u %u 0 4 0 0 0\n", gh, gh - 1, fgw + 2); printf("tlf2a$ %u %u %u -1 4 0 0 0\n", gh, gh - 1, fgw + 2);
printf("==============================================" printf("=============================================="
"==================================\n"); "==================================\n");
@ -235,6 +235,12 @@ static void add_char(unsigned long int ch)
break; break;
} }
if(ch == ' ' || ch == 0xa0)
{
cucul_draw_line(out, mygw - 1, 0, mygw - 1, gh - 1, '$');
cucul_draw_line(out, mygw / 2, 0, mygw / 2, gh - 1, '$');
}
cucul_draw_line(out, mygw, 0, mygw, gh - 1, '@'); cucul_draw_line(out, mygw, 0, mygw, gh - 1, '@');
cucul_put_char(out, mygw + 1, gh - 1, '@'); cucul_put_char(out, mygw + 1, gh - 1, '@');