font: bug: bad multiplier when converting from 16.16 fixed float

This commit is contained in:
Daniel Eklöf 2019-11-30 13:10:20 +01:00
parent 8f8ef5df0e
commit 719d521e33
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
font.c
View file

@ -63,7 +63,7 @@ static void
underline_strikeout_metrics(struct font *font)
{
FT_Face ft_face = font->face;
double y_scale = ft_face->size->metrics.y_scale / 65526.;
double y_scale = ft_face->size->metrics.y_scale / 65536.;
double height = ft_face->size->metrics.height / 64.;
double descent = ft_face->size->metrics.descender / 64.;