X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Ffont.hh;h=dcff65260ea8028944693039caf23139c14bb7f6;hb=4dba699857918d0feda52c71c58eccd08839ec8b;hp=2ffa39a51b2ecd40b483cb68f7d6b935aeb8ce60;hpb=805a5dddce6d072c3a3e2485585ee5630688a845;p=chaz%2Fopenbox diff --git a/otk/font.hh b/otk/font.hh index 2ffa39a5..dcff6526 100644 --- a/otk/font.hh +++ b/otk/font.hh @@ -2,6 +2,8 @@ #ifndef __font_hh #define __font_hh +#include "ustring.hh" + extern "C" { #include #define _XFT_NO_COMPAT_ // no Xft 1 API @@ -9,7 +11,6 @@ extern "C" { } #include -#include namespace otk { @@ -57,8 +58,7 @@ public: 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 /*! @@ -66,7 +66,7 @@ public: 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; }; }