add setting for strikeout thickness

This commit is contained in:
Oleh Hushchenkov 2024-08-25 11:28:21 +03:00 committed by Daniel Eklöf
parent 01fa59b6b7
commit b47a4dd255
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 32 additions and 2 deletions

View file

@ -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,