mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
render: draw_underline: use font_baseline() for baseline calculation
This commit is contained in:
parent
6e5688d7da
commit
1f98c8f787
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -116,7 +116,7 @@ draw_underline(const struct terminal *term, pixman_image_t *pix,
|
|||
const struct font *font,
|
||||
const pixman_color_t *color, int x, int y, int cols)
|
||||
{
|
||||
int baseline = y + term->fextents.height - term->fextents.descent;
|
||||
int baseline = y + font_baseline(term);
|
||||
int width = font->underline.thickness;
|
||||
int y_under = baseline - font->underline.position - width / 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue