aboutsummaryrefslogtreecommitdiff
path: root/box-drawing.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-12-26 15:24:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-01 20:09:31 +0000
commit7acdb3a0dd5633ac79aa7664df300b1fdbe715f0 (patch)
tree4829dac899ff813f95b430d4f528f3015e27895b /box-drawing.h
parentdoc: foot.ini: remove FONT FORMAT section, expand description of ‘font’ (diff)
box-drawing: add infrastructure for rendering box drawing characters ourselves
* ‘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.
Diffstat (limited to 'box-drawing.h')
-rw-r--r--box-drawing.h6
1 files changed, 6 insertions, 0 deletions
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 <fcft/fcft.h>
+
+struct terminal;
+struct fcft_glyph *box_drawing(struct terminal *term, wchar_t wc);