aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-04-09 21:19:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-04-09 21:21:20 +0000
commit0713ab45c6bee32438191b66f79b4fe9de0a929f (patch)
treefa7c62a19e39299f54adbeba8394fb29995ba0ee /config.c
parentchangelog: rewrite entry for OSC 17/117/19/119 (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 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index 8809163c..653c3f8a 100644
--- a/config.c
+++ b/config.c
@@ -770,6 +770,9 @@ parse_section_main(const char *key, const char *value, struct config *conf,
}
}
+ else if (strcmp(key, "box-drawings-uses-font-glyphs") == 0)
+ conf->box_drawings_uses_font_glyphs = str_to_bool(value);
+
else {
LOG_AND_NOTIFY_ERR("%s:%u: [default]: %s: invalid key", path, lineno, key);
return false;
@@ -2198,6 +2201,7 @@ config_load(struct config *conf, const char *conf_path,
.letter_spacing = { .pt = 0, .px = 0, },
.horizontal_letter_offset = {.pt = 0, .px = 0, },
.vertical_letter_offset = {.pt = 0, .px = 0, },
+ .box_drawings_uses_font_glyphs = false,
.dpi_aware = DPI_AWARE_AUTO, /* DPI-aware when scaling-factor == 1 */
.scrollback = {
.lines = 1000,