Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | examples/proteanos-motd/*: Add color MOTD example | Patrick McDermott | 2019-07-18 | 8 | -0/+33 |
| | |||||
* | lib/fonts/*.c: Add fonts from upstream Linux | Patrick McDermott | 2019-07-18 | 14 | -5/+34437 |
| | | | | | | | The macros, declarations, and array are all sorted according to the array in Linux's lib/fonts/fonts.c, since that affects picking a default font and finding a font by name (if there were conflicts, which there aren't). | ||||
* | main(): Set text domain, locale, etc. | Patrick McDermott | 2019-07-18 | 1 | -0/+9 |
| | |||||
* | src/image.h, src/text.h: Suffix "_" to guards | Patrick McDermott | 2019-07-18 | 2 | -6/+6 |
| | |||||
* | Don't use libpng's pointer typedefs | Patrick McDermott | 2019-07-18 | 5 | -5/+5 |
| | | | | Pointers should be as obvious as possible. | ||||
* | assert() function arguments | Patrick McDermott | 2019-07-18 | 5 | -3/+56 |
| | |||||
* | image_*(), text_*(), sgr(): Add error() output | Patrick McDermott | 2019-07-18 | 3 | -0/+16 |
| | |||||
* | set_program_name(), error(): New functions | Patrick McDermott | 2019-07-18 | 6 | -14/+93 |
| | |||||
* | font_list(): New function | Patrick McDermott | 2019-07-18 | 3 | -0/+20 |
| | |||||
* | main(): Print usage | Patrick McDermott | 2019-07-18 | 1 | -6/+24 |
| | |||||
* | main(): Add option parsing | Patrick McDermott | 2019-07-18 | 1 | -8/+61 |
| | |||||
* | font_default(): New function | Patrick McDermott | 2019-07-18 | 2 | -2/+23 |
| | | | | And make font_find() return NULL if a font can't be found. | ||||
* | font_*(), text_*(), image_*(): Add const qualifiers | Patrick McDermott | 2019-07-18 | 6 | -14/+16 |
| | |||||
* | text_*(), font_*(), sgr(): Convert to unsigned char | Patrick McDermott | 2019-07-18 | 5 | -26/+27 |
| | |||||
* | text_new(): Read a file stream | Patrick McDermott | 2019-07-18 | 3 | -21/+61 |
| | | | | | text_render() must now consume the CSI "[" in the if condition, as text_new() does. | ||||
* | src/font.c: Reduce spacing in macro definitions | Patrick McDermott | 2019-07-18 | 1 | -6/+6 |
| | |||||
* | image_new(): Support "-" file name for stdout | Patrick McDermott | 2019-07-18 | 2 | -6/+17 |
| | |||||
* | image_destroy(): Close file stream | Patrick McDermott | 2019-07-18 | 1 | -4/+5 |
| | |||||
* | main(): Accept image file name argument | Patrick McDermott | 2019-07-18 | 1 | -2/+2 |
| | |||||
* | text_set_width(), text_set_height(): New functions | Patrick McDermott | 2019-07-17 | 3 | -2/+25 |
| | | | | And fill in all the remaining rows in text_render(). | ||||
* | sgr(): Add reset code | Patrick McDermott | 2019-07-17 | 1 | -1/+9 |
| | |||||
* | text_render(): Make default fg color "dark" white | Patrick McDermott | 2019-07-17 | 1 | -1/+1 |
| | |||||
* | sgr(): New function (4-bit colors only) | Patrick McDermott | 2019-07-17 | 4 | -0/+123 |
| | |||||
* | text_render(): Duplicate string | Patrick McDermott | 2019-07-17 | 1 | -7/+16 |
| | |||||
* | text_*(): Store dimensions as size_t | Patrick McDermott | 2019-07-17 | 2 | -7/+7 |
| | |||||
* | text_render(): Fill to end of each line | Patrick McDermott | 2019-07-17 | 1 | -0/+6 |
| | |||||
* | text_new(): Handle missing trailing newline | Patrick McDermott | 2019-07-17 | 1 | -0/+8 |
| | | | | Or maybe people who omit trailing newlines deserve buffer overflows. | ||||
* | font_render(): Actually address bits in font | Patrick McDermott | 2019-07-17 | 1 | -6/+15 |
| | |||||
* | include/linux/font.h: Fix type of (struct font_desc).data | Patrick McDermott | 2019-07-17 | 1 | -6/+6 |
| | |||||
* | font_render(): Fix pixel size | Patrick McDermott | 2019-07-17 | 1 | -6/+7 |
| | |||||
* | image_render() Call text_render() | Patrick McDermott | 2019-07-17 | 1 | -0/+2 |
| | |||||
* | text_render(): New function | Patrick McDermott | 2019-07-17 | 2 | -0/+44 |
| | |||||
* | font_render(): New function | Patrick McDermott | 2019-07-17 | 2 | -3/+35 |
| | |||||
* | src/image.c: Move macros to src/image.h | Patrick McDermott | 2019-07-17 | 2 | -6/+6 |
| | |||||
* | image_render(): Switch to 8-bit/color RGB | Patrick McDermott | 2019-07-17 | 1 | -7/+4 |
| | |||||
* | image_render(): Use font dimensions | Patrick McDermott | 2019-07-17 | 3 | -5/+8 |
| | |||||
* | font_get_width(), font_get_height(): New functions | Patrick McDermott | 2019-07-17 | 2 | -0/+18 |
| | |||||
* | font_find(): New function | Patrick McDermott | 2019-07-17 | 4 | -3/+95 |
| | |||||
* | main(): Destroy text | Patrick McDermott | 2019-07-17 | 1 | -0/+1 |
| | |||||
* | text_new(): Increment through string | Patrick McDermott | 2019-07-17 | 1 | -0/+2 |
| | |||||
* | text_new(): Reset width after newlines | Patrick McDermott | 2019-07-17 | 1 | -0/+1 |
| | |||||
* | image_render(): Get dimensions from text | Patrick McDermott | 2019-07-17 | 3 | -6/+19 |
| | |||||
* | text_*(): New functions | Patrick McDermott | 2019-07-17 | 3 | -1/+132 |
| | |||||
* | po/stamp-po: Exclude from Git | Patrick McDermott | 2019-07-17 | 1 | -0/+1 |
| | |||||
* | image_render(): Allocate and free row buffers | Patrick McDermott | 2019-07-17 | 1 | -18/+19 |
| | | | | | Move code from image_new() and image_destroy() and drop rows member from struct image. | ||||
* | po/POTFILES.in: Update | Patrick McDermott | 2019-07-17 | 1 | -0/+1 |
| | |||||
* | po/Makevars: New file | Patrick McDermott | 2019-07-17 | 1 | -0/+43 |
| | |||||
* | include/linux/module.h: Fix extra ";" warnings | Patrick McDermott | 2019-07-17 | 1 | -1/+2 |
| | |||||
* | lib/fonts/*.c: Add fonts | Patrick McDermott | 2019-07-17 | 6 | -0/+20590 |
| | |||||
* | *.png: Exclude from Git | Patrick McDermott | 2019-07-17 | 1 | -0/+3 |
| |