font: remove the fextents sub-struct

This commit is contained in:
Daniel Eklöf 2019-11-27 21:38:49 +01:00
parent 9fb3c58588
commit b48365aa86
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 11 additions and 13 deletions

View file

@ -97,8 +97,8 @@ expose(const struct exposable *exposable, pixman_image_t *pix, int x, int y, int
* font family.
*/
const double baseline = (double)y +
(double)(height + font->fextents.ascent + font->fextents.descent) / 2.0 -
(font->fextents.descent > 0 ? font->fextents.descent : 0);
(double)(height + font->ascent + font->descent) / 2.0 -
(font->descent > 0 ? font->descent : 0);
x += exposable->particle->left_margin;