From 9a9e59a233844546f0d923989f65e416ff350ee0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 17 Nov 2002 17:20:49 +0000 Subject: config.h with have_xft_utf8 --- src/XftFontImp.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/XftFontImp.cc b/src/XftFontImp.cc index f3da167..5104ce0 100644 --- a/src/XftFontImp.cc +++ b/src/XftFontImp.cc @@ -19,11 +19,15 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: XftFontImp.cc,v 1.3 2002/10/16 23:56:13 fluxgen Exp $ +//$Id: XftFontImp.cc,v 1.4 2002/11/17 17:20:49 fluxgen Exp $ #include "XftFontImp.hh" #include "BaseDisplay.hh" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif //HAVE_CONFIG_H + XftFontImp::XftFontImp(const char *name, bool utf8):m_xftfont(0), m_utf8mode(utf8) { if (name != 0) @@ -86,7 +90,7 @@ void XftFontImp::drawText(Drawable w, int screen, GC gc, const char *text, size_ &rendcol, &xftcolor); // draw string -#ifdef X_HAVE_UTF8_STRING +#ifdef HAVE_XFT_UTF8_STRING if (m_utf8mode) { XftDrawStringUtf8(draw, &xftcolor, @@ -94,7 +98,7 @@ void XftFontImp::drawText(Drawable w, int screen, GC gc, const char *text, size_ x, y, (XftChar8 *)(text), len); } else -#endif // X_HAVE_UTF8_STRING +#endif // HAVE_XFT_UTF8_STRING { XftDrawString8(draw, &xftcolor, @@ -112,14 +116,14 @@ unsigned int XftFontImp::textWidth(const char * const text, unsigned int len) co if (m_xftfont == 0) return 0; XGlyphInfo ginfo; -#ifdef X_HAVE_UTF8_STRING +#ifdef HAVE_XFT_UTF8_STRING if (m_utf8mode) { XftTextExtentsUtf8(BaseDisplay::getXDisplay(), m_xftfont, (XftChar8 *)text, len, &ginfo); } else -#endif //X_HAVE_UTF8_STRING +#endif //HAVE_XFT_UTF8_STRING { XftTextExtents8(BaseDisplay::getXDisplay(), m_xftfont, -- cgit v0.11.2