diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-04-09 21:19:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-04-18 18:08:30 +0000 |
| commit | ce321e663e6974fd622a36777c67c7a156d01fa4 (patch) | |
| tree | e57faaab830826dde1fe2969e5c7db15c1dae735 /render.c | |
| parent | render: draw underline cursor below text underline (diff) | |
config: add box-drawings-uses-font-glyphs=no|yes option
When disabled, we render box drawing characters ourselves. This is the
default.
When enabled, we instead use font glyphs. I.e. no special treatment.
Closes #430
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)); |
