diff options
author | Eddy Pedroni <epedroni@pm.me> | 2023-12-17 09:46:45 +0100 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2023-12-17 09:46:45 +0100 |
commit | 84c5362ffe22afa6ffa0fe3f09a2d265b9c7b321 (patch) | |
tree | 121d18a7fd34be03bc15f83de93e0b3ca3594779 | |
parent | 6dbf6fbc530b81ad58d877d38c4a5a01630f6e91 (diff) |
Fix font padding
-rw-r--r-- | drw.c | 1 | ||||
-rw-r--r-- | drw.h | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -135,6 +135,7 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) font = ecalloc(1, sizeof(Fnt)); font->xfont = xfont; + font->xfont->ascent += font_ascent_pad; font->pattern = pattern; font->h = xfont->ascent + xfont->descent; font->dpy = drw->dpy; @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ +static const int font_ascent_pad = 3; + typedef struct { Cursor cursor; } Cur; |