aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-12-08 08:05:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-12-08 11:55:57 +0000
commit9a1b59adaec22434473789953884c9b6db58e9a5 (patch)
treea44c3c9c49c23fd41145d2a1b90972001c2b7ef1 /render.c
parentpgo: prefer full-headless-sway over full-headless-cage (diff)
box-drawings: implement octants
Diffstat (limited to 'render.c')
-rw-r--r--render.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/render.c b/render.c
index d14c70ce..ed6b802e 100644
--- a/render.c
+++ b/render.c
@@ -801,7 +801,15 @@ render_cell(struct terminal *term, pixman_image_t *pix, pixman_region32_t *damag
* Note, the full range is U+1FB00 - U+1FBF9
*/
(base >= GLYPH_LEGACY_FIRST &&
- base <= GLYPH_LEGACY_LAST)) &&
+ base <= GLYPH_LEGACY_LAST) ||
+
+ /*
+ * Unicode 16 "Symbols for Legacy Computing Supplement"
+ *
+ * Note, the full range is U+1CC00 - U+1CEAF
+ */
+ (base >= GLYPH_OCTANTS_FIRST &&
+ base <= GLYPH_OCTANTS_LAST)) &&
likely(!term->conf->box_drawings_uses_font_glyphs))
{
@@ -809,7 +817,11 @@ render_cell(struct terminal *term, pixman_image_t *pix, pixman_region32_t *damag
size_t count;
size_t idx;
- if (base >= GLYPH_LEGACY_FIRST) {
+ if (base >= GLYPH_OCTANTS_FIRST) {
+ arr = &term->custom_glyphs.octants;
+ count = GLYPH_OCTANTS_COUNT;
+ idx = base - GLYPH_OCTANTS_FIRST;
+ } else if (base >= GLYPH_LEGACY_FIRST) {
arr = &term->custom_glyphs.legacy;
count = GLYPH_LEGACY_COUNT;
idx = base - GLYPH_LEGACY_FIRST;