mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
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
This commit is contained in:
parent
d458d46f81
commit
4c954be7a6
5 changed files with 35 additions and 8 deletions
7
config.c
7
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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue