From 54d8fdd290e21ae8c773b4228827ee7539637ce8 Mon Sep 17 00:00:00 2001 From: cflip Date: Sun, 8 Jan 2023 21:50:51 -0700 Subject: 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. --- font.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'font.c') 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) { -- cgit v1.2.3