Browse Source

* Define default layout as fullwidth for generated fonts.

pull/1/head
Sam Hocevar sam 18 years ago
parent
commit
e3f4dc4375
8 changed files with 60 additions and 54 deletions
  1. BIN
      fonts/bigmono12.tlf
  2. BIN
      fonts/bigmono9.tlf
  3. BIN
      fonts/mono12.tlf
  4. BIN
      fonts/mono9.tlf
  5. +53
    -53
      fonts/smblock.tlf
  6. BIN
      fonts/smmono12.tlf
  7. BIN
      fonts/smmono9.tlf
  8. +7
    -1
      tools/caca2tlf.c

BIN
fonts/bigmono12.tlf View File


BIN
fonts/bigmono9.tlf View File


BIN
fonts/mono12.tlf View File


BIN
fonts/mono9.tlf View File


+ 53
- 53
fonts/smblock.tlf 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
@ @


BIN
fonts/smmono12.tlf View File


BIN
fonts/smmono9.tlf View File


+ 7
- 1
tools/caca2tlf.c 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, '@');




Loading…
Cancel
Save