aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-04-10 09:11:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-04-10 09:11:47 +0000
commitf78ba6653f591fc4c72ead45b3f6e66063fdab0b (patch)
treebe563000f53c86cfd61db1595a04715fce5b5fbe /render.c
parentMerge branch 'underline-cursor-below-text-underline' (diff)
parentdoc: foot.ini: codespell: antaliasing -> antialiasing (diff)
Merge branch 'optionally-render-box-drawing-characters-using-font-glyphs'
Closes #430
Diffstat (limited to 'render.c')
-rw-r--r--render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/render.c b/render.c
index ddd685b6..71cec0b7 100644
--- a/render.c
+++ b/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));