summaryrefslogtreecommitdiffstats
path: root/src/text.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't use libpng's pointer typedefsPatrick McDermott2019-07-181-1/+1
| | | | Pointers should be as obvious as possible.
* assert() function argumentsPatrick McDermott2019-07-181-3/+23
|
* image_*(), text_*(), sgr(): Add error() outputPatrick McDermott2019-07-181-0/+8
|
* font_*(), text_*(), image_*(): Add const qualifiersPatrick McDermott2019-07-181-3/+3
|
* text_*(), font_*(), sgr(): Convert to unsigned charPatrick McDermott2019-07-181-18/+19
|
* text_new(): Read a file streamPatrick McDermott2019-07-181-19/+40
| | | | | text_render() must now consume the CSI "[" in the if condition, as text_new() does.
* text_set_width(), text_set_height(): New functionsPatrick McDermott2019-07-171-2/+17
| | | | And fill in all the remaining rows in text_render().
* text_render(): Make default fg color "dark" whitePatrick McDermott2019-07-171-1/+1
|
* sgr(): New function (4-bit colors only)Patrick McDermott2019-07-171-0/+7
|
* text_render(): Duplicate stringPatrick McDermott2019-07-171-7/+16
|
* text_*(): Store dimensions as size_tPatrick McDermott2019-07-171-5/+5
|
* text_render(): Fill to end of each linePatrick McDermott2019-07-171-0/+6
|
* text_new(): Handle missing trailing newlinePatrick McDermott2019-07-171-0/+8
| | | | Or maybe people who omit trailing newlines deserve buffer overflows.
* text_render(): New functionPatrick McDermott2019-07-171-0/+37
|
* text_new(): Increment through stringPatrick McDermott2019-07-171-0/+2
|
* text_new(): Reset width after newlinesPatrick McDermott2019-07-171-0/+1
|
* text_*(): New functionsPatrick McDermott2019-07-171-0/+91