mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
font: remove the fextents sub-struct
This commit is contained in:
parent
9fb3c58588
commit
b48365aa86
3 changed files with 11 additions and 13 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue