mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
render: replace all usage of cairo with pixman
This commit is contained in:
parent
bed7b34c28
commit
81107753bf
5 changed files with 90 additions and 81 deletions
4
main.c
4
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.;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue