aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-31 15:10:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-01 15:51:09 +0000
commit4c954be7a6d86b21da512fc533eb3362ac737221 (patch)
treeee27fc9e3705fe75355a5d08c6450a552b5efeca /config.c
parentMerge branch 'selection-recognizes-hard-linebreaks' (diff)
config: add boolean option tweak.pua-double-width
When enabled, PUA (Private Usage Area) codepoints are always treated as double-width glyphs, regardless of the actual glyph width. Requires allow-overflowing-double-width-glyphs=yes
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.c b/config.c
index 92ef0c99..17d6ce5f 100644
--- a/config.c
+++ b/config.c
@@ -2005,6 +2005,12 @@ parse_section_tweak(
LOG_WARN("tweak: disabled overflowing double-width glyphs");
}
+ else if (strcmp(key, "pua-double-width") == 0) {
+ conf->tweak.pua_double_width = str_to_bool(value);
+ if (conf->tweak.pua_double_width)
+ LOG_WARN("tweak: PUA double width glyphs enabled");
+ }
+
else if (strcmp(key, "damage-whole-window") == 0) {
conf->tweak.damage_whole_window = str_to_bool(value);
if (conf->tweak.damage_whole_window)
@@ -2573,6 +2579,7 @@ config_load(struct config *conf, const char *conf_path,
.damage_whole_window = false,
.box_drawing_base_thickness = 0.04,
.box_drawing_solid_shades = true,
+ .pua_double_width = false,
},
.notifications = tll_init(),