mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -04:00
Add curly-pixelated option for blocky undercurl style
Adds a new boolean option `curly-pixelated` that renders undercurls as alternating 4px blocks instead of smooth trapezoids. This style works better with bitmap/monospace fonts like GohuFont. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ecf3b864e4
commit
6deb3ad74c
4 changed files with 28 additions and 0 deletions
4
config.c
4
config.c
|
|
@ -1092,6 +1092,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, "curly-pixelated"))
|
||||
return value_to_bool(ctx, &conf->curly_pixelated);
|
||||
|
||||
else if (streq(key, "strikeout-thickness"))
|
||||
return value_to_pt_or_px(ctx, &conf->strikeout_thickness);
|
||||
|
||||
|
|
@ -3498,6 +3501,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},
|
||||
.curly_pixelated = false,
|
||||
.strikeout_thickness = {.pt = 0., .px = -1},
|
||||
.dpi_aware = false,
|
||||
.gamma_correct = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue