main: Support overline, SGR 53/55

Similar to the underline, incl. the *-thickness and *-offset options.
This commit is contained in:
Andrew Savchenko 2026-01-02 13:37:26 +11:00
parent 42e04c5c87
commit 33106514db
No known key found for this signature in database
GPG key ID: 5023209D10DBA986
7 changed files with 70 additions and 2 deletions

View file

@ -175,6 +175,10 @@ m*.
: Disable conceal
| 29
: Disable crossed-out
| 53
: Overline
| 55
: Disable overline
| 30-37
: Select foreground color (using *regularN* in *foot.ini*(5))
| 38

View file

@ -198,6 +198,29 @@ empty string to be set, but it must be quoted: *KEY=""*)
Default: _unset_
*overline-thickness*
Use a custom thickness (height) for overlines. The thickness is, by
default, in _points_.
To specify a thickness in _pixels_, append *px*:
*overline-thickness=1px*.
If left unset (the default), the font's underline thickness is used.
Default: _unset_
*overline-offset*
Vertical offset of the overline from the top of the cell. The offset is,
by default, in _points_.
To specify an offset in _pixels_, append *px*:
*overline-offset=2px*.
If left unset (the default), the overline is drawn at the absolute top
of the cell (offset = 0).
Default: _unset_ (0)
*gamma-correct-blending*
Boolean. When enabled, foot will do gamma-correct blending in
linear color space. This is how font glyphs are supposed to be