aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 6e2bc1d7..17fe9b21 100644
--- a/main.c
+++ b/main.c
@@ -634,7 +634,7 @@ main(int argc, char *const *argv)
f->underline.thickness = ceil(ft_face->underline_thickness * x_scale / 64.);
if (f->underline.position == 0.) {
- f->underline.position = descent / 2.;
+ f->underline.position = round(descent / 2.);
f->underline.thickness = fabs(round(descent / 5.));
}
@@ -648,7 +648,7 @@ main(int argc, char *const *argv)
}
if (f->strikeout.position == 0.) {
- f->strikeout.position = height / 2. + descent;
+ f->strikeout.position = round(height / 2. + descent);
f->strikeout.thickness = f->underline.thickness;
}