X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ffont.c;h=94d9fa2db47e48f2805cf29c41d021b247f782f3;hb=7a48ef1f5453d8fa2e56a0d76fc86d559d586c40;hp=d2a4acaeed31e0b8177d4903489d136a3b913581;hpb=58be655de321369ceec5819a3516003a05ead575;p=chaz%2Fopenbox diff --git a/render/font.c b/render/font.c index d2a4acae..94d9fa2d 100644 --- a/render/font.c +++ b/render/font.c @@ -7,6 +7,7 @@ #include #include #include +#include #define ELIPSES "..." #define ELIPSES_LENGTH(font) \ @@ -132,7 +133,7 @@ int RrFontMeasureString(const RrFont *f, const gchar *str) { gint x, y; font_measure_full (f, str, &x, &y); - return x; + return x + 4; } int RrFontHeight(const RrFont *f)