forked from external/yambar
font: fix estimated underline thickness; descent is typically negative
This commit is contained in:
parent
9c89250a2d
commit
5ab35a38d5
1 changed files with 1 additions and 1 deletions
2
font.c
2
font.c
|
@ -122,7 +122,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
Reference in a new issue