diff options
author | cflip <cflip@cflip.net> | 2023-01-08 21:50:51 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-08 21:50:51 -0700 |
commit | 54d8fdd290e21ae8c773b4228827ee7539637ce8 (patch) | |
tree | 064eb597ddf55a790f2beb4f44af1e58b206d296 /font.c | |
parent | a43cf9420a8ca8f84b6ba92cffc4835173ce1c35 (diff) |
Hook up the editor output to the window
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.
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -49,6 +49,9 @@ BDFFontInfo font_load(const char *filename) result.bounds.h = 0; result.chars = NULL; result.num_chars = 0; + for (int i = 0; i < 128; i++) { + result.char_index_for_code_point[i] = 0; + } fp = fopen(filename, "r"); if (fp == NULL) { |