mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-23 01:40:12 -05:00
Merge branch 'optionally-render-box-drawing-characters-using-font-glyphs'
Closes #430
This commit is contained in:
commit
f78ba6653f
6 changed files with 30 additions and 1 deletions
4
render.c
4
render.c
|
|
@ -466,7 +466,9 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
}
|
||||
|
||||
if (unlikely((base >= 0x2500 && base <= 0x259f) ||
|
||||
(base >= 0x1fb00 && base <= 0x1fb3b))) {
|
||||
(base >= 0x1fb00 && base <= 0x1fb3b)) &&
|
||||
likely(!term->conf->box_drawings_uses_font_glyphs))
|
||||
{
|
||||
/* Box drawing characters */
|
||||
size_t idx = base >= 0x1fb00 ? base - 0x1fb00 + 160 : base - 0x2500;
|
||||
xassert(idx < ALEN(term->box_drawing));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue