#ifndef __font_hh
#define __font_hh
+#include "ustring.hh"
+
extern "C" {
#include <X11/Xlib.h>
#define _XFT_NO_COMPAT_ // no Xft 1 API
}
#include <assert.h>
-#include <string>
namespace otk {
unsigned int height() const;
unsigned int maxCharWidth() const;
- unsigned int measureString(const std::string &string,
- bool utf8 = true) const;
+ unsigned int measureString(const ustring &string) const;
//! Draws a string into an XftDraw object
/*!
different screens, you WILL have unpredictable results! :)
*/
void drawString(XftDraw *d, int x, int y, const Color &color,
- const std::string &string, bool utf8 = true) const;
+ const ustring &string) const;
};
}