summaryrefslogtreecommitdiff
path: root/otk/font.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-13 01:08:54 +0000
committerDana Jansens <danakj@orodu.net>2003-01-13 01:08:54 +0000
commit8b73f6f02517e717842d122d82e1eb08cda95e19 (patch)
tree33fd49f2649b3d6e530d7c904913d75f58f436d4 /otk/font.hh
parentecfac5f20c72647b4865a14ccffc307c2b116319 (diff)
begin conversion to ustring. add some more members.
Diffstat (limited to 'otk/font.hh')
-rw-r--r--otk/font.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/otk/font.hh b/otk/font.hh
index 9091b9bc..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 <X11/Xlib.h>
#define _XFT_NO_COMPAT_ // no Xft 1 API
@@ -9,7 +11,6 @@ extern "C" {
}
#include <assert.h>
-#include <string>
namespace otk {
@@ -57,8 +58,7 @@ public:
unsigned int height() const;
unsigned int maxCharWidth() const;
- unsigned int measureString(const std::string &string,
- bool utf8 = false) 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 = false) const;
+ const ustring &string) const;
};
}