From 81107753bf88b6add556838780cfa1c727ccb4c2 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 16 Aug 2019 22:06:06 +0200 Subject: render: replace all usage of cairo with pixman --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 943a3d32..7fd2b2de 100644 --- a/main.c +++ b/main.c @@ -555,8 +555,8 @@ main(int argc, char *const *argv) LOG_DBG("ft: x-scale: %f, height: %f, descent: %f", x_scale, height, descent); - f->underline.position = ft_face->underline_position * x_scale / 64.; - f->underline.thickness = ft_face->underline_thickness * x_scale / 64.; + f->underline.position = round(ft_face->underline_position * x_scale / 64.); + f->underline.thickness = ceil(ft_face->underline_thickness * x_scale / 64.); if (f->underline.position == 0.) { f->underline.position = descent / 2.; -- cgit v1.3