mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-06 04:06:06 -05:00
box-drawing: SEXTANTS, U+1fb00-1fb3b
This commit is contained in:
parent
00d0e53a95
commit
25d2b03a5c
3 changed files with 143 additions and 3 deletions
5
render.c
5
render.c
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue