X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ffont.c;h=1ca1b768f703be12e7626bdc7aa4c7dbe4a19f87;hb=82b2f0aa7a1723632e8d3cf7dc772e4bdb66868a;hp=50b4208fb6a0f6b429f2215362ae0d3d2d8b536d;hpb=c4ba6e605a07c177d773323d138f0caa0f334c97;p=chaz%2Fopenbox 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); }