From fe882bddbab2b3c75220976ba01cc998773fdfa5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 28 Jul 2019 21:03:38 +0200 Subject: font: populate glyph cache (ASCII characters only) when instantiating font --- terminal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 83efe69a..89f3dc39 100644 --- a/terminal.h +++ b/terminal.h @@ -223,6 +223,8 @@ struct font { double position; double thickness; } strikeout; + + struct glyph cache[256]; }; enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR }; -- cgit v1.3