if (utf8)
XftDrawStringUtf8(d, &c, _xftfont, x + _offset,
_xftfont->ascent + y + _offset,
- (const FcChar8*)string.c_str(), string.size());
+ (FcChar8*)string.c_str(), string.size());
else
XftDrawString8(d, &c, _xftfont, x + _offset,
_xftfont->ascent + y + _offset,
- (const FcChar8*)string.c_str(), string.size());
+ (FcChar8*)string.c_str(), string.size());
}
XftColor c;
if (utf8)
XftDrawStringUtf8(d, &c, _xftfont, x, _xftfont->ascent + y,
- (const FcChar8*)string.c_str(), string.size());
+ (FcChar8*)string.c_str(), string.size());
else
XftDrawString8(d, &c, _xftfont, x, _xftfont->ascent + y,
- (const FcChar8*)string.c_str(), string.size());
+ (FcChar8*)string.c_str(), string.size());
return;
}
if (utf8)
XftTextExtentsUtf8(OBDisplay::display, _xftfont,
- (const FcChar8*)string.c_str(), string.size(), &info);
+ (FcChar8*)string.c_str(), string.size(), &info);
else
XftTextExtents8(OBDisplay::display, _xftfont,
- (const FcChar8*)string.c_str(), string.size(), &info);
+ (FcChar8*)string.c_str(), string.size(), &info);
return info.xOff + (_shadow ? _offset : 0);
}