diff options
Diffstat (limited to 'render/font.c')
| -rw-r--r-- | render/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/font.c b/render/font.c index 50b4208f..1ca1b768 100644 --- a/render/font.c +++ b/render/font.c @@ -137,7 +137,7 @@ static void font_measure_full(const RrFont *f, const gchar *str, pango_layout_set_text(f->layout, str, -1); pango_layout_set_width(f->layout, -1); pango_layout_get_pixel_extents(f->layout, NULL, &rect); - *x = rect.width + ABS(shadow_x); + *x = rect.width + ABS(shadow_x) + 4 /* we put a 2 px edge on each side */; *y = rect.height + ABS(shadow_y); } |
