box-drawing: SEXTANTS, U+1fb00-1fb3b

This commit is contained in:
Daniel Eklöf 2020-12-29 13:02:08 +01:00
parent 00d0e53a95
commit 25d2b03a5c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 143 additions and 3 deletions

View file

@ -450,9 +450,10 @@ render_cell(struct terminal *term, pixman_image_t *pix,
base = composed->base;
}
if (unlikely(base >= 0x2500 && base <= 0x259f)) {
if (unlikely((base >= 0x2500 && base <= 0x259f) ||
(base >= 0x1fb00 && base <= 0x1fb3b))) {
/* Box drawing characters */
size_t idx = base - 0x2500;
size_t idx = base >= 0x1fb00 ? base - 0x1fb00 + 160 : base - 0x2500;
assert(idx < ALEN(term->box_drawing));
if (likely(term->box_drawing[idx] != NULL))