diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-12-08 08:05:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-12-08 11:55:57 +0000 |
| commit | 9a1b59adaec22434473789953884c9b6db58e9a5 (patch) | |
| tree | a44c3c9c49c23fd41145d2a1b90972001c2b7ef1 /render.c | |
| parent | pgo: prefer full-headless-sway over full-headless-cage (diff) | |
box-drawings: implement octants
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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; |
