Commit graph

156 commits

Author SHA1 Message Date
Sam Hocevar
3bde5b8d8d * Fix uninitialised variable in the filter handler. 2006-11-04 17:43:13 +00:00
Sam Hocevar
b337442c2c * Make filters line-feed aware. 2006-10-26 13:30:14 +00:00
Sam Hocevar
711021abc7 * Factor code from renderers to main render.c functions. 2006-10-26 13:14:37 +00:00
Sam Hocevar
99f3252c73 * Make stdin input line-aware so that we don't have to wait until EOF to
display stuff.
  * Reorganise stuff and fix memory leaks.
2006-10-26 13:07:58 +00:00
Sam Hocevar
3549ea3988 * Get rid of -g -i -m short options, only keep --gay --irc --metal.
* Add --html and --tga flags.
2006-10-26 12:12:44 +00:00
Sam Hocevar
5edf3053de * Added filter_flip, filter_flop and filter_rotate.
* Add a -F flag to specify filters to apply. Can be specified more than
    once, and filters can be chained using ":", eg. "-F flip:gay".
2006-10-25 16:06:19 +00:00
Sam Hocevar
30b6ca2596 * Renamed filters.* to filter.*. 2006-10-24 12:39:57 +00:00
Sam Hocevar
f8a41ca9a0 * Support for PKZIP-compressed fonts using zlib. 2006-10-19 20:55:44 +00:00
Sam Hocevar
2ffabb05d0 * Check for zlib if available. 2006-10-19 20:53:36 +00:00
Sam Hocevar
9919145dad * Minor debugging information in the FIGlet font parser. 2006-10-19 20:53:07 +00:00
Sam Hocevar
7b76d57ab9 * Add feof() to the list of I/O functions. 2006-10-13 13:38:50 +00:00
Sam Hocevar
e21d948a17 * Moved I/O functions into a separate module. 2006-10-13 13:36:23 +00:00
Sam Hocevar
7629afd70b * Use fgets() instead of fscanf(). Uses an additional memory buffer, but
paves the way for custom IO functions.
2006-10-13 13:19:45 +00:00
Sam Hocevar
93f60439fd * Fix a crash when font opening fails. 2006-10-13 13:11:20 +00:00
Sam Hocevar
8a615087eb * Fixed an ifdef error that caused -t to be ignored. 2006-10-10 07:24:41 +00:00
Sam Hocevar
953021e2d6 * Fixed the FIGlet renderer. It now has char wrapping and stdin input. 2006-10-10 07:20:15 +00:00
Sam Hocevar
56673021ed * Properly handle \r \n \t in the big and tiny renderers. 2006-10-10 07:15:28 +00:00
Sam Hocevar
24156a3003 * The mono9 driver works again. With wrapping and stdin reading. 2006-10-09 23:54:40 +00:00
Sam Hocevar
1c733d2212 * Break everything. Temporarily. Only the term output works.
* Allow to read from stdin.
  * Wrap at terminal width (currently letter-wrap, not word-wrap).
2006-10-08 12:14:13 +00:00
Sam Hocevar
d1ba08cdf0 * Retrieve the configure.ac timestamp at configure time and store it in
a C macro for better FIGlet emulation.
2006-10-08 12:04:04 +00:00
Sam Hocevar
99dbeaa263 * Fully reworked the katakana part of Small Block. 2006-10-05 21:43:53 +00:00
Sam Hocevar
cbe1037e10 * Added Unicode drawing blocks to Small Block. 2006-10-04 22:15:23 +00:00
Sam Hocevar
4ecdb49dc9 * Added most of latin1 additional characters. 2006-10-04 21:58:52 +00:00
Sam Hocevar
60bd038de3 * Added a new font: "Small Block". 2006-10-04 02:21:24 +00:00
Sam Hocevar
112b4bb185 * Use ${datadir} for fonts instead of ${datarootdir}. 2006-10-02 19:17:00 +00:00
Sam Hocevar
7290d559de * Oops, fixed the lowercase "x" in Future. 2006-10-02 19:09:58 +00:00
Sam Hocevar
98507adc4e * Big update to the Future font. 2006-10-02 19:08:14 +00:00
Sam Hocevar
0f9c9f901b * Updated "Future" font. 2006-10-02 12:17:39 +00:00
Sam Hocevar
1b445087e3 * Oops, fixed typo in fonts/Makefile.am. 2006-10-01 15:10:27 +00:00
Sam Hocevar
2ba814b507 * Added "Future" font. 2006-10-01 15:09:29 +00:00
Sam Hocevar
cf168e7303 * Added simple "Circle" font. 2006-10-01 14:21:25 +00:00
Sam Hocevar
dcf9c4d63f * Allow the hardblank character to be UTF-8. 2006-10-01 07:55:45 +00:00
Sam Hocevar
05f0cbccb7 * There is no way emboss.tlf can have proper lowercase characters. Filled
them with the uppercase ones.
2006-09-30 20:18:32 +00:00
Sam Hocevar
93533880ed * Require libcucul 0.99.beta6 (utf8 import). 2006-09-30 19:05:41 +00:00
Sam Hocevar
8390d626f9 * Fixed a few unimportant memory leaks upon error. 2006-09-30 18:06:47 +00:00
Sam Hocevar
ac7d345e90 * Fixed a lot of memory leaks and added a few error checks. 2006-09-30 17:53:59 +00:00
Sam Hocevar
895fd3ec25 * Updated font data. 2006-09-30 16:24:27 +00:00
Sam Hocevar
3093bfa71f * New font: Small Braille. 2006-09-30 16:19:42 +00:00
Sam Hocevar
6202daa50c * Created emboss2.tlf with a simple sed rule. 2006-09-30 11:47:22 +00:00
Sam Hocevar
7b36676bdf * Created emboss.tlf, a Unicode font for the official TOIlet distribution. 2006-09-30 11:34:37 +00:00
Sam Hocevar
67e7bd971f * Better error checking in the figlet renderer.
* Allow to open fonts that have Unicode data (requires libcucul 0.99.beta6
    which is not yet released).
2006-09-30 11:06:20 +00:00
Sam Hocevar
d9bb31a40e * Make the --metal filter only change the colour, not the characters. 2006-09-30 10:48:32 +00:00
Sam Hocevar
c025bc4f2b * Implemented figlet's -t (adapt to terminal's width). 2006-09-27 07:18:20 +00:00
Sam Hocevar
15a742ce5c * Added -d and completed -I options. 2006-09-26 23:13:01 +00:00
Sam Hocevar
256071d876 * Implemented figlet's -I (infocode) option.
* Added -w flag. Ignored for now.
2006-09-26 22:54:15 +00:00
Sam Hocevar
eb4d081be1 * Crop the final canvas to the effective width.
* Fixed a bug that prevented loading characters after 127.
  * Allow to load fonts that hex-encode their Unicode values.
2006-09-26 21:58:26 +00:00
Sam Hocevar
f71113d6a6 * Fix libcucul font rendering. Now that the default canvas has a
transparent background, we need to explicitely draw our temporary string
    in white on black.
2006-09-26 21:51:13 +00:00
Sam Hocevar
02b3c15dc9 * Don't autocrop final canvas if it was rendered with the figlet engine. 2006-09-26 21:40:35 +00:00
Sam Hocevar
e80a522fcc * Do not try to autocrop a canvas that has only spaces. 2006-09-26 21:39:07 +00:00
Sam Hocevar
808a270565 * Improved support for figlet fonts. We can now load them and print text.
Still no smushing, no hard blanks, no line wrapping...
2006-09-26 13:57:01 +00:00