diff --git a/font.c b/font.c index 743ff68..53616a7 100644 --- a/font.c +++ b/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",