diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-09-03 15:37:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-09-03 15:37:44 +0000 |
| commit | b71016c25dc18a2c098a87439046873c6c9ddb30 (patch) | |
| tree | d26b848748013856dc29f9551ef5c6b2bcbdc30e /config.c | |
| parent | Merge branch 'refresh-margins-on-background-palette-change' into master (diff) | |
render: optionally enable heuristics that deal with private usage area chars
Try to detect double-width *glyphs* for single-width *characters*, and
allow them to overflow into the next cell.
This is only done for single-width chars with a glyph width that is at
least 1.5 cells wide, but at most 3 cells.
The feature is gated by the new
‘tweak.allow-overflowing-double-width-glyphs’, and is disabled by
default.
Closes #116
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1358,7 +1358,10 @@ parse_section_tweak( const char *key, const char *value, struct config *conf, const char *path, unsigned lineno) { - if (strcmp(key, "render-timer") == 0) { + if (strcmp(key, "allow-overflowing-double-width-glyphs") == 0) + conf->tweak.allow_overflowing_double_width_glyphs = str_to_bool(value); + + else if (strcmp(key, "render-timer") == 0) { if (strcmp(value, "none") == 0) { conf->tweak.render_timer_osd = false; conf->tweak.render_timer_log = false; @@ -1792,6 +1795,7 @@ config_load(struct config *conf, const char *conf_path, bool errors_are_fatal) .hold_at_exit = false, .tweak = { + .allow_overflowing_double_width_glyphs = false, .delayed_render_lower_ns = 500000, /* 0.5ms */ .delayed_render_upper_ns = 16666666 / 2, /* half a frame period (60Hz) */ .max_shm_pool_size = 512 * 1024 * 1024, |
