mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
add setting for strikeout thickness
This commit is contained in:
parent
01fa59b6b7
commit
b47a4dd255
6 changed files with 32 additions and 2 deletions
4
config.c
4
config.c
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue