void font_close(ObFont *f)
{
- XftFontClose(ob_display, f->xftfont);
- g_free(f);
+ if (f) {
+ XftFontClose(ob_display, f->xftfont);
+ g_free(f);
+ }
}
int font_measure_string(ObFont *f, char *str, int shadow, int offset)
x += 3; /* XXX figure out X with justification */
if (t->shadow) {
-
if (t->tint >= 0) {
c.color.red = 0;
c.color.green = 0;