X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ffont.c;h=94d9fa2db47e48f2805cf29c41d021b247f782f3;hb=75e948b1972a26c73b07f1706a0fcc54c594dba2;hp=9c42fcbcf4b715ee47b3947b11ddb0cc665e15f2;hpb=121afb76eb7f8b5a071bb45d262c6fc43ce82dff;p=chaz%2Fopenbox diff --git a/render/font.c b/render/font.c index 9c42fcbc..94d9fa2d 100644 --- a/render/font.c +++ b/render/font.c @@ -2,13 +2,12 @@ #include "color.h" #include "mask.h" #include "theme.h" -#include "kernel/geom.h" -#include "kernel/gettext.h" -#define _(str) gettext(str) +#include "gettext.h" #include #include #include +#include #define ELIPSES "..." #define ELIPSES_LENGTH(font) \ @@ -134,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) @@ -148,7 +147,7 @@ int RrFontMaxCharWidth(const RrFont *f) return (signed) f->xftfont->max_advance_width; } -void RrFontDraw(XftDraw *d, RrTextureText *t, Rect *area) +void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area) { gint x,y,w,h; XftColor c;