box-drawing: add U+1FB3C-U+1FB6F, U+1FB9A and U+1FB9B

These are the “wedges” from the Unicode 13 “Legacy Computing” symbols.

Closes #474
This commit is contained in:
Daniel Eklöf 2021-08-03 18:10:41 +02:00
parent bdaa9a8991
commit 1c43fdbea4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 228 additions and 15 deletions

View file

@ -538,18 +538,15 @@ render_cell(struct terminal *term, pixman_image_t *pix,
*/
/* Unicode 13 sextants */
(base >= 0x1fb00 && base <= 0x1fb3b) ||
/* Unicode 13 partial blocks */
/* TODO: there's more here! */
(base >= 0x1fb70 && base <= 0x1fb8b)) &&
(base >= 0x1fb00 && base <= 0x1fb8b) ||
(base >= 0x1fb9a && base <= 0x1fb9b)) &&
likely(!term->conf->box_drawings_uses_font_glyphs))
{
/* Box drawing characters */
size_t idx = base >= 0x1fb00
? (base >= 0x1fb70
? base - 0x1fb70 + 220
? (base >= 0x1fb9a
? base - 0x1fb9a + 300
: base - 0x1fb00 + 160)
: base - 0x2500;
xassert(idx < ALEN(term->box_drawing));