render: replace all usage of cairo with pixman

This commit is contained in:
Daniel Eklöf 2019-08-16 22:06:06 +02:00
parent bed7b34c28
commit 81107753bf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 90 additions and 81 deletions

4
main.c
View file

@ -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.;