From 7acdb3a0dd5633ac79aa7664df300b1fdbe715f0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 26 Dec 2020 16:24:16 +0100 Subject: box-drawing: add infrastructure for rendering box drawing characters ourselves MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ‘term’ struct contains an array of 160 fcft glyph pointers * the glyph pointers are lazily allocated when we need to draw a box drawings character * Filtering out box drawings characters is easy - they are (except unicode 13, which isn’t handled yet )all in a single range. --- box-drawing.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 box-drawing.h (limited to 'box-drawing.h') diff --git a/box-drawing.h b/box-drawing.h new file mode 100644 index 00000000..aecbf1b3 --- /dev/null +++ b/box-drawing.h @@ -0,0 +1,6 @@ +#pragma once + +#include + +struct terminal; +struct fcft_glyph *box_drawing(struct terminal *term, wchar_t wc); -- cgit v1.3