summaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-08 21:50:51 -0700
committercflip <cflip@cflip.net>2023-01-08 21:50:51 -0700
commit54d8fdd290e21ae8c773b4228827ee7539637ce8 (patch)
tree064eb597ddf55a790f2beb4f44af1e58b206d296 /font.c
parenta43cf9420a8ca8f84b6ba92cffc4835173ce1c35 (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/font.c b/font.c
index 00b7f4d..69e500b 100644
--- a/font.c
+++ b/font.c
@@ -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) {