summaryrefslogtreecommitdiff
path: root/font.c
AgeCommit message (Collapse)Author
2023-01-19Load gzipped fonts from /usr/local/share/consolefonts/cflip
The editor now loads fonts from /usr/ instead of the current working directory. Since they are gzipped the font loading code now uses zlib to read from the files. These fonts in particular were installed with `make install-psf` from the Terminus makefile, however the location may vary from system to system.
2023-01-12Print an error message if loading the font file failscflip
2023-01-12Free unicode translation table from font on destructioncflip
This code change and commit message were both written using the text editor!
2023-01-12Big improvements to font renderingcflip
The previous rasterizing code relied on each row in the font being 8 bits wide, which is not the case with any font wider than 8 pixels. These changes make it possible to properly load the 24px Terminus font, and somehow also fixes incorrect characters in the 12px font.
2023-01-11Use the new error function with the new window and font codecflip
2023-01-10Parse unicode tables in PSF fontscflip
2023-01-10Use PSF instead of BSF format for fontscflip
This binary file format is much easier to parse.
2023-01-08Hook up the editor output to the windowcflip
Now the text editor is visible in the window! There are still escape codes for terminal output all over the place, but this is a good start.
2023-01-08Connect the window and font code to the editor's main functioncflip