diff options
| author | Oleh Hushchenkov <o.hushchenkov@gmail.com> | 2024-08-25 08:28:21 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-08-26 17:34:47 +0000 |
| commit | b47a4dd2553b7f4db5a385b15bc7cb559c9932db (patch) | |
| tree | 23a26267d7f84d34f1674244e6ce4523e3640418 /config.c | |
| parent | changelog: mbsntoc32() failure checks (diff) | |
add setting for strikeout thickness
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1023,6 +1023,9 @@ parse_section_main(struct context *ctx) else if (streq(key, "underline-thickness")) return value_to_pt_or_px(ctx, &conf->underline_thickness); + else if (streq(key, "strikeout-thickness")) + return value_to_pt_or_px(ctx, &conf->strikeout_thickness); + else if (streq(key, "dpi-aware")) return value_to_bool(ctx, &conf->dpi_aware); @@ -3121,6 +3124,7 @@ config_load(struct config *conf, const char *conf_path, .use_custom_underline_offset = false, .box_drawings_uses_font_glyphs = false, .underline_thickness = {.pt = 0., .px = -1}, + .strikeout_thickness = {.pt = 0., .px = -1}, .dpi_aware = false, .bell = { .urgent = false, |
