mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-18 08:45:39 +02:00
Fix margins and clean up stdout
This commit is contained in:
parent
60c18246d8
commit
1ddfa6343a
3 changed files with 9 additions and 12 deletions
|
@ -71,7 +71,7 @@ begin_expose(struct exposable *exposable)
|
|||
exposable->width += e->kern_x[i] + e->glyphs[i]->advance.x;
|
||||
}
|
||||
}
|
||||
LOG_INFO("String height: %d", exposable->height);
|
||||
|
||||
return exposable->width;
|
||||
}
|
||||
|
||||
|
@ -107,9 +107,7 @@ expose(const struct exposable *exposable, pixman_image_t *pix, int x, int y, int
|
|||
* font family.
|
||||
*/
|
||||
// TODO: FIX THIS
|
||||
const double baseline = (double)y +
|
||||
(double)(exposable->height + font->ascent + font->descent) / 2.0 -
|
||||
(font->descent > 0 ? font->descent : 0);
|
||||
const double baseline = (double)y + font->ascent;
|
||||
|
||||
x += exposable->particle->left_margin;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue