mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-14 04:27:57 -05:00
font: fix estimated underline thickness; descent is typically negative
This commit is contained in:
parent
fbeb1e9610
commit
16c25f9a8f
1 changed files with 1 additions and 1 deletions
2
font.c
2
font.c
|
|
@ -75,7 +75,7 @@ underline_strikeout_metrics(struct font *font)
|
|||
|
||||
if (font->underline.position == 0.) {
|
||||
font->underline.position = descent / 2.;
|
||||
font->underline.thickness = descent / 5.;
|
||||
font->underline.thickness = fabs(descent / 5.);
|
||||
}
|
||||
|
||||
LOG_DBG("underline: pos=%f, thick=%f",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue